mirror of
https://github.com/odin-lang/Odin.git
synced 2026-06-15 06:43:42 +00:00
18 lines
371 B
Odin
18 lines
371 B
Odin
#+private
|
|
#+build linux, darwin, netbsd, openbsd, freebsd, haiku
|
|
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" () { }
|