Ticket #2479 (closed defect: fixed)

Opened 14 years ago

Last modified 11 years ago

No mouse support under "tmux" terminal multiplexer

Reported by: AlexJ Owned by: angel_il
Priority: major Milestone: 4.8.0-pre2
Component: mc-tty Version: 4.8.5
Keywords: Cc:
Blocked By: Blocking:
Branch state: no branch Votes for changeset:

Description

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

Attachments

View.jpg (137.2 KB) - added by AlexJ 14 years ago.
Using file view function (F3)
Ctrl-O.jpg (14.1 KB) - added by AlexJ 14 years ago.
Attempt to use Ctrl-o under TERM='screen-256color'
AfterView.jpg (152.5 KB) - added by AlexJ 14 years ago.
That's how MC looks after using F3(View)
MakeConfig.jpg (45.4 KB) - added by AlexJ 14 years ago.
MC builded with this options

Change History

Changed 14 years ago by AlexJ

Using file view function (F3)

Changed 14 years ago by AlexJ

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

Changed 14 years ago by AlexJ

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

Changed 14 years ago by AlexJ

MC builded with this options

comment:1 Changed 14 years ago by andrew_b

  • Component changed from mc-core to mc-tty

comment:2 Changed 13 years ago by emmex

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

Version 0, edited 13 years ago by emmex (next)

comment:3 Changed 13 years ago by angel_il

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

comment:4 Changed 13 years ago by angel_il

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

branch: 2479_tmux_support parent: master

comment:5 Changed 13 years ago by slavazanko

  • Branch state changed from on review to on rework

comment:6 Changed 13 years ago by angel_il

  • Branch state changed from on rework to on review

comment:7 Changed 13 years ago by angel_il

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

fixed in #2601

comment:8 Changed 13 years ago by andrew_b

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

comment:9 follow-up: ↓ 10 Changed 11 years ago by sorin

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

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

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

Replying to sorin:

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

What about 4.8.11? Or recent master?

comment:11 Changed 11 years ago by sknaumov

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

comment:12 Changed 11 years ago by andrew_b

  • Status changed from reopened to closed
  • Resolution set to fixed
Note: See TracTickets for help on using tickets.