Files
Odin/core/terminal/terminal_posix.odin
Ignacy Koper c01e85ca67 removed core:sys/haiku package
also removes Haiku from core:sys/info, core:os/old, core:path/filepath, core:dynlib, core:time, core:testing, and core:terminal (minor changes)

Signed-off-by: Ignacy Koper <ignacy423@gmail.com>
2026-04-28 19:27:24 +02:00

18 lines
364 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()
}
_fini_terminal :: proc "contextless" () { }