Ticket #2978 (closed enhancement: fixed)

Opened 5 years ago

Last modified 4 years ago

Fix for Home, End, Shift+Fn problems under screen/tmux

Reported by: sknaumov Owned by: andrew_b
Priority: major Milestone: 4.8.11
Component: mc-tty Version: 4.8.7
Keywords: tmux screen Shift+Fn Cc:
Blocked By: Blocking:
Branch state: merged Votes for changeset: committed-master

Description

Many people write about problems with Shift+Fn keys in mc under screen/tmux. I think, that the easiest way to prevent further hassles is to include following strings into /usr/share/mc/mc.lib:

[terminal:screen]
copy=xterm

I've tested it on mc-4.8.7 under screen and tmux.
Maybe similar thing has to be done for screen-256color, but I haven't tested it.

Change History

comment:1 Changed 4 years ago by sknaumov

  • Priority changed from minor to major
  • Summary changed from Easy fix for Shift+Fn problems under screen/tmux to Fix for Home, End, Shift+Fn problems under screen/tmux

comment:2 Changed 4 years ago by sknaumov

It turned out that on 4.8.7 (at least) - 4.8.9 even Home and End keys don't work under tmux (tmux-1.8).

comment:3 Changed 4 years ago by sknaumov

It looks like this fix doesn't break anything, but helps for some terminals:

TERM=linux (linux console): Fixes shift+Fn for tmux.

TERM=rxvt-unicode (urxvt): Fixes shift+Fn for tmux.

TERM=xterm (xfce4-terminal, gnome-terminal, guake): Fixes shift+Fn for screen and tmux.

TERM=xterm (xterm): Fixes Home, End, Shift+Fn for tmux.

comment:4 Changed 4 years ago by andrew_b

  • Status changed from new to accepted
  • Owner set to andrew_b
  • Votes for changeset set to andrew_b
  • Branch state changed from no branch to on review
  • Milestone changed from Future Releases to 4.8.11

comment:5 Changed 4 years ago by angel_il

  • Votes for changeset changed from andrew_b to andrew_b angel_il
  • Branch state changed from on review to approved

comment:6 Changed 4 years ago by andrew_b

  • Status changed from accepted to testing
  • Votes for changeset changed from andrew_b angel_il to committed-master
  • Resolution set to fixed
  • Branch state changed from approved to merged

comment:7 Changed 4 years ago by andrew_b

  • Status changed from testing to closed

comment:8 Changed 4 years ago by zaytsev

sknaumov, awesome, thanks! your hack works for me.

comment:9 follow-up: ↓ 10 Changed 4 years ago by plastikat

Would be good to also add

[terminal:screen-256color]
copy=xterm

It will fix shift+Fn for 256-color mode of tmux (tested) and likely 256-color mode of screen (not tested).

comment:10 in reply to: ↑ 9 Changed 4 years ago by andrew_b

Replying to plastikat:

Would be good to also add

[terminal:screen-256color]
copy=xterm

It will fix shift+Fn for 256-color mode of tmux (tested) and likely 256-color mode of screen (not tested).

Thanks! Applied as [3d3a5ecbb91055388377ecf598601c45dbbe879d].

Note: See TracTickets for help on using tickets.