Skip to content

Commit

Permalink
ALT_DN should never have been used (I misunderstood what was going on…
Browse files Browse the repository at this point in the history
… 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.
  • Loading branch information
Bill-Gray committed Apr 22, 2024
1 parent 55a5205 commit 4b40c40
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 8 deletions.
13 changes: 9 additions & 4 deletions command.txt
Expand Up @@ -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)
4 changes: 2 additions & 2 deletions curs_lin.h
Expand Up @@ -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)
Expand Down Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions findorb.cpp
Expand Up @@ -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
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 4b40c40

Please sign in to comment.