aboutsummaryrefslogtreecommitdiff
path: root/cmd-capture-pane.c
diff options
context:
space:
mode:
authornicm <nicm>2022-06-30 09:55:53 +0000
committernicm <nicm>2022-06-30 09:55:53 +0000
commitcdacc12ce305ad2f3e65e2a01328a988e3200b51 (patch)
treec886b2047969edb95bb711b7dccc9ee4fa29b5ec /cmd-capture-pane.c
parentb22edcf3a5e6271625141992c1a842d295c8b89f (diff)
downloadrtmux-cdacc12ce305ad2f3e65e2a01328a988e3200b51.tar.gz
rtmux-cdacc12ce305ad2f3e65e2a01328a988e3200b51.tar.bz2
rtmux-cdacc12ce305ad2f3e65e2a01328a988e3200b51.zip
Add support for OSC 8 hyperlinks (a VTE extension now supported by other
terminals such as iTerm2). Originally written by me then extended and completed by first Will Noble and later Jeff Chiang. GitHub issues 911, 2621, 2890, 3240.
Diffstat (limited to 'cmd-capture-pane.c')
-rw-r--r--cmd-capture-pane.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/cmd-capture-pane.c b/cmd-capture-pane.c
index a3e84c46..04a88172 100644
--- a/cmd-capture-pane.c
+++ b/cmd-capture-pane.c
@@ -53,8 +53,8 @@ const struct cmd_entry cmd_clear_history_entry = {
.name = "clear-history",
.alias = "clearhist",
- .args = { "t:", 0, 0, NULL },
- .usage = CMD_TARGET_PANE_USAGE,
+ .args = { "Ht:", 0, 0, NULL },
+ .usage = "[-H] " CMD_TARGET_PANE_USAGE,
.target = { 't', CMD_FIND_PANE, 0 },
@@ -204,6 +204,8 @@ cmd_capture_pane_exec(struct cmd *self, struct cmdq_item *item)
if (cmd_get_entry(self) == &cmd_clear_history_entry) {
window_pane_reset_mode_all(wp);
grid_clear_history(wp->base.grid);
+ if (args_has(args, 'H'))
+ screen_reset_hyperlinks(wp->screen);
return (CMD_RETURN_NORMAL);
}