1
0
Fork 0

[config] Config option "ui.tostop" . Refs #45

ui.tostop decides whether to stop background processes trying to write
to the terminal. Default enabled.
This commit is contained in:
Witold Filipczyk 2020-05-13 20:51:37 +02:00
parent df3a79bed5
commit 60f6c35a2c
2 changed files with 4 additions and 2 deletions

View File

@ -1383,7 +1383,9 @@ static union option_info config_options_info[] = {
"confirm_close", 0, 0,
N_("When closing a tab show confirmation dialog.")),
INIT_OPT_BOOL("ui", N_("Whether to disallow writing to terminal"),
"tostop", 0, 1,
N_("Whether to disallow writing to terminal by background processes.")),
INIT_OPT_LANGUAGE("ui", N_("Language"),
"language", 0,

View File

@ -261,7 +261,7 @@ setraw(struct itrm *itrm, int save_orig)
elinks_cfmakeraw(&t);
t.c_lflag |= ISIG;
#ifdef TOSTOP
t.c_lflag |= TOSTOP;
t.c_lflag |= get_opt_bool("ui.tostop", NULL) ? TOSTOP : 0;
#endif
t.c_oflag |= OPOST;
if (tcsetattr(itrm->in.ctl, TCSANOW, &t)) return -1;