xdebug

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README

commit 95db60c95beaaf3ffd3600804df5941e3be83b2d
parent 1fee02a2717a44f3b5edddda1d5fc330082e4b7f
Author: Brian Swetland <swetland@frotz.net>
Date:   Tue,  7 Mar 2023 13:42:24 -0800

tui: send magic command for ESC keypresses

Diffstat:
Mtui/tui.c | 5+++++
1 file changed, 5 insertions(+), 0 deletions(-)

diff --git a/tui/tui.c b/tui/tui.c @@ -144,6 +144,11 @@ static int handle_event(UX* ux, struct tb_event* ev, char* line, unsigned* len) return 1; } + case TB_KEY_ESC: { + *len = 5; + memcpy(line, "@ESC@", 6); + return 1; + } default: #if 0 // debug unexpected keys if (ux->len < (MAXWIDTH - 6)) {