aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/globals.h
diff options
context:
space:
mode:
authorbfredl <bjorn.linse@gmail.com>2023-01-10 14:03:15 +0100
committerbfredl <bjorn.linse@gmail.com>2023-01-16 11:26:49 +0100
commit160c69b655ce2e47fbedcc87fcb4949c2bc04dce (patch)
treecdbce0fdd0318b8103d1d0278d517072f5bd4d4b /src/nvim/globals.h
parent43feb973e30ed40b8eb7bc97b0f41eef0b51194b (diff)
downloadrneovim-160c69b655ce2e47fbedcc87fcb4949c2bc04dce.tar.gz
rneovim-160c69b655ce2e47fbedcc87fcb4949c2bc04dce.tar.bz2
rneovim-160c69b655ce2e47fbedcc87fcb4949c2bc04dce.zip
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.
Diffstat (limited to 'src/nvim/globals.h')
-rw-r--r--src/nvim/globals.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/nvim/globals.h b/src/nvim/globals.h
index aa8dbf6331..0d3862a1ec 100644
--- a/src/nvim/globals.h
+++ b/src/nvim/globals.h
@@ -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);