introduce readline(input with editing).
ncurses and readline library included.
two libraries makefile tested.