mirror of
https://github.com/Ed94/Odin.git
synced 2026-06-26 23:44:58 -07:00
17 lines
321 B
Odin
17 lines
321 B
Odin
#+private
|
|
#+build linux, darwin, netbsd, openbsd, freebsd, haiku
|
|
package terminal
|
|
|
|
import "core:os"
|
|
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() { }
|