ascii-chat 0.11.33
Video chat in your terminal
Loading...
Searching...
No Matches
tty_info_t Struct Reference

TTY detection and management structure. More...

#include <include/ascii-chat/platform/terminal.h>

Data Fields

int fd
 File descriptor for TTY access.
 
const char * path
 Path to TTY device (e.g., "/dev/tty", "CON", etc.)
 
bool owns_fd
 True if we opened the FD and should close it, false otherwise.
 

Detailed Description

TTY detection and management structure.

Contains information about the current TTY (terminal) including file descriptor, device path, and ownership information for proper cleanup.

Note
owns_fd indicates whether the file descriptor was opened by the function and should be closed when done.

Definition at line 753 of file terminal.h.

Field Documentation

◆ fd

◆ owns_fd

bool tty_info_t::owns_fd

True if we opened the FD and should close it, false otherwise.

Definition at line 759 of file terminal.h.

Referenced by session_display_destroy().

◆ path

const char* tty_info_t::path

Path to TTY device (e.g., "/dev/tty", "CON", etc.)

Definition at line 757 of file terminal.h.


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