| PatchworkOS
    | 
#include "terminal.h"#include "ansi.h"#include <errno.h>#include <stdio.h>#include <stdlib.h>#include <string.h>#include <sys/io.h>#include <sys/proc.h>Go to the source code of this file.
| 
 | static | 
Definition at line 11 of file terminal.c.
References terminal_char_t::background, terminal_char_t::chr, terminal_char_t::col, terminal_char_t::flags, terminal_char_t::foreground, and terminal_char_t::physicalRow.
Referenced by terminal_procedure(), and terminal_scroll().
| 
 | static | 
Definition at line 53 of file terminal.c.
References terminal_char_t::background, rect_t::bottom, terminal_char_t::chr, draw_rect(), draw_string(), terminal_char_t::flags, terminal_t::font, terminal_char_t::foreground, rect_t::left, RECT_INIT_DIM, RECT_WIDTH, terminal_char_pos(), terminal_char_rect(), TERMINAL_INVERSE, and TERMINAL_UNDERLINE.
Referenced by terminal_cursor_update(), terminal_put(), terminal_scroll(), and ternminal_execute_ansi().
| 
 | static | 
Definition at line 34 of file terminal.c.
References theme_t::bigPadding, terminal_char_t::col, element_get_theme(), terminal_t::font, font_height(), font_width(), theme_t::frameSize, terminal_char_row(), and theme.
Referenced by terminal_char_draw(), and terminal_char_rect().
| 
 | static | 
Definition at line 47 of file terminal.c.
References terminal_t::font, font_height(), font_width(), RECT_INIT_DIM, terminal_char_pos(), point_t::x, and point_t::y.
Referenced by terminal_char_draw().
| 
 | static | 
Definition at line 29 of file terminal.c.
References terminal_t::firstRow, terminal_char_t::physicalRow, and TERMINAL_ROWS.
Referenced by terminal_char_pos(), terminal_put(), and ternminal_execute_ansi().
| 
 | static | 
Definition at line 81 of file terminal.c.
References terminal_t::background, terminal_t::cursor, draw_rect(), element_get_content_rect(), element_get_theme(), theme_t::frameSize, terminal_t::prevCursor, RECT_SHRINK, terminal_t::screen, theme_t::smallPadding, and theme.
Referenced by terminal_procedure().
| 
 | static | 
Definition at line 69 of file terminal.c.
References terminal_t::cursor, terminal_char_t::flags, terminal_t::isCursorVisible, terminal_t::prevCursor, terminal_char_draw(), and TERMINAL_INVERSE.
Referenced by terminal_handle_output(), terminal_procedure(), and ternminal_execute_ansi().
| 
 | static | 
Definition at line 24 of file terminal.c.
References terminal_t::firstRow, terminal_t::screen, and TERMINAL_ROWS.
Referenced by terminal_put(), terminal_scroll(), and ternminal_execute_ansi().
| 
 | static | 
Definition at line 210 of file terminal.c.
References ansi_kbd_to_receiving(), ansi_receiving_t::buffer, kbd, ansi_receiving_t::length, PIPE_WRITE, terminal_t::stdin, and write().
Referenced by terminal_procedure().
| 
 | static | 
Definition at line 495 of file terminal.c.
References terminal_t::ansi, ansi_sending_parse(), buffer, terminal_t::isCursorVisible, TERMINAL_BLINK_INTERVAL, terminal_cursor_update(), ternminal_execute_ansi(), TIMER_NONE, terminal_t::win, and window_set_timer().
Referenced by terminal_procedure().
Definition at line 668 of file terminal.c.
References theme_t::bigPadding, font_height(), theme_t::frameSize, TERMINAL_ROWS, theme, and theme_global_get().
Referenced by terminal_new().
Definition at line 662 of file terminal.c.
References theme_t::bigPadding, font_width(), theme_t::frameSize, TERMINAL_COLUMNS, theme, and theme_global_get().
Referenced by terminal_new().
| 
 | static | 
