empserver/man
Martin Haukeli f1fc0df03d client: Add readline support to empire client
Readline provides fancy command line editing such as <Arrow Up> for
previous commands and CTRL+A to jump to the beginning of the line.

This patch does not add any completion on <tab> key, a TODO, if you
will.

A new command line flag, -H, turns on saving the history to disk.
This may have security implications on shared computers, as all
commands are saved as-is.  Thus "change re 1234" would be logged
directly to the file.

Signed-off-by: Martin Haukeli <martin.haukeli@gmail.com>

Rebase on top of preparatory work, fix a few bugs, and tidy up:

* Update the standalone client build, too.

* Fix the Windows build.

* Keep command line options sorted case-insensitively.

* Error out when $HOME is unset and getpwuid() fails, just like we do
  for $LOGNAME.

* Give @input_from_rl, @has_rl_input static linkage.

* @has_rl_input is a flag, not a counter, set and test it accordingly.

* Save all input in history, not just commands.  Martin's attempt to
  recognize commands works only as long as the server sends prompts
  faster than the user sends input.  Drop that part, and update commit
  message accordingly.

* Fix recv_input() not to truncate value of strlen() to int, and to
  use memmove() for updating @input_from_rl in place.

* Clean up whitespace in a few places.

* Tweak commit message.

Signed-off-by: Markus Armbruster <armbru@pond.sub.org>
2017-08-06 11:22:29 +02:00
..
emp_server.6 man: Get rid of unwanted space in SYNOPSIS 2015-03-08 17:48:17 +01:00
empdump.6 man: Get rid of unwanted space in SYNOPSIS 2015-03-08 17:48:17 +01:00
empire.6 client: Add readline support to empire client 2017-08-06 11:22:29 +02:00
empsched.6 man: Get rid of unwanted space in SYNOPSIS 2015-03-08 17:48:17 +01:00
fairland.6 man: Get rid of unwanted space in SYNOPSIS 2015-03-08 17:48:17 +01:00
files.6 man: Get rid of unwanted space in SYNOPSIS 2015-03-08 17:48:17 +01:00
pconfig.6 man: Get rid of unwanted space in SYNOPSIS 2015-03-08 17:48:17 +01:00