diff options
author | Ron Yorston <rmy@pobox.com> | 2023-03-06 12:25:39 +0000 |
---|---|---|
committer | Ron Yorston <rmy@pobox.com> | 2023-03-06 12:25:39 +0000 |
commit | b50470de96320425adbed82129bdb7f7f5263ddb (patch) | |
tree | 129ee385d0d9c658eb7f71717372ea496dd604e1 /include | |
parent | 8ade494aebe60ea14026d48025a462e6d0b58a7f (diff) | |
download | busybox-w32-b50470de96320425adbed82129bdb7f7f5263ddb.tar.gz busybox-w32-b50470de96320425adbed82129bdb7f7f5263ddb.tar.bz2 busybox-w32-b50470de96320425adbed82129bdb7f7f5263ddb.zip |
win32: virtual terminal input fixes
- Disable ENABLE_PROCESSED_INPUT in raw mode. Otherwise ^C isn't
immediately detected during shell command line editing with
virtual terminal input enabled.
- Switch read_key()/unix_readkey() to windows_read_key()/read_key().
This allows the shell `read` builtin to use windows_read_key().
Without this change `read` fails when virtual terminal input is
enabled.
Diffstat (limited to 'include')
-rw-r--r-- | include/libbb.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/libbb.h b/include/libbb.h index c1d4d11c1..4276bae61 100644 --- a/include/libbb.h +++ b/include/libbb.h | |||
@@ -1976,7 +1976,7 @@ enum { | |||
1976 | */ | 1976 | */ |
1977 | int64_t read_key(int fd, char *buffer, int timeout) FAST_FUNC; | 1977 | int64_t read_key(int fd, char *buffer, int timeout) FAST_FUNC; |
1978 | #if ENABLE_PLATFORM_MINGW32 | 1978 | #if ENABLE_PLATFORM_MINGW32 |
1979 | int64_t unix_read_key(int fd, char *buffer, int timeout) FAST_FUNC; | 1979 | int64_t windows_read_key(int fd, char *buffer, int timeout) FAST_FUNC; |
1980 | #endif | 1980 | #endif |
1981 | /* This version loops on EINTR: */ | 1981 | /* This version loops on EINTR: */ |
1982 | int64_t safe_read_key(int fd, char *buffer, int timeout) FAST_FUNC; | 1982 | int64_t safe_read_key(int fd, char *buffer, int timeout) FAST_FUNC; |