diff options
Diffstat (limited to 'std/stdlib.sloth')
| -rw-r--r-- | std/stdlib.sloth | 11 |
1 files changed, 3 insertions, 8 deletions
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"); |
