diff options
author | Daniel Thompson <daniel.thompson@linaro.org> | 2019-10-25 08:33:28 +0100 |
---|---|---|
committer | Daniel Thompson <daniel.thompson@linaro.org> | 2019-10-28 12:08:29 +0000 |
commit | c58ff643763c78bef12874ee39995c9f7f987bc2 (patch) | |
tree | 92e5db35f36b0452c25bc0bf7235e76fb3ec1ce4 /kernel/bpf/syscall.c | |
parent | cdca8d8900dd33ce6b8b526e247d2a6009d05de0 (diff) |
kdb: Tweak escape handling for vi users
Currently if sequences such as "\ehelp\r" are delivered to the console then
the h gets eaten by the escape handling code. Since pressing escape
becomes something of a nervous twitch for vi users (and that escape doesn't
have much effect at a shell prompt) it is more helpful to emit the 'h' than
the '\e'.
We don't simply choose to emit the final character for all escape sequences
since that will do odd things for unsupported escape sequences (in
other words we retain the existing behaviour once we see '\e[').
Signed-off-by: Daniel Thompson <daniel.thompson@linaro.org>
Reviewed-by: Douglas Anderson <dianders@chromium.org>
Link: https://lore.kernel.org/r/20191025073328.643-6-daniel.thompson@linaro.org
Diffstat (limited to 'kernel/bpf/syscall.c')
0 files changed, 0 insertions, 0 deletions