shell for the portable wip

This commit is contained in:
minjaesong
2021-04-05 20:49:32 +09:00
parent 38b4566489
commit c020b60fc2
3 changed files with 24 additions and 2 deletions

View File

@@ -12,7 +12,8 @@ let errorlevel = 0;
const termWidth = con.getmaxyx()[1];
const termHeight = con.getmaxyx()[0];
const welcome_text = "TSVM Disk Operating System, version " + _TVDOS.VERSION;
const welcome_text = (termWidth > 40) ? "TSVM Disk Operating System, version " + _TVDOS.VERSION
: "TSVM Disk Operating System " + _TVDOS.VERSION;
const greetLeftPad = (termWidth - welcome_text.length - 6) >> 1;
const greetRightPad = termWidth - greetLeftPad - welcome_text.length - 6;