Files
Odin/core/terminal/terminal_posix.odin
2026-07-30 11:46:06 +02:00

19 lines
393 B
Odin

#+private
#+build linux, darwin, netbsd, openbsd, freebsd
package terminal
import "base:runtime"
import "core:os"
_is_terminal :: proc "contextless" (f: ^os.File) -> bool {
return os.is_tty(f)
}
_init_terminal :: proc "contextless" () {
context = runtime.default_context()
color_depth = get_environment_color()
is_dumb = get_is_dumb()
}
_fini_terminal :: proc "contextless" () { }