From 4b40c40364f02a8764a075359f7b8cf40cadf7af Mon Sep 17 00:00:00 2001 From: Bill-Gray Date: Mon, 22 Apr 2024 13:51:06 -0400 Subject: [PATCH] ALT_DN should never have been used (I misunderstood what was going on here). For PuTTY, which doesn't recognize Shift-Up and Shift-Down to toggle observations above/below the currently selected one, you can now hit Alt-Up or Alt-Down instead. --- command.txt | 13 +++++++++---- curs_lin.h | 4 ++-- findorb.cpp | 4 ++-- 3 files changed, 13 insertions(+), 8 deletions(-) diff --git a/command.txt b/command.txt index ecbd6e6a..46ad97cd 100644 --- a/command.txt +++ b/command.txt @@ -143,7 +143,12 @@ Ctrl-G Set magnitude slope parameter (G) U+31008 Left-click to select tracklet, right to toggle it Start remaps : - ; PuTTY doesn't recognize Shift-Up or Shift-Dn. You can use Ctrl-U(p) or - ; Ctrl-E(nd) instead. Other key remaps may be added here as needed... -Ctrl-U Shift-Up -Ctrl-E Shift-Dn + ; PuTTY doesn't recognize Shift-Up or Shift-Dn (just returns the same key + ; codes as Up and Down). For Alt-Dn, Alt-Up, Alt-Lt, Alt-Rt, it returns + ; codes 4354 to 4357. The following remaps Alt-Dn (for PuTTY) to Shift-Dn, + ; and Alt-Up to Shift-Up, and will toggle observations below/above the + ; currently selected one. Other key remaps may be added here as needed... +U+4354 Shift-Dn +U+4355 Shift-Up + U+4356 Alt-Lt (not currently used) + U+4357 Alt-Rt (not currently used) diff --git a/curs_lin.h b/curs_lin.h index 4dcf5ea6..052da5e6 100644 --- a/curs_lin.h +++ b/curs_lin.h @@ -70,7 +70,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA #define ALT_RIGHT 0x22d #define ALT_LEFT 0x21e #define ALT_UP 0x233 -#define ALT_DN 0x20a +#define ALT_DOWN 0x20a // #define CTL_LEFT (ALT_BASE + 257) // #define CTL_RIGHT (ALT_BASE + 258) // #define CTL_PGUP (ALT_BASE + 259) @@ -105,7 +105,7 @@ something I've just not figured out yet. */ #define ALT_RIGHT 0x22e #define ALT_LEFT 0x21f #define ALT_UP 0x234 -#define ALT_DN 0x20b +#define ALT_DOWN 0x20b #define ALT_DEL 0x205 #define ALT_INS 0x21a diff --git a/findorb.cpp b/findorb.cpp index 33d42e0c..a548b632 100644 --- a/findorb.cpp +++ b/findorb.cpp @@ -1973,7 +1973,7 @@ static int get_character_code( const char *buff) if( !memcmp( buff + 4, "Up", 2)) rval = ALT_UP; else if( !memcmp( buff + 4, "Dn", 2)) - rval = ALT_DN; + rval = ALT_DOWN; else if( buff[4] >= 'A' && buff[4] <= 'Z') rval = ALT_A + buff[4] - 'A'; else @@ -6648,7 +6648,7 @@ int main( int argc, const char **argv) #ifdef __PDCURSES__ case PADPLUS: case PADMINUS: case PADSLASH: #endif - case ALT_DN: + case ALT_DOWN: default: debug_printf( "Key %d hit\n", c); show_a_file( "dos_help.txt", 0);