blob: 83e64c6d8ab6f8a9483a9aacad66c78a5376a0a0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
#+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" () { }
|