From 18ea170881cd6d59a8355401bb613f29a0802d62 Mon Sep 17 00:00:00 2001 From: localhorst Date: Sat, 1 Oct 2022 13:26:13 +0200 Subject: [PATCH] TUI: support longer SN --- src/tui.cpp | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/src/tui.cpp b/src/tui.cpp index e85b30b..f1658fb 100644 --- a/src/tui.cpp +++ b/src/tui.cpp @@ -373,13 +373,13 @@ WINDOW* TUI::createEntryWindow(int iXSize, int iYSize, int iXStart, int iYStart, line:02 0-2: space - 3-19: Serial - 20: space - 21-30: Speed - 33: space - 34-45: Time - 46: space - 47-70: State (but right side aligned) + 3-31: Serial + 32: space + 33-42: Speed + 43: space + 44-55: Time + 55: space + 56-70: State (but right side aligned) */ vTruncateText(&sModelFamily, 32); @@ -387,10 +387,10 @@ WINDOW* TUI::createEntryWindow(int iXSize, int iYSize, int iXStart, int iYStart, mvwaddstr(newWindow, 1, 37, sCapacity.c_str()); mvwaddstr(newWindow, 1, 45, sTemp.c_str()); - vTruncateText(&sSerial, 16); + vTruncateText(&sSerial, 28); mvwaddstr(newWindow, 2, 3, sSerial.c_str()); - mvwaddstr(newWindow, 2, 21, sSpeed.c_str()); - mvwaddstr(newWindow, 2, 34, sTime.c_str()); + mvwaddstr(newWindow, 2, 33, sSpeed.c_str()); + mvwaddstr(newWindow, 2, 44, sTime.c_str()); mvwaddstr(newWindow,2, iXSize - sState.length() - 2, sState.c_str()); return newWindow;