1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-11-03 08:07:17 -05:00

[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, "confirm_close", 0, 0,
N_("When closing a tab show confirmation dialog.")), 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"), INIT_OPT_LANGUAGE("ui", N_("Language"),
"language", 0, "language", 0,

View File

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