mirror of
https://github.com/Zeal-Operating-System/ZealOS.git
synced 2024-12-25 15:10:28 +00:00
cleanup and disable K
This commit is contained in:
parent
35c6354316
commit
39cff33dd3
1 changed files with 12 additions and 19 deletions
|
@ -5,7 +5,7 @@ Cd(__DIR__);;
|
||||||
#define TELNET_PORT 23
|
#define TELNET_PORT 23
|
||||||
#define BUF_SIZE 8192 // way too big?
|
#define BUF_SIZE 8192 // way too big?
|
||||||
#define INPUT_BUF_SIZE 32
|
#define INPUT_BUF_SIZE 32
|
||||||
#define TIMEOUT_DURATION 5000
|
#define TIMEOUT_DURATION 500000
|
||||||
|
|
||||||
#define NEGOTIATE 0xFF
|
#define NEGOTIATE 0xFF
|
||||||
|
|
||||||
|
@ -463,19 +463,19 @@ U0 Telnet(U8 *host, U16 port=TELNET_PORT) {
|
||||||
// TODO: I have no idea if this actually works
|
// TODO: I have no idea if this actually works
|
||||||
SysLog("K code\n");
|
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;
|
||||||
|
|
||||||
// Delete the current entry
|
// // Delete the current entry
|
||||||
if (!(cur_entry->de_flags & (DOCEF_HOLD | DOCEF_FILTER_SKIP))) {
|
// if (!(cur_entry->de_flags & (DOCEF_HOLD | DOCEF_FILTER_SKIP))) {
|
||||||
Fs->display_doc->cur_entry = next_entry;
|
// Fs->display_doc->cur_entry = next_entry;
|
||||||
Fs->display_doc->cur_col = next_entry->min_col;
|
// Fs->display_doc->cur_col = next_entry->min_col;
|
||||||
DocEntryDel(Fs->display_doc, cur_entry);
|
// DocEntryDel(Fs->display_doc, cur_entry);
|
||||||
}
|
// }
|
||||||
|
|
||||||
// Create a new entry (line) in its place
|
// // Create a new entry (line) in its place
|
||||||
CDocEntry *new_entry = DocEntryNewTag(Fs->display_doc, cur_entry, "");
|
// CDocEntry *new_entry = DocEntryNewTag(Fs->display_doc, cur_entry, "");
|
||||||
DocInsEntry(Fs->display_doc, new_entry);
|
// DocInsEntry(Fs->display_doc, new_entry);
|
||||||
|
|
||||||
ptr++;
|
ptr++;
|
||||||
break;
|
break;
|
||||||
|
@ -573,14 +573,7 @@ U0 Telnet(U8 *host, U16 port=TELNET_PORT) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// sock(CTCPSocket *)->timeout = 0;
|
|
||||||
// while (TaskValidate(input_task) && !force_disconnect)
|
|
||||||
// {
|
|
||||||
// Refresh;
|
|
||||||
// }
|
|
||||||
|
|
||||||
Kill(input_task);
|
Kill(input_task);
|
||||||
// sock(CTCPSocket *)->timeout = TCP_TIMEOUT;
|
|
||||||
TCPSocketClose(sock);
|
TCPSocketClose(sock);
|
||||||
"Telnet connection closed.\n";
|
"Telnet connection closed.\n";
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue