Skip to content

Latest commit

 

History

History
27 lines (23 loc) · 777 Bytes

README.md

File metadata and controls

27 lines (23 loc) · 777 Bytes

linesnow

linesnow is a simple readline tool which supports

  1. terminal input & output
  2. moving the cursor left or right

It is my homework for PKU HPCFS Lecture_2 : c++ project programming.

example

  1. clone the repo
git clone https://github.com/snow276/linesnow.git
  1. compile to generate an executable file linesnow
cmake -B build
cmake --build build
  1. execute the executable file linesnow
./linesnow
  1. 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.

limitations

  1. only supports single-line input
  2. doesn't support shortcut keys such as CTRL+D, CTRL+A