Linux Programming
Jerry A Clabaugh
JerryC at world.std.com
Tue Oct 6 17:27:19 EDT 1998
I've only started learning Linux/UNIX programming in the last year,
having worked in the past on VAX, Pr1mos, Win16 and Win32, and I'm
coming along, but there's one thing I can't find info on anywhere:
How do you implement command-line recall, like bash does when
you hit up-arrow.
I can see that I've got to store commands as they are entered,
but then how do I get them back on the screen so they may be
edited then re-entered by the user? Just printf-ing them
with no newline looks similar, but then you can't backspace into
the line.
I've started looking through the source for bash, but it's
not very illuminating.
If you have some light to shed, but would rather shed your light
off-line, please send responses to : jerryc at world.std.com
Thanks !
***
Subcription/unsubscription/info requests: send e-mail with subject of
"subscribe", "unsubscribe", or "info" to discuss-request at blu.org
More information about the Discuss
mailing list