The manual
ginnOS
The reference: libc, the libraries and the kernel
Loading...
Searching...
No Matches
tty_backend_t Struct Reference

character-cell backend a tty draws onto. More...

#include </home/runner/work/ginnOS-docs/ginnOS-docs/ginnOS/src/kernel/tty/tty.h>

Data Fields

void(*) put_at (char c, uint8_t row, uint8_t col)
void(*) scroll (void)
void(*) clear (void)
void(*) set_cursor (uint8_t row, uint8_t col)
void(*) get_cursor (uint8_t *row, uint8_t *col)
void(*) set_colors (uint8_t fg, uint8_t bg)
void(*) draw_cursor (uint8_t row, uint8_t col, bool visible)
void(*) flush (void)
uint8_t rows
uint8_t cols

Detailed Description

character-cell backend a tty draws onto.

put_at/scroll/clear/set_cursor/ get_cursor/rows/cols are required; set_colors and draw_cursor are optional (NULL is fine) so a backend that has no notion of colour or needs no software caret can omit them. coordinates are zero-based (row, col); the backend defines its own bounds.

Field Documentation

◆ put_at

void(*) tty_backend_t::put_at(char c, uint8_t row, uint8_t col)

◆ scroll

void(*) tty_backend_t::scroll(void)

◆ clear

void(*) tty_backend_t::clear(void)

◆ set_cursor

void(*) tty_backend_t::set_cursor(uint8_t row, uint8_t col)

◆ get_cursor

void(*) tty_backend_t::get_cursor(uint8_t *row, uint8_t *col)

◆ set_colors

void(*) tty_backend_t::set_colors(uint8_t fg, uint8_t bg)

◆ draw_cursor

void(*) tty_backend_t::draw_cursor(uint8_t row, uint8_t col, bool visible)

◆ flush

void(*) tty_backend_t::flush(void)

◆ rows

uint8_t tty_backend_t::rows

◆ cols

uint8_t tty_backend_t::cols

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