summaryrefslogtreecommitdiffstats
path: root/options-table.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@openbsd.org>2011-05-18 20:24:29 +0000
committerNicholas Marriott <nicm@openbsd.org>2011-05-18 20:24:29 +0000
commit96e7f33da3078facc504c6c66d42956bc44b2e54 (patch)
treeca4c6e2cabdc24c01120f551081399abfc92baf7 /options-table.c
parent58908fd8c54a3c8d2878a7c6f9ca566093302f92 (diff)
Support setting the xterm clipboard when copying from copy mode using
the xterm escape sequence for the purpose (if xterm is configured to allow it). Written by and much discussed Ailin Nemui, guidance on xterm/termcap/terminfo from Thomas Dickey.
Diffstat (limited to 'options-table.c')
-rw-r--r--options-table.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/options-table.c b/options-table.c
index 8e8b8b5d..8a611460 100644
--- a/options-table.c
+++ b/options-table.c
@@ -75,6 +75,11 @@ const struct options_table_entry server_options_table[] = {
.default_num = 0 /* overridden in main() */
},
+ { .name = "set-clipboard",
+ .type = OPTIONS_TABLE_FLAG,
+ .default_num = 1
+ },
+
{ .name = NULL }
};
@@ -360,7 +365,8 @@ const struct options_table_entry session_options_table[] = {
{ .name = "terminal-overrides",
.type = OPTIONS_TABLE_STRING,
- .default_str = "*88col*:colors=88,*256col*:colors=256,xterm*:XT"
+ .default_str = "*88col*:colors=88,*256col*:colors=256"
+ ",xterm*:XT:Ms=\\E]52;%p1%s;%p2%s\\007"
},
{ .name = "update-environment",