diff --git a/assets/disk0/tvdos/bin/edit.js b/assets/disk0/tvdos/bin/edit.js index a7c1bb9..b94b312 100644 --- a/assets/disk0/tvdos/bin/edit.js +++ b/assets/disk0/tvdos/bin/edit.js @@ -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();