mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-27 13:23:09 +00:00
Do send bracketed paste inside midnight commander
It can handle it fine (well, it simply strips the control sequences..).
This commit is contained in:
parent
0d9dfb307b
commit
97581ed20f
1 changed files with 1 additions and 4 deletions
|
@ -474,14 +474,11 @@ fn test_parse_version() {
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn terminal_protocols_enable_ifn() {
|
pub fn terminal_protocols_enable_ifn() {
|
||||||
if IN_MIDNIGHT_COMMANDER.load() {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
if TERMINAL_PROTOCOLS.load(Ordering::Relaxed) {
|
if TERMINAL_PROTOCOLS.load(Ordering::Relaxed) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
TERMINAL_PROTOCOLS.store(true, Ordering::Release);
|
TERMINAL_PROTOCOLS.store(true, Ordering::Release);
|
||||||
let sequences = if IN_WEZTERM.load() {
|
let sequences = if IN_WEZTERM.load() || IN_MIDNIGHT_COMMANDER.load() {
|
||||||
"\x1b[?2004h"
|
"\x1b[?2004h"
|
||||||
} else if IN_ITERM_PRE_CSI_U.load() {
|
} else if IN_ITERM_PRE_CSI_U.load() {
|
||||||
concat!("\x1b[?2004h", "\x1b[>4;1m", "\x1b[>5u", "\x1b=",)
|
concat!("\x1b[?2004h", "\x1b[>4;1m", "\x1b[>5u", "\x1b=",)
|
||||||
|
|
Loading…
Reference in a new issue