From 2f8babf83a0c3ed8d8b26fa9b13b540b6f54fd3f Mon Sep 17 00:00:00 2001 From: "B. Watson" Date: Sat, 21 Mar 2026 02:49:05 -0400 Subject: Esc now acts as a latch for the Start key (irssi-like, plus easier for XEGS/1200XL users). --- src/edbox.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'src/edbox.c') diff --git a/src/edbox.c b/src/edbox.c index d5728c2..d3b0b11 100644 --- a/src/edbox.c +++ b/src/edbox.c @@ -236,6 +236,7 @@ static void normal_keystroke(void) { } void edbox_keystroke(void) { + extern char start_latch; char c; while(OS.ch == 0xff) @@ -266,9 +267,14 @@ void edbox_keystroke(void) { c = 0x7d; /* ascii: } */ break; case 0x1c: /* key: ESC */ - c = 0x60; /* ascii: ` */ + keyclick(); + if(!edbox_len) edbox_hide(); + start_latch = 1; + return; break; case 0x5c: /* key: shift ESC */ + c = 0x60; /* ascii: ` */ + break; case 0x9c: /* key: ctrl ESC */ c = 0x7e; /* ascii: ~ */ break; @@ -277,7 +283,6 @@ void edbox_keystroke(void) { case 0xbc: /* ctrl-caps */ OS.shflok ^= 0x40; keyclick(); - OS.ch = 0xff; return; break; case 0x27: /* atari key */ -- cgit v1.2.3