summaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c7
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"));