Skip to content

Commit

Permalink
begin save as work
Browse files Browse the repository at this point in the history
  • Loading branch information
kjloveless committed Nov 20, 2024
1 parent e4cd884 commit 3becfda
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -443,6 +443,21 @@ function editorSetStatusMessage(msg: string) {
e.statusMsgTime = new Date();
}

// TODO: finish this
function editorPrompt(prompt: string) {
let buffer = "";

while (true) {
const msg = sprintf(prompt, buffer);
editorSetStatusMessage(msg);
editorRefreshScreen();

const char = editorReadKey();


}
}

function editorMoveCursor(key: string | number) {
let row = (e.cursorY >= e.numRows) ? undefined : e.row[e.cursorY];
switch (key) {
Expand Down

0 comments on commit 3becfda

Please sign in to comment.