Skip to content

Commit 7a470a5

Browse files
committed
added 'moveCursor' and 'rows' functions;
1 parent b81ea28 commit 7a470a5

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/Tty.re

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,11 @@ module WriteStream = {
7676
[@bs.send]
7777
external hasColorsFromEnv: (t, int, Js.Dict.t('ty)) => bool = "hasColors";
7878
[@bs.send] external hasAtLeast16Colors: t => bool = "hasColors";
79+
[@bs.send]
80+
external moveCursor:
81+
(t, int, int, [@bs.uncurry] (unit => unit)) => bool =
82+
"moveCursor";
83+
[@bs.get] external rows: t => int = "rows";
7984
[@bs.get] external isTTY: t => bool = "isTTY";
8085
external unsafeCoerceToSocket: t => Net.Socket.t = "%identity";
8186
external unsafeCoerceFromSocket: Net.Socket.t => t = "%identity";

0 commit comments

Comments
 (0)