summaryrefslogtreecommitdiff
path: root/degesch.c
diff options
context:
space:
mode:
authorPřemysl Janouch <p.janouch@gmail.com>2015-08-09 15:05:49 +0200
committerPřemysl Janouch <p.janouch@gmail.com>2015-08-09 15:05:49 +0200
commit7225b68f749b16b5c8f9bdfa79fb18db8afd4d48 (patch)
treea2fd8bc52301460eaf9a6d74632cc7ca651cce55 /degesch.c
parente188de55017dc3965f23db0802bcc0d03c0dc8f5 (diff)
downloadxK-7225b68f749b16b5c8f9bdfa79fb18db8afd4d48.tar.gz
xK-7225b68f749b16b5c8f9bdfa79fb18db8afd4d48.tar.xz
xK-7225b68f749b16b5c8f9bdfa79fb18db8afd4d48.zip
degesch: safer defaults for backlog helper
Diffstat (limited to 'degesch.c')
-rw-r--r--degesch.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/degesch.c b/degesch.c
index c548669..825f235 100644
--- a/degesch.c
+++ b/degesch.c
@@ -1654,17 +1654,19 @@ static struct config_schema g_config_behaviour[] =
.default_ = "off",
.on_change = on_config_debug_mode_change },
- // We use -r here rather than -R because of GNU screen,
- // which has an ^O in its string to reset formatting attributes
+ // GNU screen has an ^O in its formatting attributes reset string,
+ // 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",
.comment = "Shell command to display a buffer's history",
.type = CONFIG_ITEM_STRING,
- .default_ = "\"LESSSECURE=1 less -M -r +G\"" },
+ .default_ = "\"LESSSECURE=1 less -M -R +G\"" },
{ .name = "backlog_helper_strip_formatting",
.comment = "Strip formatting from backlog helper input",
.type = CONFIG_ITEM_BOOLEAN,
- .default_ = "off" },
+ .default_ = "on" },
{ .name = "reconnect_delay_growing",
.comment = "Growing factor for reconnect delay",