@@ -69,41 +69,41 @@ func main() {
69
69
WithLongDescription (ProjectName + " a utility that copies text to your clipboard from anywhere using ANSI OSC 52 sequence." ).
70
70
WithSection ("Terminal" , "shcopy should work in any terminal that supports OSC 52. There are some exceptions below." ).
71
71
WithSection ("Kitty" , "Kitty, version 0.22.0 and below, had a bug where it appends to the" +
72
- "clipboard instead of replacing it. To workaround this bug, clear" +
73
- "the clipboard before copying any text." +
74
- "\n " +
75
- "shcopy -c; shcopy \" Hello World\" " ,
72
+ "clipboard instead of replacing it. To workaround this bug, clear" +
73
+ "the clipboard before copying any text." +
74
+ "\n " +
75
+ "shcopy -c; shcopy \" Hello World\" " ,
76
76
).
77
77
WithSection ("Screen" , "To use shcopy within a screen session, make sure that the outer" +
78
- "terminal supports OSC 52. If your '$TERM' environment variable is" +
79
- "not set to 'screen-*', use '--term screen' to force shcopy to work" +
80
- "with screen." ,
78
+ "terminal supports OSC 52. If your '$TERM' environment variable is" +
79
+ "not set to 'screen-*', use '--term screen' to force shcopy to work" +
80
+ "with screen." ,
81
81
).
82
- WithSection ("Tmux" ,
83
- "To use shcopy within a tmux session, make sure that the outer " +
84
- "terminal supports OSC 52, and use one of the following options:" +
85
- "\n " +
86
- "1. Configure tmux to allow programs to access the clipboard " +
87
- "(recommended). The tmux 'set-clipboard' option was added in tmux 1.5 with a " +
88
- "default of 'on'; the default was changed to 'external' when " +
89
- "'external' was added in tmux 2.6. Setting 'set-clipboard' to 'on' " +
90
- "allows external programs in tmux to access the clipboard. To enable " +
91
- "this option, add 'set -s set-clipboard on' to your tmux config." +
92
- "\n " +
93
- "2. Use '--term tmux' option to force shcopy to work with tmux. This " +
94
- "option requires the 'allow-passthrough' option to be enabled in tmux. " +
95
- "Starting with tmux 3.3a, the 'allow-passthrough' option is no " +
96
- "longer enabled by default. This option allows tmux to pass an ANSI " +
97
- "escape sequence to the outer terminal by wrapping it in another " +
98
- "special tmux escape sequence. This means the '--term tmux' option " +
99
- "won't work unless you're running an older version of tmux or you " +
100
- "have enabled 'allow-passthrough' in tmux. Add the following to your " +
101
- "tmux config to enable passthrough 'set -g allow-passthrough on'." +
102
- "\n " +
103
- "Refer to https://github.com/tmux/tmux/wiki/Clipboard for more info." ,
82
+ WithSection ("Tmux" ,
83
+ "To use shcopy within a tmux session, make sure that the outer " +
84
+ "terminal supports OSC 52, and use one of the following options:" +
85
+ "\n " +
86
+ "1. Configure tmux to allow programs to access the clipboard " +
87
+ "(recommended). The tmux 'set-clipboard' option was added in tmux 1.5 with a " +
88
+ "default of 'on'; the default was changed to 'external' when " +
89
+ "'external' was added in tmux 2.6. Setting 'set-clipboard' to 'on' " +
90
+ "allows external programs in tmux to access the clipboard. To enable " +
91
+ "this option, add 'set -s set-clipboard on' to your tmux config." +
92
+ "\n " +
93
+ "2. Use '--term tmux' option to force shcopy to work with tmux. This " +
94
+ "option requires the 'allow-passthrough' option to be enabled in tmux. " +
95
+ "Starting with tmux 3.3a, the 'allow-passthrough' option is no " +
96
+ "longer enabled by default. This option allows tmux to pass an ANSI " +
97
+ "escape sequence to the outer terminal by wrapping it in another " +
98
+ "special tmux escape sequence. This means the '--term tmux' option " +
99
+ "won't work unless you're running an older version of tmux or you " +
100
+ "have enabled 'allow-passthrough' in tmux. Add the following to your " +
101
+ "tmux config to enable passthrough 'set -g allow-passthrough on'." +
102
+ "\n " +
103
+ "Refer to https://github.com/tmux/tmux/wiki/Clipboard for more info." ,
104
104
).
105
105
WithSection ("Bugs" , "Report bugs to https://github.com/aymanbagabas/shcopy/issues" ).
106
- WithSection ("Copyright" , "(C) 2023 Ayman Bagabas.\n " +
106
+ WithSection ("Copyright" , "(C) 2024 Ayman Bagabas.\n " +
107
107
"Released under MIT license." )
108
108
109
109
pflag .VisitAll (mpflag .PFlagVisitor (manPage ))
0 commit comments