Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
mc-butler opened this issue Mar 13, 2013 · 10 comments
Closed

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

mc-butler opened this issue Mar 13, 2013 · 10 comments
Assignees
Labels
area: tty Interaction with the terminal, screen libraries prio: medium Has the potential to affect progress ver: 4.8.7 Reproducible in version 4.8.7
Milestone

Comments

@mc-butler
Copy link

Important

This issue was migrated from Trac:

Origin https://midnight-commander.org/ticket/2978
Reporter sknaumov (sknaumov@….com)
Keywords tmux, screen, Shift+Fn

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.

@mc-butler
Copy link
Author

Changed by sknaumov (sknaumov@….com) on Jul 27, 2013 at 9:37 UTC (comment 1)

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

@mc-butler
Copy link
Author

Changed by sknaumov (sknaumov@….com) on Jul 27, 2013 at 9:39 UTC (comment 2)

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).

@mc-butler
Copy link
Author

Changed by sknaumov (sknaumov@….com) on Sep 27, 2013 at 11:07 UTC (comment 3)

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.

@mc-butler
Copy link
Author

Changed by andrew_b (@aborodin) on Oct 1, 2013 at 10:21 UTC (comment 4)

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

Branch: 2978_tmux_keys
[1689200b10277af9ef8fa384828984afdf08b6d9]

@mc-butler
Copy link
Author

Changed by angel_il (@ilia-maslakov) on Oct 3, 2013 at 9:22 UTC (comment 5)

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

@mc-butler
Copy link
Author

Changed by andrew_b (@aborodin) on Oct 3, 2013 at 11:46 UTC (comment 6)

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

Merged to master: [1f05e56].

@mc-butler
Copy link
Author

Changed by andrew_b (@aborodin) on Oct 3, 2013 at 11:47 UTC (comment 7)

  • Status changed from testing to closed

@mc-butler
Copy link
Author

Changed by zaytsev (@zyv) on Oct 21, 2013 at 20:48 UTC (comment 8)

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

@mc-butler
Copy link
Author

Changed by plastikat (anoregistrat@….ru) on Jan 14, 2014 at 15:04 UTC (comment 9)

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).

@mc-butler
Copy link
Author

Changed by andrew_b (@aborodin) on Feb 22, 2014 at 11:24 UTC (comment 9.10)

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 [3d3a5ec].

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: tty Interaction with the terminal, screen libraries prio: medium Has the potential to affect progress ver: 4.8.7 Reproducible in version 4.8.7
Development

No branches or pull requests

2 participants