mirror of
https://github.com/curioustorvald/tsvm.git
synced 2026-06-11 15:24:05 +09:00
thats not how you advance a line; this is
This commit is contained in:
@@ -64,7 +64,7 @@ print = function(str) {
|
|||||||
let c = cp[i]
|
let c = cp[i]
|
||||||
|
|
||||||
if (10 == c || 13 == c) {
|
if (10 == c || 13 == c) {
|
||||||
curs = (Math.ceil(curs / COLS)|0) * COLS
|
curs = ((curs / COLS)|0) * COLS + COLS
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
paintGlyph(c, 1+(curs % COLS), 1+(curs / COLS), ttyBack, ttyFore, scrollY)
|
paintGlyph(c, 1+(curs % COLS), 1+(curs / COLS), ttyBack, ttyFore, scrollY)
|
||||||
|
|||||||
Reference in New Issue
Block a user