mirror of
https://github.com/Zeal-Operating-System/ZealOS.git
synced 2024-12-25 23:10:32 +00:00
colors fixed
This commit is contained in:
parent
ad1d9b044b
commit
ffd689dfa1
1 changed files with 83 additions and 87 deletions
|
@ -44,7 +44,6 @@ U0 InputTask(U0 *args) {
|
||||||
I64 sock = *args;
|
I64 sock = *args;
|
||||||
DocTermNew;
|
DocTermNew;
|
||||||
DocPrint(, "$$WW,1$$");
|
DocPrint(, "$$WW,1$$");
|
||||||
// DocCursor;
|
|
||||||
// WinBorder(OFF);
|
// WinBorder(OFF);
|
||||||
|
|
||||||
U8 input_buffer[INPUT_BUF_SIZE];
|
U8 input_buffer[INPUT_BUF_SIZE];
|
||||||
|
@ -53,8 +52,6 @@ U0 InputTask(U0 *args) {
|
||||||
U8 *line = input_buffer;
|
U8 *line = input_buffer;
|
||||||
I64 input_len = 0;
|
I64 input_len = 0;
|
||||||
|
|
||||||
while (!force_disconnect) {
|
|
||||||
|
|
||||||
DocBottom(input_task->put_doc);
|
DocBottom(input_task->put_doc);
|
||||||
"\n$$RED$$$BK,1$Input$BK,0$$$BLACK$$:";
|
"\n$$RED$$$BK,1$Input$BK,0$$$BLACK$$:";
|
||||||
|
|
||||||
|
@ -145,7 +142,6 @@ U0 InputTask(U0 *args) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
U0 Telnet(U8 *host, U16 port=TELNET_PORT) {
|
U0 Telnet(U8 *host, U16 port=TELNET_PORT) {
|
||||||
|
|
||||||
|
@ -293,7 +289,7 @@ U0 Telnet(U8 *host, U16 port=TELNET_PORT) {
|
||||||
// like, <Esc>[1;40m and now <Esc>[40m;1m
|
// like, <Esc>[1;40m and now <Esc>[40m;1m
|
||||||
I64 m;
|
I64 m;
|
||||||
Bool isBright = FALSE;
|
Bool isBright = FALSE;
|
||||||
for (m = 0; m < ansi_param_count; m++) {
|
for (m = 0; m <= ansi_param_count; m++) {
|
||||||
if (ansi_code[m] <= 10) {
|
if (ansi_code[m] <= 10) {
|
||||||
switch (ansi_code[m]) {
|
switch (ansi_code[m]) {
|
||||||
case 0: "$$BG,BLACK$$$$WHITE$$"; isBright = FALSE; break; // reset
|
case 0: "$$BG,BLACK$$$$WHITE$$"; isBright = FALSE; break; // reset
|
||||||
|
@ -477,7 +473,7 @@ U0 Telnet(U8 *host, U16 port=TELNET_PORT) {
|
||||||
ptr++;
|
ptr++;
|
||||||
break;
|
break;
|
||||||
case 'J':
|
case 'J':
|
||||||
SysLog("J code, %d %d\n", ansi_param_count, ansi_code[0]);
|
// SysLog("J code, %d %d\n", ansi_param_count, ansi_code[0]);
|
||||||
// Erase in Display
|
// Erase in Display
|
||||||
if (ansi_code[0] == 0) {
|
if (ansi_code[0] == 0) {
|
||||||
// Erase from cursor to end of display
|
// Erase from cursor to end of display
|
||||||
|
@ -492,8 +488,8 @@ U0 Telnet(U8 *host, U16 port=TELNET_PORT) {
|
||||||
ptr++;
|
ptr++;
|
||||||
break;
|
break;
|
||||||
case 'K':
|
case 'K':
|
||||||
SysLog("K code\n");
|
|
||||||
// TODO: I have no idea if this actually works
|
// TODO: I have no idea if this actually works
|
||||||
|
SysLog("K code\n");
|
||||||
// Erase in Line
|
// Erase in Line
|
||||||
CDocEntry *cur_entry = Fs->display_doc->cur_entry;
|
CDocEntry *cur_entry = Fs->display_doc->cur_entry;
|
||||||
CDocEntry *next_entry = cur_entry->next;
|
CDocEntry *next_entry = cur_entry->next;
|
||||||
|
|
Loading…
Reference in a new issue