linesnow is a simple readline tool which supports
- terminal input & output
- moving the cursor left or right
It is my homework for PKU HPCFS Lecture_2 : c++ project programming.
- clone the repo
git clone https://github.com/snow276/linesnow.git
- compile to generate an executable file
linesnow
cmake -B build
cmake --build build
- execute the executable file
linesnow
./linesnow
- then you can type characters in the terminal, move the cursor left or right, press 'backspace' to delete characters, and press 'enter' to finish a line.
linesnow
echoes the line that you type.
- only supports single-line input
- doesn't support shortcut keys such as CTRL+D, CTRL+A