From: Ruben Jenster Date: Fri, 8 Apr 2022 14:37:02 +0000 (+0200) Subject: xterm: enable macbook options key as modifier for copy-and-paste (#914) X-Git-Url: http://git.prime8.dev/?a=commitdiff_plain;h=2b4dbacc10f0db7fceb092ea42ea12cd9301f4aa;p=ttyd.git xterm: enable macbook options key as modifier for copy-and-paste (#914) Enabling `set -g mouse on` in tmux.conf breaks copy-on-select. On other keyboard layouts the shift key can be used as modifier for copy-on-select. This commit enables the xterm options required for using the options key as modifier for copy-on-select. --- diff --git a/html/src/components/app.tsx b/html/src/components/app.tsx index a899b7f..96c7ded 100644 --- a/html/src/components/app.tsx +++ b/html/src/components/app.tsx @@ -21,6 +21,8 @@ const clientOptions = { const termOptions = { fontSize: 13, fontFamily: 'Menlo For Powerline,Consolas,Liberation Mono,Menlo,Courier,monospace', + macOptionClickForcesSelection: true, + macOptionIsMeta: true, theme: { foreground: '#d2d2d2', background: '#2b2b2b',