diff options
Diffstat (limited to 'core/terminal/terminal.odin')
| -rw-r--r-- | core/terminal/terminal.odin | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/core/terminal/terminal.odin b/core/terminal/terminal.odin index 37fdaff36..d24b963d3 100644 --- a/core/terminal/terminal.odin +++ b/core/terminal/terminal.odin @@ -1,7 +1,7 @@ // Interaction with the command line interface (`CLI`) of the system. package terminal -import "core:os" +import os "core:os/os2" /* This describes the range of colors that a terminal is capable of supporting. @@ -15,14 +15,14 @@ Color_Depth :: enum { } /* -Returns true if the file `handle` is attached to a terminal. +Returns true if the `File` is attached to a terminal. This is normally true for `os.stdout` and `os.stderr` unless they are redirected to a file. */ @(require_results) -is_terminal :: proc(handle: os.Handle) -> bool { - return _is_terminal(handle) +is_terminal :: proc(f: ^os.File) -> bool { + return _is_terminal(f) } /* |