WinTer 0.1.1
Windows Terminal Emulator
Loading...
Searching...
No Matches
pty_state_t Struct Reference

Encapsulates the OS-level state of an active Pseudo Console session. More...

#include <pty.h>

Public Attributes

HPCON hPC
HANDLE hInputWrite
HANDLE hOutputRead
HANDLE hProcess
HANDLE hThread

Detailed Description

Encapsulates the OS-level state of an active Pseudo Console session.

This struct owns all Win32 handles needed to communicate with the shell process. All handles are initialized to NULL and must only be used after a successful call to pty_init(). The hProcess and hThread handles are populated after a successful call to pty_spawn().

Warning
Do not copy this struct. Handle ownership is singular only one instance should own and eventually close each handle.

Definition at line 86 of file pty.h.

Member Data Documentation

◆ hInputWrite

HANDLE pty_state_t::hInputWrite

Write end of the input pipe. App writes keystrokes here.

Definition at line 88 of file pty.h.

◆ hOutputRead

HANDLE pty_state_t::hOutputRead

Read end of the output pipe. App reads shell output here.

Definition at line 89 of file pty.h.

◆ hPC

HPCON pty_state_t::hPC

Handle to the Windows Pseudo Console object. Owned by ConPTY.

Definition at line 87 of file pty.h.

◆ hProcess

HANDLE pty_state_t::hProcess

Handle to the spawned shell process. Used for lifecycle management.

Definition at line 90 of file pty.h.

◆ hThread

HANDLE pty_state_t::hThread

Handle to the shell's main thread. Closed after spawn.

Definition at line 91 of file pty.h.


The documentation for this struct was generated from the following file: