From 8075890d4b83e7d8a9b363e131024f5f5e5361d0 Mon Sep 17 00:00:00 2001 From: "B. Watson" Date: Thu, 12 Mar 2026 00:48:08 -0400 Subject: fix start+letters in screen 2, filter out ctrl+atari keystrokes correctly. --- src/edbox.c | 2 +- src/irc.c | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/edbox.c b/src/edbox.c index efbd19d..7c9715d 100644 --- a/src/edbox.c +++ b/src/edbox.c @@ -168,7 +168,7 @@ void edbox_keystroke(void) { case 0xbc: /* ctrl-caps */ case 0x27: /* atari key */ case 0x67: /* ...w/shift */ - case 0x97: /* ...w/ctrl */ + case 0xa7: /* ...w/ctrl */ case 0x9a: /* ctrl-3 (crash if cgetc() reads it!) */ OS.ch = 0xff; /* ignore it! */ return; diff --git a/src/irc.c b/src/irc.c index 27fce4c..1d2907d 100644 --- a/src/irc.c +++ b/src/irc.c @@ -706,7 +706,7 @@ static void hunt_screen(signed char dir) { static char *get_cur_chan(void) { if(scr_current == SCR_SERVER && last_chan[0]) return last_chan; - else if (scr_current > 2 && scr_names[scr_current][0] == '#') + else if ((scr_current > 1) && (scr_names[scr_current][0] == '#')) return scr_names[scr_current]; else return 0; @@ -715,7 +715,7 @@ static char *get_cur_chan(void) { static char *get_cur_nick(void) { if(scr_current == SCR_PRIV && last_pm_nick[0]) return last_pm_nick; - else if (scr_current > 2 && scr_names[scr_current][0] != '#') + else if (scr_current > 1 && scr_names[scr_current][0] != '#') return scr_names[scr_current]; else return 0; @@ -817,7 +817,7 @@ static void start_keystroke(void) { case '-': scrollback(); return; - case 0x24: /* ^X */ + case 0x18: /* ^X */ send_cur_chan_cmd("PART"); /* fall thru */ case CH_ESC: -- cgit v1.2.3