Skip to content

Commit 5c776ae

Browse files
save file
1 parent 2535454 commit 5c776ae

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

utils/misc/nodejs-terminal/v2.0/nodejs-terminal-v2.0.html

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -771,6 +771,16 @@
771771
};
772772

773773

774+
var cursor = {
775+
776+
to : (row,col)=>`\x1b[${row};${col}H`,
777+
up : (n=1)=>`\x1b[${n}A`,
778+
down : (n=1)=>`\x1b[${n}B`,
779+
home : '\x1b[H',
780+
save : '\x1b[s',
781+
restore : '\x1b[u'
782+
783+
};
774784

775785

776786
var files = {};

0 commit comments

Comments
 (0)