mirror of
https://github.com/Zeal-Operating-System/ZealOS.git
synced 2024-12-25 15:10:28 +00:00
Fix
This commit is contained in:
parent
84b0296754
commit
1e68c497f2
2 changed files with 32 additions and 27 deletions
|
@ -1,6 +1,4 @@
|
|||
[0m
|
||||
|
||||
|
||||
[1;34m..... .. s[0m
|
||||
[1;34m .H8888888h. ~-. x .d88" :8[0m
|
||||
[1;34m 888888888888x `> 5888R u. u. .88[0m
|
||||
|
@ -22,3 +20,4 @@
|
|||
| `-' | \ ' [1;33m\ ' '--| || | | | \ ' '--| || | | |[0m
|
||||
`---'.-' / [1;33m.-' / `--'`--`--`--'.-' / `--'`--`--`--'[0m
|
||||
`---' [1;33m`---' `---'[0m
|
||||
|
||||
|
|
|
@ -712,12 +712,19 @@ U0 Telnet(U8 *host=NULL, U16 port=TELNET_PORT) {
|
|||
Fs);
|
||||
DocClear;
|
||||
|
||||
if (host == NULL) {
|
||||
// SplashScreen
|
||||
term.buffer_len = LoadSplashScreen("Art/TelnetSplash.ans");
|
||||
if (term.buffer_len > 0) {
|
||||
term.buffer[term.buffer_len] = '\0';
|
||||
// parse the buffer
|
||||
ANSIParse;
|
||||
}
|
||||
else {
|
||||
"Error: Could not load splash screen.\n";
|
||||
}
|
||||
|
||||
// PopUp if no host is specified
|
||||
if (host == NULL) {
|
||||
try
|
||||
{
|
||||
while (host == NULL) {
|
||||
|
@ -732,10 +739,7 @@ U0 Telnet(U8 *host=NULL, U16 port=TELNET_PORT) {
|
|||
catch
|
||||
PutExcept;
|
||||
}
|
||||
else {
|
||||
"Error: Could not load splash screen.\n";
|
||||
}
|
||||
}
|
||||
|
||||
// Spawn a task to receive data from the socket
|
||||
term.task = Spawn(&TerminalTask, NULL, "Telnet");
|
||||
|
||||
|
@ -751,6 +755,8 @@ U0 Telnet(U8 *host=NULL, U16 port=TELNET_PORT) {
|
|||
term.sock_ready = 1; // Signal that the socket is ready
|
||||
|
||||
"$$BG,GREEN$$$$WHITE$$Connected$$FG$$$$BG$$\n";
|
||||
Sleep(1000);
|
||||
DocClear;
|
||||
|
||||
try
|
||||
{
|
||||
|
@ -824,5 +830,5 @@ U0 Telnet(U8 *host=NULL, U16 port=TELNET_PORT) {
|
|||
|
||||
|
||||
// dev server
|
||||
// Telnet("localhost", 8888);
|
||||
Telnet;
|
||||
Telnet("localhost", 8888);
|
||||
// Telnet;
|
Loading…
Reference in a new issue