Files
nethack/src
PatR b70f00578c fix github issue #558 - 'altmeta' input
Setting the 'altmeta' option affects how ESC is handled.  Normally it
is for terminals/emulators which transmit two character sequence ESC c
when the user types Meta+c, but it can also be used to construct meta
characters 'manually' by typing ESC c.  Unfortunately setting this
option has a side-effect of requiring a second character after ESC
before our readchar() will return, so it is only honored when parse()
wants the next command, not for general input.

When readchar() was recently split into two parts, the use of static
variable 'alt_esc' by parse() and readchar() was removed.  That
resulted in requiring the user to type a second character whenever
ESC was typed, instead of just when it was transmitted or typed as
the prefix of a command that uses a meta-character keystroke.

Instead of just putting 'alt_esc' back, do things differently by
adding static 'getting_cmd' flag instead.

Fixes #558
2021-07-25 10:52:11 -07:00
..
2021-01-03 13:37:25 -06:00
2021-01-26 21:06:16 -05:00
2021-06-27 15:46:56 +03:00
2021-07-23 10:41:57 -07:00
2021-01-26 21:06:16 -05:00
2021-01-26 21:06:16 -05:00
2021-07-25 10:52:11 -07:00
2021-01-26 21:06:16 -05:00
2021-06-28 23:34:54 +03:00
2021-07-03 18:20:24 +03:00
2021-01-26 21:06:16 -05:00
2021-07-09 19:56:10 -07:00
2021-07-23 10:41:57 -07:00
2021-07-14 19:21:18 -07:00
2021-06-17 16:03:45 -07:00
2021-06-27 15:46:56 +03:00
2021-07-10 17:37:38 -07:00
2021-06-16 13:14:32 +03:00
2021-01-26 21:06:16 -05:00
2021-07-08 11:35:43 +03:00
2021-07-22 07:21:40 +03:00
2021-01-26 21:06:16 -05:00
2021-06-10 12:14:36 -04:00
2021-05-17 20:01:11 +03:00
2021-06-27 15:46:56 +03:00
bit
2021-02-26 09:47:54 -05:00
2021-07-23 10:41:57 -07:00
2021-03-23 08:52:36 -07:00
2021-01-26 21:06:16 -05:00
2021-07-24 10:49:06 +03:00
2021-01-26 21:06:16 -05:00
2021-07-23 10:41:57 -07:00
2021-06-21 10:06:46 +03:00
2021-07-23 10:41:57 -07:00
2021-07-23 10:41:57 -07:00
2021-06-21 10:06:46 +03:00
2021-06-30 17:33:18 -07:00
2021-01-26 21:06:16 -05:00
2021-07-24 10:49:06 +03:00
2021-07-23 10:41:57 -07:00
2021-07-23 10:41:57 -07:00
2021-05-31 15:28:19 -07:00
2021-04-02 12:26:41 -07:00
2021-07-23 10:41:57 -07:00
2021-05-17 20:01:11 +03:00
2021-06-27 15:46:56 +03:00
2021-02-10 17:06:12 +02:00
2021-07-23 10:41:57 -07:00
2021-01-26 21:06:16 -05:00
2021-05-17 20:01:11 +03:00
2021-06-25 20:02:06 +03:00
2021-01-26 21:06:16 -05:00
2021-01-26 21:06:16 -05:00
2021-01-26 21:06:16 -05:00
2021-07-24 10:49:06 +03:00
2021-01-26 21:06:16 -05:00
2021-07-09 20:32:00 +03:00
2021-04-14 12:51:20 -07:00
2021-07-24 20:18:44 +03:00
2021-04-14 12:51:20 -07:00
2021-01-26 21:06:16 -05:00
2021-01-26 21:06:16 -05:00
2021-04-12 13:25:52 -07:00
2021-04-16 23:01:04 -07:00
2021-01-26 21:06:16 -05:00
2021-06-27 15:46:56 +03:00
2021-01-26 21:06:16 -05:00
2021-01-26 21:06:16 -05:00
2021-01-26 21:06:16 -05:00
2021-01-26 21:06:16 -05:00
2021-01-26 21:06:16 -05:00
2021-06-16 13:14:32 +03:00
2021-03-13 18:17:00 -08:00
2021-06-27 15:46:56 +03:00
2021-07-23 10:41:57 -07:00
2021-01-26 21:06:16 -05:00
2021-07-17 20:59:40 +03:00