add native terminal_size

This commit is contained in:
ValKmjolnir
2024-08-02 22:34:10 +08:00
parent 6943f018d4
commit ed40aa83b1
4 changed files with 29 additions and 1 deletions
+4
View File
@@ -5,4 +5,8 @@ use std.math;
# when count can be divided exactly by times, return true
var times_trigger = func(times, count) {
return math.mod(times, count)==0;
}
var terminal_size = func {
return __terminal_size;
}