about summary refs log tree commit diff stats
path: root/apidocs
Commit message (Expand)AuthorAgeFilesLines
* Update copyrightJames Booth2018-01-211-1/+1
* Update CopyrightJames Booth2017-01-281-1/+1
* Add pre chat and room message blockingJames Booth2017-01-222-6/+6
* Add chat and room show calls to plugins apiJames Booth2017-01-212-6/+134
* Allow room display properies to be set by pluginsJames Booth2017-01-202-7/+110
* Allow chat prefix char to be set by pluginsJames Booth2017-01-202-1/+92
* Add titlebar encryption text to plugins apiJames Booth2017-01-192-0/+48
* Add prof.encryption_reset to Plugins APIJames Booth2017-01-182-0/+34
* Allow filepath autocompletion in pluginsJames Booth2016-10-102-0/+21
* Add resource to chat message plugin hooksJames Booth2016-08-102-4/+10
* Rename plugin jid argumentsJames Booth2016-08-102-50/+50
* Fix type in python API docsJames Booth2016-08-081-2/+2
* Update plugin API docsJames Booth2016-08-072-16/+16
* Update plugin API docsJames Booth2016-08-025-4/+115
* Update gitignore, added python API docs MakefileJames Booth2016-08-021-0/+216
* Fixes to plugin API docsJames Booth2016-07-303-10/+8
* Update python API docsJames Booth2016-07-302-2/+5
* Update plugins API docsJames Booth2016-07-303-98/+184
* Update plugin API docsJames Booth2016-07-302-87/+193
* Update python API docsJames Booth2016-07-301-8/+2
* Update python API docsJames Booth2016-07-302-8/+250
* Fix type in python api docsJames Booth2016-07-301-1/+1
* Update python API docsJames Booth2016-07-301-35/+466
* Updates to python docsJames Booth2016-07-292-15/+22
* Add python plugin hook docsJames Booth2016-07-291-0/+119
* Add Python API docsJames Booth2016-07-294-0/+386
* Added doxygen settings for C plugin APIJames Booth2016-03-174-0/+2717
="k">static uint16 gCurrentLine = 0; static uint16 gCurrentColumn = 0; static uint8 gColor = 0x0A; void Screen_FlushFromTty(Tty* tty) { memcpy(videoStart, tty->buffer, SCREEN_LINE_COUNT * SCREEN_COLUMN_COUNT * 2); Screen_MoveCursor(tty->currentLine, tty->currentColumn); } void Screen_Print(int row, int column, const char* text) { unsigned char * video = videoStart; video += (row * SCREEN_COLUMN_COUNT + column) * 2; while(*text != 0) { *video++ = *text++; *video++ = gColor; } } void Screen_SetActiveColor(uint8 color) { gColor = color; } void Screen_ApplyColor(uint8 color) { gColor = color; unsigned char * video = videoStart; int i = 0; for (i = 0; i < SCREEN_LINE_COUNT * SCREEN_COLUMN_COUNT; ++i) { video++; *video++ = gColor; } } void Screen_Clear() { unsigned char * video = videoStart; int i = 0; for (i = 0; i < SCREEN_LINE_COUNT * SCREEN_COLUMN_COUNT; ++i) { *video++ = 0; *video++ = gColor; } gCurrentLine = 0; gCurrentColumn = 0; } void Screen_MoveCursor(uint16 line, uint16 column) { // The screen is 80 characters wide... uint16 cursorLocation = line * SCREEN_COLUMN_COUNT + column; outb(0x3D4, 14); // Tell the VGA board we are setting the high cursor byte. outb(0x3D5, cursorLocation >> 8); // Send the high cursor byte. outb(0x3D4, 15); // Tell the VGA board we are setting the low cursor byte. outb(0x3D5, cursorLocation); // Send the low cursor byte. gCurrentColumn = column; gCurrentLine = line; } void Screen_SetCursorVisible(BOOL visible) { uint8 cursor = inb(0x3d5); if (visible) { cursor &= ~0x20;//5th bit cleared when cursor visible } else { cursor |= 0x20;//5th bit set when cursor invisible } outb(0x3D5, cursor); } void Screen_GetCursor(uint16* line, uint16* column) { *line = gCurrentLine; *column = gCurrentColumn; }