采用curses库,做一个shell下的简单编辑器练习
Mac Os gcc
gcc -lcurses main.c
┌---------------------------------Curses Program---------------------------------┐ |hello world | |this is my second line | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | └--------------------------------------------------------------------------------┘