mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-22 12:32:40 +03:00
subshell: advertise that we can suspend a shell that requested CSI u
Add a new variable to let fish know that -- since the parent commit -- we are running a version where fish can use the kitty keyboard protocol without breaking mc. In a few years, both fish and mc should ideally remove this hack (and fish should speak the kitty keyboard protocol unconditionally), so no one should rely on this new variable except as a temporary workaround. Hence the feature-specific flag and not a generic version variable. Signed-off-by: Yury V. Zaytsev <yury@shurup.com>
This commit is contained in:
parent
6e4510b558
commit
6ca2013082
@ -430,10 +430,14 @@ init_subshell_child (const char *pty_name)
|
||||
execl (mc_global.shell->path, mc_global.shell->path, "-Z", "-g", (char *) NULL);
|
||||
break;
|
||||
|
||||
case SHELL_FISH:
|
||||
execl (mc_global.shell->path, mc_global.shell->path,
|
||||
"--init-command", "set --global __mc_csi_u 1", (char *) NULL);
|
||||
break;
|
||||
|
||||
case SHELL_ASH_BUSYBOX:
|
||||
case SHELL_DASH:
|
||||
case SHELL_TCSH:
|
||||
case SHELL_FISH:
|
||||
execl (mc_global.shell->path, mc_global.shell->path, (char *) NULL);
|
||||
break;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user