From 4249e990a110d7429093d4d3abf1ceaef913ff64 Mon Sep 17 00:00:00 2001 From: Isysxp Date: Sun, 1 Dec 2024 17:20:34 +0000 Subject: [PATCH] Correct line wrap --- ESP_Terminal.ino | 19 ++++++++----------- __vm/Compile.vmps.xml | 2 +- __vm/Upload.vmps.xml | 2 +- 3 files changed, 10 insertions(+), 13 deletions(-) diff --git a/ESP_Terminal.ino b/ESP_Terminal.ino index 1f28985..de72691 100644 --- a/ESP_Terminal.ino +++ b/ESP_Terminal.ino @@ -6,8 +6,8 @@ void ParseTelnet(WiFiClient TCPclient); #define GFX_DEV_DEVICE WAVESHARE_ESP32_S3_TFT_4_3 #define GFX_BL 2 -const char* ssid = "MySSID"; // CHANGE TO YOUR WIFI SSID -const char* password = "MyPassword"; // CHANGE TO YOUR WIFI PASSWORD +const char* ssid = "BT-Q6CTR8"; // CHANGE TO YOUR WIFI SSID +const char* password = "c531a3d358"; // CHANGE TO YOUR WIFI PASSWORD const int serverPort = 23; IPAddress raspberryIp (192, 168, 1, 110); // Change to the address of a Raspberry Pi @@ -113,10 +113,6 @@ void Display_Char(char ch) { case ('\r'): gfx->setCursor(0, (lnum)*20); break; - case (' '): - cx = gfx->getCursorX(); - gfx->setCursor(cx + 10, (lnum)*20); - break; case (7): // ^g (BEL) break; case ('\b'): @@ -132,12 +128,13 @@ void Display_Char(char ch) { break; default: cx = gfx->getCursorX(); - gfx->print(ch); - gfx->setCursor(cx + 10, (lnum)*20); - if (cx >= 790) { - gfx->setCursor(cx=0, (lnum)*20); - Display_Char('\n'); + if (cx >= 800) { + gfx->setCursor(cx=0, (lnum) * 20); + Display_Char('\n'); } + if (ch != ' ') + gfx->print(ch); + gfx->setCursor(cx + 10, (lnum)*20); break; } } diff --git a/__vm/Compile.vmps.xml b/__vm/Compile.vmps.xml index 302faca..69b914b 100644 --- a/__vm/Compile.vmps.xml +++ b/__vm/Compile.vmps.xml @@ -2,7 +2,7 @@ - + diff --git a/__vm/Upload.vmps.xml b/__vm/Upload.vmps.xml index 93f7d12..69b914b 100644 --- a/__vm/Upload.vmps.xml +++ b/__vm/Upload.vmps.xml @@ -2,7 +2,7 @@ - +