|
XenevaOS
|
#include <_xeneva.h>#include <sys\_keproc.h>#include <sys\_kefile.h>#include <sys\iocodes.h>#include <ctype.h>#include <chitralekha.h>#include <widgets\window.h>#include <keycode.h>#include "term.h"#include "arrayfont.h"#include <sys\mman.h>#include "esccode.h"#include <sys\_ketty.h>
Functions | |
| void | TerminalDrawArrayFont (ChCanvas *canv, unsigned x, unsigned y, unsigned char c, uint32_t color) |
| void | TerminalSetCellData (int x, int y, uint8_t c, uint32_t bg, uint32_t fg) |
| void | TerminalDrawCell (int x, int y, bool dirty) |
| void | TerminalDrawAllCells () |
| void | TerminalDrawCursor () |
| void | TerminalScroll () |
| void | TerminalClearScreen () |
| void | TerminalPrintChar (char c, uint32_t fgcolor, uint32_t bgcolor) |
| void | TerminalPrintString (char *string, uint32_t fgcolor, uint32_t bgcolor) |
| void | ProcessControlSequence (char ch) |
| void | TerminalProcessLine (char ch) |
| void | TerminalHandleMessage (PostEvent *e) |
| void | TerminalThread () |
| int | main (int argc, char *arv[]) |
Variables | |
| ChWindow * | win |
| ChitralekhaApp * | app |
| ChFont * | consolas |
| int | master_fd |
| int | slave_fd |
| int | x |
| int | ws_col |
| int | ws_row |
| int | cell_width |
| int | cell_height |
| TermCell * | term_buffer |
| uint8_t * | psffont |
| int | cursor_x |
| int | cursor_y |
| int | last_cursor_y |
| int | last_cursor_x |
| bool | dirty = false |
| bool | _escape_seq = false |
| bool | _seq_csi = false |
| bool | _cursor_blink = 0 |
| bool | _update_terminal_ = false |
| bool | _first_time = false |
| char * | escBuf |
| int | shell_id |
| uint32_t | backColor |
| uint32_t | fgColor |
| int main | ( | int | argc, |
| char * | arv[] | ||
| ) |
| void ProcessControlSequence | ( | char | ch | ) |
| void TerminalClearScreen | ( | ) |
| void TerminalDrawAllCells | ( | ) |
| void TerminalDrawArrayFont | ( | ChCanvas * | canv, |
| unsigned | x, | ||
| unsigned | y, | ||
| unsigned char | c, | ||
| uint32_t | color | ||
| ) |
| void TerminalDrawCell | ( | int | x, |
| int | y, | ||
| bool | dirty | ||
| ) |
| void TerminalDrawCursor | ( | ) |
| void TerminalHandleMessage | ( | PostEvent * | e | ) |
| void TerminalProcessLine | ( | char | ch | ) |
| void TerminalScroll | ( | ) |
| void TerminalThread | ( | ) |
| bool _cursor_blink = 0 |
| ChitralekhaApp* app |
| uint32_t backColor |
| int cell_height |
| int cell_width |
| ChFont* consolas |
| int cursor_x |
| int cursor_y |
| char* escBuf |
| uint32_t fgColor |
| int last_cursor_x |
| int last_cursor_y |
| int master_fd |
| uint8_t* psffont |
| int shell_id |
| int slave_fd |
| TermCell* term_buffer |
| ChWindow* win |
BSD 2-Clause License
Copyright (c) 2022-2023, Manas Kamal Choudhury All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
| int ws_col |
| int ws_row |
| int x |