zfm: working visually

This commit is contained in:
minjaesong
2023-01-10 04:43:31 +09:00
parent edea9648d9
commit cad00cfee6
2 changed files with 200 additions and 67 deletions

View File

@@ -452,7 +452,10 @@ con.addch = function(c) {
graphics.putSymbol(c|0);
};
con.prnch = function(c) {
print("\x84"+c+"u");
if (Array.isArray(c))
print(c.reduce((acc,char)=>acc+`\x84${char}u`, ''));
else
print("\x84"+c+"u");
};
con.mvaddch = function(y, x, c) {
con.move(y, x); con.addch(c);