diff options
author | Michael Gran <spk121@yahoo.com> | 2023-06-20 16:04:59 -0700 |
---|---|---|
committer | Michael Gran <spk121@yahoo.com> | 2025-03-23 10:26:40 -0700 |
commit | af96820e072d18c49ac03e80c6f3466d568dc77d (patch) | |
tree | 8a4ac5114a091cb2f54f845aabf613b2ef45ac76 /libguile/posix-w32.h | |
parent | adbf2156ab5939e6909e035017995ba555886dc2 (diff) | |
download | guile-main.tar.gz |
There is an apparent bug in Windows 11 (not Windows 10) where,
when reading from an fd backed by the Console, a single
return character will always be available.
* libguile/posix-w32.c (console_has_return_keyevent_w32): new procedure
* libguile/posix-w32.h: declare console_has_return_keyevent_w32
* libguile/fports.c [__MINGW32__](fport_input_waiting): ignore return keyevent
Diffstat (limited to 'libguile/posix-w32.h')
-rw-r--r-- | libguile/posix-w32.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libguile/posix-w32.h b/libguile/posix-w32.h index a3c27f6f9..5478f91f7 100644 --- a/libguile/posix-w32.h +++ b/libguile/posix-w32.h @@ -74,6 +74,7 @@ SCM_INTERNAL void *dlopen_w32 (const char *name, int flags); SCM_INTERNAL void *dlsym_w32 (void *handle, const char *name); SCM_INTERNAL int dlclose_w32 (void *handle); SCM_INTERNAL char *dlerror_w32 (void); +SCM_INTERNAL int console_has_return_keyevent_w32 (int fdes); SCM_INTERNAL int getpagesize_w32 (void); #define HAVE_UNAME 1 |