mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-05-23 05:42:29 +00:00
Rewrite Windows console input handling
This change removes our use of ENABLE_VIRTUAL_TERMINAL_INPUT (which isn't very good) in favor of having read() translate Windows Console input events to ANSI/XTERM sequences by hand. This makes it possible to capture important keystrokes (e.g. ctrl-space) that weren't possible before. Most importantly this change also removes the stdin/sigwinch worker threads, which never really worked that well. Interactive TTY sessions will now work reliably when a Cosmo process spawns or forks another Cosmo process, e.g. unbourne.com launching emacs.com.
This commit is contained in:
parent
ececec4c94
commit
d6c2830850
27 changed files with 635 additions and 464 deletions
|
@ -56,7 +56,8 @@ int64_t OpenProcess(uint32_t dwDesiredAccess, bool32 bInheritHandle,
|
|||
uint32_t GetCurrentProcessId(void); /* %gs:0x40 */
|
||||
uint32_t GetEnvironmentVariable(const char16_t *lpName, char16_t *lpBuffer,
|
||||
uint32_t nSize);
|
||||
uint32_t SetEnvironmentVariable(const char16_t *lpName, char16_t *lpValue);
|
||||
uint32_t SetEnvironmentVariable(const char16_t *lpName,
|
||||
const char16_t *lpValue);
|
||||
int32_t SetEnvironmentStrings(char16_t *NewEnvironment);
|
||||
bool32 GetProcessAffinityMask(int64_t hProcess, uint64_t *lpProcessAffinityMask,
|
||||
uint64_t *lpSystemAffinityMask);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue