mirror of
https://github.com/neovim/neovim.git
synced 2025-10-09 19:36:40 +00:00
vim-patch:8.0.0096: has('ttyin'), has('ttyout')
Nvim note: intentionally did not include `--ttyfail` since its purpose
is not clear. (And it isn't used in any Vim test files/scripts).
---
Problem: When the input or output is not a tty Vim appears to hang.
Solution: Add the --ttyfail argument. Also add the "ttyin" and "ttyout"
features to be able to check in Vim script.
2cab0e1910
This commit is contained in:
@@ -10672,6 +10672,10 @@ static void f_has(typval_T *argvars, typval_T *rettv, FunPtr fptr)
|
||||
n = has_nvim_version(name + 5);
|
||||
} else if (STRICMP(name, "vim_starting") == 0) {
|
||||
n = (starting != 0);
|
||||
} else if (STRICMP(name, "ttyin") == 0) {
|
||||
n = stdin_isatty;
|
||||
} else if (STRICMP(name, "ttyout") == 0) {
|
||||
n = stdout_isatty;
|
||||
} else if (STRICMP(name, "multi_byte_encoding") == 0) {
|
||||
n = has_mbyte != 0;
|
||||
#if defined(USE_ICONV) && defined(DYNAMIC_ICONV)
|
||||
|
Reference in New Issue
Block a user