Ticket #2479 (closed defect: fixed)
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:
- attempt to run MC with option -x (force xterm), but it doesn't help.
- 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
Change History
Changed 14 years ago by AlexJ
- Attachment Ctrl-O.jpg added
Attempt to use Ctrl-o under TERM='screen-256color'
Changed 14 years ago by AlexJ
- Attachment AfterView.jpg added
That's how MC looks after using F3(View)
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.
MC: 4.7.5
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: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
Using file view function (F3)