TUI: support longer SN

This commit is contained in:
Hendrik Schutter 2022-10-01 13:26:13 +02:00
parent 85fa895734
commit 18ea170881
1 changed files with 10 additions and 10 deletions

View File

@ -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;