diff options
author | Bram Moolenaar <Bram@vim.org> | 2016-02-25 21:21:52 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2016-02-25 21:21:52 +0100 |
commit | 49c39ff678e2ba9f7dc280b25368e12084a610cf (patch) | |
tree | 77c3d7db0cfdb0c23fac78b8fcd168eff947b94a /src/main.c | |
parent | 923d926d57d985ec8965da9d0cd3634e6b24bfe1 (diff) | |
download | vim-49c39ff678e2ba9f7dc280b25368e12084a610cf.zip |
patch 7.4.1419
Problem: Tests slowed down because of the "not a terminal" warning.
Solution: Add the --not-a-term command line argument.
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c index ac4c7a6d2..4005f10ec 100644 --- a/src/main.c +++ b/src/main.c @@ -50,6 +50,7 @@ typedef struct int want_full_screen; int stdout_isatty; /* is stdout a terminal? */ + int not_a_term; /* no warning for missing term? */ char_u *term; /* specified terminal name */ #ifdef FEAT_CRYPT int ask_for_key; /* -x argument */ @@ -1856,6 +1857,7 @@ command_line_scan(mparm_T *parmp) /* "--version" give version message */ /* "--literal" take files literally */ /* "--nofork" don't fork */ + /* "--not-a-term" don't warn for not a term */ /* "--noplugin[s]" skip plugins */ /* "--cmd <cmd>" execute cmd before vimrc */ if (STRICMP(argv[0] + argv_idx, "help") == 0) @@ -1883,6 +1885,8 @@ command_line_scan(mparm_T *parmp) } else if (STRNICMP(argv[0] + argv_idx, "noplugin", 8) == 0) p_lpl = FALSE; + else if (STRNICMP(argv[0] + argv_idx, "not-a-term", 10) == 0) + parmp->not_a_term = TRUE; else if (STRNICMP(argv[0] + argv_idx, "cmd", 3) == 0) { want_argument = TRUE; @@ -2519,7 +2523,7 @@ check_tty(mparm_T *parmp) /* don't want the delay when started from the desktop */ && !gui.starting #endif - ) + && !parmp->not_a_term) { #ifdef NBDEBUG /* @@ -3303,6 +3307,7 @@ usage(void) main_msg(_("-F\t\t\tStart in Farsi mode")); #endif main_msg(_("-T <terminal>\tSet terminal type to <terminal>")); + main_msg(_("--not-a-term\t\tSkip warning for input/output not being a terminal")); main_msg(_("-u <vimrc>\t\tUse <vimrc> instead of any .vimrc")); #ifdef FEAT_GUI main_msg(_("-U <gvimrc>\t\tUse <gvimrc> instead of any .gvimrc")); |