mirror of
https://github.com/curioustorvald/tsvm.git
synced 2026-06-12 23:54:04 +09:00
command.js will use OS_NAME variable of the DOS
This commit is contained in:
@@ -82,7 +82,7 @@ _TVDOS.variables = {
|
|||||||
PATH: "\\tvdos\\bin;\\tbas;\\home",
|
PATH: "\\tvdos\\bin;\\tbas;\\home",
|
||||||
PATHEXT: ".com;.bat;.js",
|
PATHEXT: ".com;.bat;.js",
|
||||||
HELPPATH: "\\tvdos\\help",
|
HELPPATH: "\\tvdos\\help",
|
||||||
OS_NAME: "Terrarum Virtual DOS",
|
OS_NAME: "TSVM Disk Operating System",
|
||||||
OS_VERSION: _TVDOS.VERSION
|
OS_VERSION: _TVDOS.VERSION
|
||||||
};
|
};
|
||||||
Object.freeze(_TVDOS);
|
Object.freeze(_TVDOS);
|
||||||
|
|||||||
@@ -11,8 +11,9 @@ let errorlevel = 0
|
|||||||
|
|
||||||
const termWidth = con.getmaxyx()[1]
|
const termWidth = con.getmaxyx()[1]
|
||||||
const termHeight = con.getmaxyx()[0]
|
const termHeight = con.getmaxyx()[0]
|
||||||
const welcome_text = (termWidth > 40) ? "TSVM Disk Operating System, version " + _TVDOS.VERSION
|
const osName = _TVDOS.variables.OS_NAME || "TVDOS"
|
||||||
: "TSVM Disk Operating System " + _TVDOS.VERSION
|
const welcome_text = (termWidth > 40) ? `${osName}, version ${_TVDOS.VERSION}`
|
||||||
|
: `${osName} ${_TVDOS.VERSION}`
|
||||||
const greetLeftPad = (termWidth - welcome_text.length - 6) >> 1
|
const greetLeftPad = (termWidth - welcome_text.length - 6) >> 1
|
||||||
const greetRightPad = termWidth - greetLeftPad - welcome_text.length - 6
|
const greetRightPad = termWidth - greetLeftPad - welcome_text.length - 6
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user