]> rtime.felk.cvut.cz Git - sysless.git/commit
cmdproc: Add history handling
authorMichal Sojka <sojkam1@fel.cvut.cz>
Thu, 1 Aug 2013 09:08:17 +0000 (11:08 +0200)
committerMichal Sojka <sojkam1@fel.cvut.cz>
Thu, 1 Aug 2013 09:09:31 +0000 (11:09 +0200)
commita64937815f12fabe7ab94b61e73281da70ab7dac
tree123607924614810b27f2f9c80fc16f5ec0cddaeb
parent360a3aa94ddb402e9539be026aefa784286ccdab
cmdproc: Add history handling

Now, command processor can remember several last entered lines. The user can
naviagte the history with Up/Down or Ctrl-P/Ctrl-N keys.

When hist and hist_size fields of ed_line are zero, the behavior of
the cmdproc should be the same as without this change.
libs4c/cmdproc/cmd_io_line.c
libs4c/cmdproc/cmd_proc.h
libs4c/cmdproc/cmdio_std_line.c