]> git.tuebingen.mpg.de Git - paraslash.git/commit
play: Print hex representation of key sequence in help.
authorAndre Noll <maan@tuebingen.mpg.de>
Sun, 27 Mar 2016 03:39:47 +0000 (03:39 +0000)
committerAndre Noll <maan@tuebingen.mpg.de>
Thu, 2 Jun 2016 20:16:23 +0000 (22:16 +0200)
commit046359b034b67972a2a9d91cfd40476bb15f5785
tree34d1770b6cc29694e2679fd02190fd66c0ef7a24
parent06d0c50525fc14e8127916481a74c14a2f7098af
play: Print hex representation of key sequence in help.

Some predefined keys of para_play, for example the four cursor keys,
are mapped to key sequences which should not be printed verbatim to
the console in com_help().

This patch introduces get_key_map_seq_safe(), an alternative to
get_key_map_seq() which returns the hexadecimal representation of the
bytes in the sequence of the given key. Single character sequences,
however, are printed verbatim if the character is printable. com_help()
is changed to call get_key_map_seq_safe() instead of get_key_map_seq().
play.c