AquilaOS documentation
How it works, and its code
Loading...
Searching...
No Matches
vt Struct Reference

A virtual terminal: its screen, its emulator's state, and its tty. More...

#include <vt.h>

Data Fields

int id
int rows
int cols
struct vt_cell * main
struct vt_cell * alt
struct vt_cell * screen
int row
int col
int wrap_pending
struct vt_cell pen
int top
int bottom
int autowrap
int origin
int insert
int newline
int cursor_visible
int cursor_keys
int reverse_screen
int keypad
int charset [2]
int gl
uint8_t tabs [32]
struct vt_cursor saved saved_alt
int state
int params [16]
int nparams
char private
char intermediate
uint8_t last
uint32_t utf8
int utf8_left
char reply [32]
size_t reply_len
int kd_mode
int kb_mode
pid_t kd_pid
struct vt_mode mode
pid_t mode_pid
int opens
struct tty * tty
struct ringbuf * in
struct vnode * vnode
struct waitq read_queue write_queue

Detailed Description

A virtual terminal: its screen, its emulator's state, and its tty.

Definition at line 76 of file vt.h.

Field Documentation

◆ alt

struct vt_cell * vt::alt

Definition at line 81 of file vt.h.

Referenced by alt_screen(), and vt_term_init().

◆ autowrap

int vt::autowrap

Definition at line 94 of file vt.h.

Referenced by decset(), put_glyph(), restore_cursor(), save_cursor(), and soft_reset().

◆ bottom

int vt::bottom

Definition at line 91 of file vt.h.

Referenced by csi(), linefeed(), move_rows(), move_to(), reverse_index(), and soft_reset().

◆ charset

int vt::charset[2]

Definition at line 99 of file vt.h.

Referenced by put_char(), restore_cursor(), save_cursor(), soft_reset(), and term_char().

◆ col

int vt::col

◆ cols

◆ cursor_keys

int vt::cursor_keys

Definition at line 94 of file vt.h.

Referenced by cursor_key(), decset(), and soft_reset().

◆ cursor_visible

int vt::cursor_visible

Definition at line 94 of file vt.h.

Referenced by decset(), refresh(), and soft_reset().

◆ gl

int vt::gl

Definition at line 99 of file vt.h.

Referenced by control(), put_char(), restore_cursor(), save_cursor(), and soft_reset().

◆ id

int vt::id

Definition at line 77 of file vt.h.

Referenced by vt_kd_ioctl(), vt_probe(), vt_switch(), and vt_switch_now().

◆ in

struct ringbuf* vt::in

Definition at line 138 of file vt.h.

Referenced by vt_can_read(), vt_input_flush(), vt_read(), vt_setup(), and vt_tty_input().

◆ insert

int vt::insert

Definition at line 94 of file vt.h.

Referenced by csi(), put_glyph(), and soft_reset().

◆ intermediate

char vt::intermediate

Definition at line 109 of file vt.h.

Referenced by csi(), esc(), and term_char().

◆ kb_mode

int vt::kb_mode

Definition at line 124 of file vt.h.

Referenced by vt_check(), vt_kd_ioctl(), vt_probe(), vt_scancode(), and vt_switch_now().

◆ kd_mode

int vt::kd_mode

Definition at line 124 of file vt.h.

Referenced by refresh(), vt_check(), vt_kd_ioctl(), and vt_switch_now().

◆ kd_pid

pid_t vt::kd_pid

Definition at line 125 of file vt.h.

Referenced by vt_check(), and vt_kd_ioctl().

◆ keypad

int vt::keypad

Definition at line 95 of file vt.h.

Referenced by esc(), and soft_reset().

◆ last

uint8_t vt::last

Definition at line 110 of file vt.h.

Referenced by csi(), put_glyph(), and vt_term_reset().

◆ main

struct vt_cell* vt::main

Definition at line 81 of file vt.h.

Referenced by alt_screen(), vt_term_init(), and vt_term_reset().

◆ mode

struct vt_mode vt::mode

Definition at line 130 of file vt.h.

Referenced by vt_check(), vt_ioctl(), vt_kd_ioctl(), vt_scancode(), vt_switch(), and vt_switch_now().

◆ mode_pid

pid_t vt::mode_pid

Definition at line 131 of file vt.h.

Referenced by vt_check(), vt_kd_ioctl(), and vt_signal().

◆ newline

int vt::newline

Definition at line 94 of file vt.h.

Referenced by control(), csi(), and soft_reset().

◆ nparams

int vt::nparams

Definition at line 108 of file vt.h.

Referenced by csi(), decset(), esc(), param(), sgr(), and term_char().

◆ opens

int vt::opens

Definition at line 134 of file vt.h.

Referenced by vt_file_close(), vt_file_open(), and vt_in_use().

◆ origin

int vt::origin

Definition at line 94 of file vt.h.

Referenced by csi(), decset(), move_to(), restore_cursor(), save_cursor(), and soft_reset().

◆ params

int vt::params[16]

Definition at line 108 of file vt.h.

Referenced by csi(), decset(), esc(), param(), sgr(), and term_char().

◆ pen

struct vt_cell vt::pen

Definition at line 88 of file vt.h.

Referenced by blank(), put_glyph(), restore_cursor(), save_cursor(), sgr(), soft_reset(), and vt_term_init().

◆ private

char vt::private

Definition at line 109 of file vt.h.

Referenced by csi(), esc(), and term_char().

◆ reply

char vt::reply[32]

Definition at line 117 of file vt.h.

Referenced by reply(), and vt_reply().

◆ reply_len

size_t vt::reply_len

Definition at line 118 of file vt.h.

Referenced by reply(), and vt_reply().

◆ reverse_screen

int vt::reverse_screen

Definition at line 95 of file vt.h.

Referenced by decset(), refresh(), and vt_term_reset().

◆ row

◆ rows

◆ saved_alt

struct vt_cursor saved vt::saved_alt

Definition at line 104 of file vt.h.

Referenced by decset(), and soft_reset().

◆ screen

struct vt_cell * vt::screen

Definition at line 81 of file vt.h.

Referenced by alt_screen(), cell(), refresh(), vcs_read(), vt_term_init(), and vt_term_reset().

◆ state

int vt::state

Definition at line 107 of file vt.h.

Referenced by control(), esc(), term_char(), vt_kmsg(), and vt_term_reset().

◆ tabs

uint8_t vt::tabs[32]

Definition at line 102 of file vt.h.

Referenced by tab_set(), and tab_stop().

◆ top

int vt::top

Definition at line 91 of file vt.h.

Referenced by csi(), decset(), linefeed(), move_rows(), move_to(), reverse_index(), and soft_reset().

◆ tty

◆ utf8

uint32_t vt::utf8

Definition at line 113 of file vt.h.

Referenced by utf8().

◆ utf8_left

int vt::utf8_left

Definition at line 114 of file vt.h.

Referenced by utf8(), vt_kmsg(), and vt_term_reset().

◆ vnode

struct vnode* vt::vnode

Definition at line 139 of file vt.h.

Referenced by vt_file_open().

◆ wrap_pending

int vt::wrap_pending

◆ write_queue

struct waitq read_queue vt::write_queue

Definition at line 140 of file vt.h.

Referenced by vt_file_open().


The documentation for this struct was generated from the following file:
  • kernel/include/dev/vt.h