Restructure core:terminal for better Windows support

This commit is contained in:
Feoramund
2025-05-21 07:49:08 -04:00
parent b6f1821bba
commit e659df1a3f
6 changed files with 150 additions and 117 deletions
+7
View File
@@ -1,3 +1,4 @@
#+private
#+build linux, darwin, netbsd, openbsd, freebsd, haiku
package terminal
@@ -7,3 +8,9 @@ import "core:sys/posix"
_is_terminal :: proc(handle: os.Handle) -> bool {
return bool(posix.isatty(posix.FD(handle)))
}
_init_terminal :: proc() {
color_depth = get_environment_color()
}
_fini_terminal :: proc() { }