tvdos installer wip

This commit is contained in:
minjaesong
2022-12-23 02:25:53 +09:00
parent 204571b792
commit 1ecb85354b
7 changed files with 49 additions and 11 deletions

View File

@@ -84,13 +84,17 @@ function printmotd() {
con.mvaddch(cy, 4, 16);con.curs_right();print(' ')
const PCX_INIT = margin - 2
let tcnt = 0
let pcx = margin - 1
let pcx = PCX_INIT
while (tcnt <= motd.length) {
let char = motd.charAt(tcnt)
if (char != '\n') {
print(motd.charAt(tcnt))
// prevent the line starting from ' '
if (pcx != PCX_INIT || char != ' ') {
print(motd.charAt(tcnt))
}
pcx += 1
}
@@ -105,7 +109,7 @@ function printmotd() {
// next line header
let [ncy, __] = con.getyx()
con.mvaddch(ncy, 4, 16);con.curs_right();print(' ')
pcx = margin - 1
pcx = PCX_INIT
}
tcnt += 1