Functions | Variables
unix/tty.c File Reference
#include "uv.h"
#include "internal.h"
#include "spinlock.h"
#include <stdlib.h>
#include <assert.h>
#include <unistd.h>
#include <termios.h>
#include <errno.h>
#include <sys/ioctl.h>
Include dependency graph for unix/tty.c:

Go to the source code of this file.

Functions

static int uv__tty_is_slave (const int fd)
 
static void uv__tty_make_raw (struct termios *tio)
 
uv_handle_type uv_guess_handle (uv_file file)
 
int uv_tty_get_vterm_state (uv_tty_vtermstate_t *state)
 
int uv_tty_get_winsize (uv_tty_t *tty, int *width, int *height)
 
int uv_tty_init (uv_loop_t *loop, uv_tty_t *tty, int fd, int unused)
 
int uv_tty_reset_mode (void)
 
int uv_tty_set_mode (uv_tty_t *tty, uv_tty_mode_t mode)
 
void uv_tty_set_vterm_state (uv_tty_vtermstate_t state)
 

Variables

static struct termios orig_termios
 
static int orig_termios_fd = -1
 
static uv_spinlock_t termios_spinlock = UV_SPINLOCK_INITIALIZER
 

Function Documentation

◆ uv__tty_is_slave()

static int uv__tty_is_slave ( const int  fd)
static

Definition at line 69 of file unix/tty.c.

◆ uv__tty_make_raw()

static void uv__tty_make_raw ( struct termios *  tio)
static

Definition at line 231 of file unix/tty.c.

◆ uv_guess_handle()

uv_handle_type uv_guess_handle ( uv_file  file)

Definition at line 315 of file unix/tty.c.

◆ uv_tty_get_vterm_state()

int uv_tty_get_vterm_state ( uv_tty_vtermstate_t state)

Definition at line 400 of file unix/tty.c.

◆ uv_tty_get_winsize()

int uv_tty_get_winsize ( uv_tty_t tty,
int width,
int height 
)

Definition at line 297 of file unix/tty.c.

◆ uv_tty_init()

int uv_tty_init ( uv_loop_t loop,
uv_tty_t tty,
int  fd,
int  unused 
)

Definition at line 123 of file unix/tty.c.

◆ uv_tty_reset_mode()

int uv_tty_reset_mode ( void  )

Definition at line 378 of file unix/tty.c.

◆ uv_tty_set_mode()

int uv_tty_set_mode ( uv_tty_t tty,
uv_tty_mode_t  mode 
)

Definition at line 250 of file unix/tty.c.

◆ uv_tty_set_vterm_state()

void uv_tty_set_vterm_state ( uv_tty_vtermstate_t  state)

Definition at line 397 of file unix/tty.c.

Variable Documentation

◆ orig_termios

struct termios orig_termios
static

Definition at line 66 of file unix/tty.c.

◆ orig_termios_fd

int orig_termios_fd = -1
static

Definition at line 65 of file unix/tty.c.

◆ termios_spinlock

uv_spinlock_t termios_spinlock = UV_SPINLOCK_INITIALIZER
static

Definition at line 67 of file unix/tty.c.



grpc
Author(s):
autogenerated on Fri May 16 2025 03:01:35