ascii-chat 0.6.0
Real-time terminal-based video chat with ASCII art conversion
Loading...
Searching...
No Matches
tty_info_t Struct Reference

TTY detection and management structure. More...

#include <lib/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 523 of file terminal.h.

Field Documentation

◆ fd

int tty_info_t::fd

File descriptor for TTY access.

Definition at line 525 of file terminal.h.

Referenced by display_cleanup(), display_full_reset(), and display_init().

◆ owns_fd

bool tty_info_t::owns_fd

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

Definition at line 529 of file terminal.h.

Referenced by display_cleanup().

◆ path

const char* tty_info_t::path

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

Definition at line 527 of file terminal.h.


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