Skip to content

Commit 2d0eb3c

Browse files
committed
Add io.moveOffset()
1 parent 6fb71ba commit 2d0eb3c

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

js/core/stdio/default.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ defaultStdio.onsetbackgroundcolor = (bg) => {
4949
};
5050

5151
defaultStdio.onmoveto = (x, y) => tty.moveTo(x, y);
52+
defaultStdio.onmoveoffset = (offset) => tty.moveOffset(offset);
5253

5354
defaultStdio.onread = (cb) => tty.read(cb);
5455

js/core/stdio/interface.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ class StdioInterface {
2323
this.onsetcolor = () => {};
2424
this.onsetbackgroundcolor = () => {};
2525
this.onmoveto = () => {};
26+
this.onmoveoffset = () => {};
2627

2728
this.write = this.write.bind(this);
2829
this.writeError = this.writeError.bind(this);
@@ -62,6 +63,9 @@ class StdioInterface {
6263
moveTo (x, y) {
6364
this.onmoveto(x, y);
6465
}
66+
moveOffset (offset) {
67+
this.onmoveoffset(offset);
68+
}
6569

6670
clear () {
6771
this.onclear();

0 commit comments

Comments
 (0)