Skip to content

Commit

Permalink
subshell: tell fish that we actually support the kitty keyboard proto…
Browse files Browse the repository at this point in the history
…col now

__mc_csi_u was added so that fish shell knows when it's safe to enable the
kitty keyboard protocol.

As seen in the parent commit, it wasn't quite safe; so the upcoming patch
release of fish will disable this protocol again -- until fish finds this
commit, so add a new version marker.

While at it, use a less misleading name.  Dropping the old name will mean that
fish < 4.0.1 will no longer enable the kitty keyboard protocol (and be safe
from the hang on numlock). I guess we could avoid that but I don't think this
is not a big loss, especially because since fish 4.0.1 will enable it again.
  • Loading branch information
krobelus committed Mar 5, 2025
1 parent cf671cf commit 79c6a19
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/subshell/common.c
Original file line number Diff line number Diff line change
Expand Up @@ -465,7 +465,7 @@ init_subshell_child (const char *pty_name)

case SHELL_FISH:
execl (mc_global.shell->path, mc_global.shell->path, "--init-command",
"set --global __mc_csi_u 1", (char *) NULL);
"set --global __mc_kitty_keyboard 1", (char *) NULL);
break;

case SHELL_ASH_BUSYBOX:
Expand Down

0 comments on commit 79c6a19

Please sign in to comment.