|
WinTer 0.1.1
Windows Terminal Emulator
|
Platform-specific implementation of the PTY interface. More...

Go to the source code of this file.
Functions | |
| INTERNAL void | safe_close_handle (HANDLE *h) |
| Safely closes a Win32 HANDLE and sets the pointer to NULL. | |
| b32 | pty_init (struct pty_state_t *state, u16 columns, u16 rows) |
| Initializes a Pseudo Console and establishes bidirectional communication pipes. | |
| b32 | pty_spawn (struct pty_state_t *state, LPCWSTR command_line) |
| Spawns a shell process and attaches it to an initialized Pseudo Console. | |
| void | pty_cleanup (struct pty_state_t *state) |
| Terminates the Pseudo Console session and releases all active system handles. | |
Platform-specific implementation of the PTY interface.
Implements the full three-phase pseudo-terminal lifecycle for Windows: pipe creation, ConPTY initialization, and shell process spawning via the extended STARTUPINFOEXW / PROC_THREAD_ATTRIBUTE_PSEUDOCONSOLE API.
Definition in file pty.c.