Skip to content

A simple readline tool (Homework of PKU HPCFS Lecture 2)

Notifications You must be signed in to change notification settings

snow276/linesnow

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

About

A simple readline tool (Homework of PKU HPCFS Lecture 2)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published