mksh shell, how to configure "up/down-key" on keyboard to scroll up/down in history ?
bind string=[editing-command] [...]
bind -m string=substitute [...]
To string, which should consist of a control character optionally
preceded by one of the three prefix characters and optionally suc-
ceeded by a tilde character, the editing-command is bound so that
future input of the string will immediately invoke that editing
command. If a tilde postfix is given, a tilde trailing the con-
trol character is ignored. If -m (macro) is given, future input
of the string will be replaced by the given NUL-terminated
substitute string, wherein prefix/control/tilde characters mapped
to editing commands (but not those mapped to other macros) will be
processed.
Prefix and control characters may be written using caret notation,
i.e. ^Z represents Ctrl-Z. Use a backslash to escape the caret,
an equals sign or another backslash. Note that, although only
three prefix characters (usually Esc, ^X and NUL) are supported,
some multi-character sequences can be supported.
#set -o vi
set -o emacs