First stable version #58
20
src/tui.cpp
20
src/tui.cpp
@ -373,13 +373,13 @@ WINDOW* TUI::createEntryWindow(int iXSize, int iYSize, int iXStart, int iYStart,
|
|||||||
|
|
||||||
line:02
|
line:02
|
||||||
0-2: space
|
0-2: space
|
||||||
3-19: Serial
|
3-31: Serial
|
||||||
20: space
|
32: space
|
||||||
21-30: Speed
|
33-42: Speed
|
||||||
33: space
|
43: space
|
||||||
34-45: Time
|
44-55: Time
|
||||||
46: space
|
55: space
|
||||||
47-70: State (but right side aligned)
|
56-70: State (but right side aligned)
|
||||||
*/
|
*/
|
||||||
|
|
||||||
vTruncateText(&sModelFamily, 32);
|
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, 37, sCapacity.c_str());
|
||||||
mvwaddstr(newWindow, 1, 45, sTemp.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, 3, sSerial.c_str());
|
||||||
mvwaddstr(newWindow, 2, 21, sSpeed.c_str());
|
mvwaddstr(newWindow, 2, 33, sSpeed.c_str());
|
||||||
mvwaddstr(newWindow, 2, 34, sTime.c_str());
|
mvwaddstr(newWindow, 2, 44, sTime.c_str());
|
||||||
mvwaddstr(newWindow,2, iXSize - sState.length() - 2, sState.c_str());
|
mvwaddstr(newWindow,2, iXSize - sState.length() - 2, sState.c_str());
|
||||||
|
|
||||||
return newWindow;
|
return newWindow;
|
||||||
|
Loading…
Reference in New Issue
Block a user