From 4aeb44362b5c0a269f5319002e796b97ad4e5e9e Mon Sep 17 00:00:00 2001 From: y4my4my4m <8145020+y4my4my4m@users.noreply.github.com> Date: Mon, 15 May 2023 01:04:55 +0900 Subject: [PATCH] hold the connection and cursor less buggy --- src/Home/Telnet/Telnet.ZC | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/Home/Telnet/Telnet.ZC b/src/Home/Telnet/Telnet.ZC index 9a5a55a2..65995528 100644 --- a/src/Home/Telnet/Telnet.ZC +++ b/src/Home/Telnet/Telnet.ZC @@ -438,7 +438,12 @@ U0 ANSIParse() case 'C': // Cursor Right // SysLog("Cursor Right %d %d\n", ansi_param_count, ansi_code[0]); - DocPrint(term.doc, "$$CM,%d,0$$", ansi_code[0]); + // DocPrint(term.doc, "$$CM,%d,0$$", ansi_code[0]); + // seems to be less prone to bugs? + I64 cr; + for (cr=0; cr 0) { term.buffer[term.buffer_len] = '\0'; @@ -684,6 +690,8 @@ U0 TerminalTask() { ANSIParse; } else { + // SysLog("BUF_SIZE: %d\n", BUF_SIZE); + goto receive_data; // Buffer full or connection closed DocPrint(term.doc, "Error: Connection closed by the remote host.\n"); break;