L
lnatz
Hi,
I am writing a shell and am using ncurses to recognize key commands
like up_arrow(KEY_UP) and down_arrow(KEY_DOWN). In a unix/linux OS the
up arrow would give you the last command you input. I am trying to do
that, but I don't know how to explain it well but I am trying to get
that browsing look. I can access the history and retrieve the last
command but if i want to browse three or four further back I can't get
it to act the same way as the OS does. What I mean is that in a unix
shell, if you press the up arrow it would give you the last command
you input and if you press the up arrow several more times, the input
is simply replaced. I can't get it to replace the previous input.
I am sorry for my poor explanation but if anyone understands what I
mean, I would greatly appreciate your help.
Thank you in advance,
natalie
I am writing a shell and am using ncurses to recognize key commands
like up_arrow(KEY_UP) and down_arrow(KEY_DOWN). In a unix/linux OS the
up arrow would give you the last command you input. I am trying to do
that, but I don't know how to explain it well but I am trying to get
that browsing look. I can access the history and retrieve the last
command but if i want to browse three or four further back I can't get
it to act the same way as the OS does. What I mean is that in a unix
shell, if you press the up arrow it would give you the last command
you input and if you press the up arrow several more times, the input
is simply replaced. I can't get it to replace the previous input.
I am sorry for my poor explanation but if anyone understands what I
mean, I would greatly appreciate your help.
Thank you in advance,
natalie