mirror of
https://github.com/curioustorvald/tsvm.git
synced 2026-06-11 15:24:05 +09:00
edit.js to shitty newline
This commit is contained in:
@@ -217,6 +217,16 @@ function appendText(code) {
|
|||||||
gotoText();
|
gotoText();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function appendLine() {
|
||||||
|
textbuffer.push("");
|
||||||
|
cursorRow += 1;
|
||||||
|
cursorCol = 0;
|
||||||
|
drawLnCol();
|
||||||
|
gotoText();
|
||||||
|
|
||||||
|
// TODO touch screen scroll vars
|
||||||
|
}
|
||||||
|
|
||||||
reset_status();
|
reset_status();
|
||||||
drawMain();
|
drawMain();
|
||||||
drawTextbuffer();
|
drawTextbuffer();
|
||||||
@@ -238,6 +248,11 @@ while (!exit) {
|
|||||||
writeout();
|
writeout();
|
||||||
displayBulletin(`Wrote ${textbuffer.length} lines`);
|
displayBulletin(`Wrote ${textbuffer.length} lines`);
|
||||||
}
|
}
|
||||||
|
else if (key == 8) { // Bksp
|
||||||
|
}
|
||||||
|
else if (key == 13) { // Return / ^M
|
||||||
|
appendLine();
|
||||||
|
}
|
||||||
else if (key >= 32) { // printables (excludes \n)
|
else if (key >= 32) { // printables (excludes \n)
|
||||||
if (bulletinShown) {
|
if (bulletinShown) {
|
||||||
dismissBulletin();
|
dismissBulletin();
|
||||||
|
|||||||
Reference in New Issue
Block a user