degesch: safer defaults for backlog helper
This commit is contained in:
parent
e188de5501
commit
7225b68f74
10
degesch.c
10
degesch.c
|
@ -1654,17 +1654,19 @@ static struct config_schema g_config_behaviour[] =
|
||||||
.default_ = "off",
|
.default_ = "off",
|
||||||
.on_change = on_config_debug_mode_change },
|
.on_change = on_config_debug_mode_change },
|
||||||
|
|
||||||
// We use -r here rather than -R because of GNU screen,
|
// GNU screen has an ^O in its formatting attributes reset string,
|
||||||
// which has an ^O in its string to reset formatting attributes
|
// therefore we can't just pipe raw formatting to `less -R`.
|
||||||
|
// You can use the -r switch, however that makes `less` very confused
|
||||||
|
// about line wrapping, and the result is suboptimal.
|
||||||
|
|
||||||
{ .name = "backlog_helper",
|
{ .name = "backlog_helper",
|
||||||
.comment = "Shell command to display a buffer's history",
|
.comment = "Shell command to display a buffer's history",
|
||||||
.type = CONFIG_ITEM_STRING,
|
.type = CONFIG_ITEM_STRING,
|
||||||
.default_ = "\"LESSSECURE=1 less -M -r +G\"" },
|
.default_ = "\"LESSSECURE=1 less -M -R +G\"" },
|
||||||
{ .name = "backlog_helper_strip_formatting",
|
{ .name = "backlog_helper_strip_formatting",
|
||||||
.comment = "Strip formatting from backlog helper input",
|
.comment = "Strip formatting from backlog helper input",
|
||||||
.type = CONFIG_ITEM_BOOLEAN,
|
.type = CONFIG_ITEM_BOOLEAN,
|
||||||
.default_ = "off" },
|
.default_ = "on" },
|
||||||
|
|
||||||
{ .name = "reconnect_delay_growing",
|
{ .name = "reconnect_delay_growing",
|
||||||
.comment = "Growing factor for reconnect delay",
|
.comment = "Growing factor for reconnect delay",
|
||||||
|
|
Loading…
Reference in New Issue