mirror of
https://github.com/neovim/neovim.git
synced 2025-10-06 01:46:29 +00:00
fix(ui): re-organize tty fd handling and fix issues
- Use the correct fd to replace stdin on windows (CONIN) - Don't start the TUI if there are no tty fd (not a regression, but makes sense regardless) - De-mythologize "global input fd". it is just STDIN.
This commit is contained in:
@@ -494,6 +494,9 @@ EXTERN int v_dying INIT(= 0);
|
||||
EXTERN bool stdin_isatty INIT(= true);
|
||||
// is stdout a terminal?
|
||||
EXTERN bool stdout_isatty INIT(= true);
|
||||
// is stderr a terminal?
|
||||
EXTERN bool stderr_isatty INIT(= true);
|
||||
|
||||
/// filedesc set by embedder for reading first buffer like `cmd | nvim -`
|
||||
EXTERN int stdin_fd INIT(= -1);
|
||||
|
||||
|
Reference in New Issue
Block a user