From db9a933c42945cad9ef8c47a52f9c75e56ab7bbf2e994cec11b6fea0ba7a4061 Mon Sep 17 00:00:00 2001 From: "Dr. Werner Fink" Date: Thu, 7 May 2020 08:24:01 +0000 Subject: [PATCH] Better support of Midnight Commander (bsc#1170527) OBS-URL: https://build.opensuse.org/package/show/shells/tcsh?expand=0&rev=102 --- bindkey.tcsh | 17 +++++++++++------ tcsh.changes | 6 ++++++ 2 files changed, 17 insertions(+), 6 deletions(-) diff --git a/bindkey.tcsh b/bindkey.tcsh index e04fdd9..93e2c68 100644 --- a/bindkey.tcsh +++ b/bindkey.tcsh @@ -31,12 +31,17 @@ bindkey "^[[3~" delete-char bindkey "^[[4~" end-of-line bindkey "^[[5~" history-search-backward bindkey "^[[6~" history-search-forward -bindkey "^M[1~" beginning-of-line -bindkey "^M[2~" yank -bindkey "^M[3~" delete-char -bindkey "^M[4~" end-of-line -bindkey "^M[5~" history-search-backward -bindkey "^M[6~" history-search-forward +if ( ${?MC_SID} == 0 ) then + # + # Those bindings interfere with Midnight Commander + # + bindkey "^M[1~" beginning-of-line + bindkey "^M[2~" yank + bindkey "^M[3~" delete-char + bindkey "^M[4~" end-of-line + bindkey "^M[5~" history-search-backward + bindkey "^M[6~" history-search-forward +endif bindkey -r "\233" bindkey "\2331~" beginning-of-line bindkey "\2332~" yank diff --git a/tcsh.changes b/tcsh.changes index 3ab9a09..908c58d 100644 --- a/tcsh.changes +++ b/tcsh.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Thu May 7 08:22:30 UTC 2020 - Dr. Werner Fink + +- Better support of Midnight Commander (bsc#1170527) + * Do avoid locked mc/tcsh pair each waiting on the other + ------------------------------------------------------------------- Mon Feb 24 12:25:05 UTC 2020 - Dr. Werner Fink