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

No mouse support under "tmux" terminal multiplexer #2479

Closed
mc-butler opened this issue Jan 24, 2011 · 16 comments
Closed

No mouse support under "tmux" terminal multiplexer #2479

mc-butler opened this issue Jan 24, 2011 · 16 comments
Labels
area: tty Interaction with the terminal, screen libraries prio: medium Has the potential to affect progress ver: 4.8.5 Reproducible in version 4.8.5
Milestone

Comments

@mc-butler
Copy link

Important

This issue was migrated from Trac:

Origin https://midnight-commander.org/ticket/2479
Reporter AlexJ

In case of TERM="screen" or TERM="screen-256color"
no mouse support under terminal multiplexer "tmux".
Also Midnight Commander complain about: "Not an xterm or Linux console; the panels cannot be toggled" in case of Ctrl-o.

What have been done in attempt to allow to use MC under tmux:

  1. attempt to run MC with option -x (force xterm), but it doesn't help.
  1. Under version MC-4.7.2 there was possible simple trick that allow to run MC completely successfully under "tmux", - it's set environment variable TERM to "rxvt-256color" before calling MC with option -x, but it impossible with MC-4.7.5. Actually MC will start with mouse support in that case(TERM="rxvt-256color"), but coloring is broken, Ctrl-o switch to background but background is cleared.

I'll attach a few screen captures to show defect.

I talk with Nicolas(author of tmux) about this issue and he says MC should correctly support "screen" terminal without any tricks with TERM variable.

tmux has a lot of new features and has small memory footprint to compare with outdated "GNU screen" so if it possible it would be greatly appreciated if MC will be compatible with tmux that is "MUST have" for any admin.

Test was done on: FreeBSD-8.1 release
Terminal multiplexer: tmux-1.4
MC: 4.7.5
Remote access over PuTTY

Note

Original attachments:

@mc-butler
Copy link
Author

Changed by AlexJ on Jan 24, 2011 at 4:46 UTC

Using file view function (F3)

@mc-butler
Copy link
Author

Changed by AlexJ on Jan 24, 2011 at 4:48 UTC

Attempt to use Ctrl-o under TERM='screen-256color'

@mc-butler
Copy link
Author

Changed by AlexJ on Jan 24, 2011 at 4:49 UTC

That's how MC looks after using F3(View)

@mc-butler
Copy link
Author

Changed by AlexJ on Jan 24, 2011 at 4:49 UTC

MC builded with this options

@mc-butler
Copy link
Author

Changed by andrew_b (@aborodin) on Jan 24, 2011 at 5:51 UTC (comment 1)

  • Component changed from mc-core to mc-tty

@mc-butler
Copy link
Author

Changed by emmex on Jun 18, 2011 at 19:35 UTC (comment 2)

No mouse support even under FreeBSD 8.2 RELEASE and Ubuntu 10.04 LTS using tmux or screen.
MC: 4.7.5

@mc-butler
Copy link
Author

Changed by angel_il (@ilia-maslakov) on Aug 26, 2011 at 11:48 UTC (comment 3)

  • Branch state set to no branch

put follow lines into .profile

if [ $TERM = "screen" ]; then
    export TERM=xterm
fi
if [ -n "$TMUX" ]; then
    export COLORTERM=rxvt
fi

as a temporary solution...

@mc-butler
Copy link
Author

Changed by angel_il (@ilia-maslakov) on Aug 26, 2011 at 12:06 UTC (comment 4)

  • Branch state changed from no branch to on review
  • Owner set to angel_il
  • Status changed from new to accepted

branch: 2479_tmux_support parent: master

@mc-butler
Copy link
Author

Changed by slavazanko (@slavaz) on Aug 29, 2011 at 12:31 UTC (comment 5)

  • Branch state changed from on review to on rework

@mc-butler
Copy link
Author

Changed by angel_il (@ilia-maslakov) on Aug 29, 2011 at 15:08 UTC (comment 6)

  • Branch state changed from on rework to on review

@mc-butler
Copy link
Author

Changed by angel_il (@ilia-maslakov) on Sep 7, 2011 at 13:20 UTC (comment 7)

  • Branch state changed from on review to no branch
  • Resolution set to wontfix
  • Status changed from accepted to testing

fixed in #2601

@mc-butler
Copy link
Author

Changed by andrew_b (@aborodin) on Sep 8, 2011 at 10:13 UTC (comment 8)

  • Milestone changed from 4.8 to 4.8.0-pre2
  • Keywords FreeBSD deleted
  • Status changed from testing to closed

@mc-butler
Copy link
Author

Changed by sorin (@ssbarnea) on Mar 25, 2014 at 16:55 UTC (comment 9)

  • Resolution wontfix deleted
  • Version changed from 4.7.5 to 4.8.5
  • Status changed from closed to reopened

Is this bug really fixed? I can replicate it with 4.8.5

@mc-butler
Copy link
Author

Changed by andrew_b (@aborodin) on Mar 26, 2014 at 4:20 UTC (comment 9.10)

Replying to sorin:

Is this bug really fixed? I can replicate it with 4.8.5

What about 4.8.11? Or recent master?

@mc-butler
Copy link
Author

Changed by sknaumov (sknaumov@….com) on Mar 27, 2014 at 6:32 UTC (comment 11)

I'm using xubuntu-13.10 with tmux-1.8 + mc-4.8.11 + xterm and mouse works. If you are experiencing problems with mouse under xterm+tmux, then try 'mc -x'.

@mc-butler
Copy link
Author

Changed by andrew_b (@aborodin) on Mar 28, 2014 at 4:20 UTC (comment 12)

  • Status changed from reopened to closed
  • Resolution set to fixed

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.5 Reproducible in version 4.8.5
Development

No branches or pull requests

1 participant