edit.js to shitty newline

This commit is contained in:
minjaesong
2021-04-10 17:24:43 +09:00
parent 64376f09b2
commit 552f620c2c

View File

@@ -217,6 +217,16 @@ function appendText(code) {
gotoText();
}
function appendLine() {
textbuffer.push("");
cursorRow += 1;
cursorCol = 0;
drawLnCol();
gotoText();
// TODO touch screen scroll vars
}
reset_status();
drawMain();
drawTextbuffer();
@@ -238,6 +248,11 @@ while (!exit) {
writeout();
displayBulletin(`Wrote ${textbuffer.length} lines`);
}
else if (key == 8) { // Bksp
}
else if (key == 13) { // Return / ^M
appendLine();
}
else if (key >= 32) { // printables (excludes \n)
if (bulletinShown) {
dismissBulletin();