Definition at line 511 of file terminal.c.
References theme_t::ansi, terminal_t::ansi, ansi_sending_init(), terminal_t::background, theme_ansi_t::bright, uevent_terminal_data_t::buffer, spawn_fd_t::child, close(), event_kbd_t::code, terminal_t::cursor, display_disconnect(), element_draw_begin(), element_draw_end(), element_get_private(), element_get_theme(), element_set_private(), ERR, EVENT_KBD, EVENT_TIMER, terminal_t::firstRow, terminal_t::flags, terminal_t::font, terminal_init_ctx_t::font, font_free(), terminal_t::foreground, free(), terminal_t::isCursorVisible, event_t::kbd, KBD_PRESS, uevent_terminal_data_t::length, LEVENT_DEINIT, LEVENT_INIT, LEVENT_QUIT, LEVENT_REDRAW, malloc(), theme_ansi_t::normal, NULL, open2(), openf(), PIPE_READ, PIPE_WRITE, terminal_t::prevCursor, event_t::raw, terminal_t::savedCursor, terminal_t::screen, terminal_t::shell, spawn(), SPAWN_FD_END, STDERR_FILENO, terminal_t::stdin, STDIN_FILENO, terminal_t::stdout, STDOUT_FILENO, TERMINAL_BLINK_INTERVAL, terminal_char_create(), terminal_clear(), TERMINAL_COLUMNS, terminal_cursor_update(), terminal_handle_input(), terminal_handle_output(), TERMINAL_ROWS, theme, TIMER_NONE, event_kbd_t::type, event_t::type, UEVENT_TERMINAL_DATA, terminal_t::win, window_get_display(), window_set_timer(), and writef().
Referenced by terminal_new().
| 
 | static | 
Definition at line 129 of file terminal.c.
References terminal_char_t::background, terminal_t::background, terminal_char_t::chr, terminal_char_t::col, terminal_t::cursor, element_get_content_rect(), terminal_char_t::flags, terminal_t::flags, terminal_char_t::foreground, terminal_t::foreground, terminal_char_draw(), terminal_char_row(), TERMINAL_COLUMNS, terminal_get_char(), terminal_put(), TERMINAL_ROWS, and terminal_scroll().
Referenced by terminal_put(), and ternminal_execute_ansi().
| 
 | static | 
Definition at line 95 of file terminal.c.
References theme_t::ansi, terminal_t::background, theme_t::bigPadding, rect_t::bottom, theme_ansi_t::bright, terminal_t::cursor, draw_rect(), draw_transfer(), element_get_content_rect(), element_get_theme(), terminal_t::firstRow, terminal_char_t::flags, terminal_t::font, font_height(), theme_t::frameSize, rect_t::left, theme_ansi_t::normal, terminal_t::prevCursor, RECT_HEIGHT, RECT_INIT_DIM, RECT_SHRINK, RECT_WIDTH, terminal_t::screen, terminal_char_create(), terminal_char_draw(), TERMINAL_COLUMNS, terminal_get_char(), TERMINAL_ROWS, theme, and rect_t::top.
Referenced by terminal_put().
| 
 | static | 
Definition at line 224 of file terminal.c.
References theme_t::ansi, ansi_sending_t::ascii, terminal_char_t::background, terminal_t::background, theme_ansi_t::bright, terminal_char_t::chr, terminal_char_t::col, ansi_sending_t::command, terminal_t::cursor, element_get_theme(), terminal_char_t::flags, terminal_t::flags, terminal_char_t::foreground, terminal_t::foreground, MAX_NAME, MIN, theme_ansi_t::normal, ansi_sending_t::paramCount, ansi_sending_t::parameters, PIPE_WRITE, terminal_t::prevCursor, terminal_t::savedCursor, snprintf(), terminal_t::stdin, TERMINAL_BLINK, TERMINAL_BOLD, terminal_char_draw(), terminal_char_row(), TERMINAL_COLUMNS, terminal_cursor_update(), TERMINAL_DIM, terminal_get_char(), TERMINAL_HIDDEN, TERMINAL_INVERSE, TERMINAL_ITALIC, terminal_put(), TERMINAL_ROWS, TERMINAL_STRIKETHROUGH, TERMINAL_UNDERLINE, theme, and write().
Referenced by terminal_handle_output().