From 5d958f8af1646f9cb4763bb2f020bb2e6de8a3c0 Mon Sep 17 00:00:00 2001 From: nic-gaffney Date: Tue, 27 Jun 2023 03:19:39 -0500 Subject: help --- std/stdlib.sloth | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) (limited to 'std/stdlib.sloth') diff --git a/std/stdlib.sloth b/std/stdlib.sloth index e15d4dc..913fd0b 100644 --- a/std/stdlib.sloth +++ b/std/stdlib.sloth @@ -3,14 +3,9 @@ foreign fn print(str: String) Void; foreign fn slen(str: String) Int; # foreign fn charAt(str: String) Char; foreign fn parse_int(str: String) Int; - -fn termpos(x: Int, y: Int) Void { - print("\x1b["); - print(x); - print(";"); - print(y); - print("H"); -} +foreign fn termpos(x: Int, y: Int); +foreign fn as_int(x: Float) Int; +foreign fn istr(x: Int) Int; fn termclear() Void { print("\x1b[2J\x1b[H"); -- cgit v1.2.3