diff options
| author | nic-gaffney <gaffney_nic@protonmail.com> | 2023-06-27 03:19:39 -0500 |
|---|---|---|
| committer | nic-gaffney <gaffney_nic@protonmail.com> | 2023-06-27 03:19:39 -0500 |
| commit | 5d958f8af1646f9cb4763bb2f020bb2e6de8a3c0 (patch) | |
| tree | 32321069ed7dd49c567b53a13dfbb07e1e95f88b /std/stdlib.sloth | |
| parent | 9f7f0f925f9304ac46499caf0fef245083a78828 (diff) | |
| download | sloth-5d958f8af1646f9cb4763bb2f020bb2e6de8a3c0.tar.gz | |
help
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"); |
