[docs] some more doc stuff

pull/765/head
Timothy Stack 4 years ago
parent bbf06e78ba
commit dbe252c70c

@ -175,13 +175,22 @@ Key Sequence Encoding
Key presses are converted into a hex-encoded string that is used to lookup an
entry in the keymap. Each byte of the keypress value is formatted as an
:code:`x` followed by the hex-encoding in lowercase. For example, the encoding
for the £ key would be :code:`xc2xa3`.
for the £ key would be :code:`xc2xa3`. To make it easier to discover the
encoding for unassigned keys, **lnav** will print in the command prompt the
:code:`:config` command and
`JSON-Pointer <https://tools.ietf.org/html/rfc6901>`_ for assigning a command
to the key.
.. figure:: key-encoding-prompt.png
:align: center
Screenshot of the command prompt when an unassigned key is pressed.
.. note::
Since **lnav** is a terminal application, it can only receive keypresses that
can be represented as characters or escape sequences. For example, it cannot
handle modifier keypresses.
handle the press of a modifier key.
Reference
^^^^^^^^^

Binary file not shown.

After

Width:  |  Height:  |  Size: 87 KiB

@ -1510,7 +1510,7 @@ static void looper()
// pre-filled with a suggestion that the user can complete.
// This quick-fix key could be used for other stuff as well
lnav_data.ld_rl_view->set_value(fmt::format(
ANSI_CSI ANSI_COLOR_PARAM(COLOR_RED) ";" ANSI_BOLD_PARAM ANSI_CHAR_ATTR
ANSI_CSI ANSI_COLOR_PARAM(COLOR_YELLOW) ";" ANSI_BOLD_PARAM ANSI_CHAR_ATTR
"Unrecognized key"
ANSI_NORM
", bind to a command using \u2014 "

Loading…
Cancel
Save