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

mouse doesnt work inside tmux for MC ( midnight commander) #771

Closed
koumdros opened this issue Aug 1, 2016 · 7 comments
Closed

mouse doesnt work inside tmux for MC ( midnight commander) #771

koumdros opened this issue Aug 1, 2016 · 7 comments

Comments

@koumdros
Copy link

koumdros commented Aug 1, 2016

mouse doesnt work for MC under tmux after bash-it installation

OS: centos 6.8
brand new user, bash it installed with a rather spartan assortment of aliases + plugins + completions, among them those for tmux

I installed bash-it just after creating the user, so he had just the original dot files
bash-it enable alias curl git tmux vim vagrant
bash-it enable completion defaults dirs git pip ssh system tmux todo vagrant virtualbox
bash-it enable plugin dirs explain extract git history plenv ssh tmux

tmux is "out-of-thebox" ,. ie there is no .tmux.conf

mc has mouse support outside of tmux., but when I enter tmux and then launch MC mouse doenst work

extra: just realized function keys that require interactivity ( say F2 to configure htop) dont work either inside tmux now.

@nwinkler
Copy link
Member

nwinkler commented Aug 2, 2016

Does this work without Bash-it? I honestly don't know, since I don't use mc or tmux...

@koumdros
Copy link
Author

koumdros commented Sep 1, 2016

sorry for the delay, crisis at work then vacations..
it worked before bash-it , when i was on "vanilla" bash environment..

@VladimirReshetnikov
Copy link

I had the same problem, but fixed it by running mc as mc -x (this sets TERM variable to screen).

@nwinkler
Copy link
Member

nwinkler commented Jun 1, 2017

@VladimirReshetnikov Nice find! Does it make sense to alias mc to mc -x to make this always work? We could add this to the tmux plugin to ensure this works if tmux is used.

@NoahGorny
Copy link
Member

This issue is very stale, so I close it. Thanks for contributing and posting!

@MurzNN
Copy link

MurzNN commented Dec 18, 2020

Can the -x mode cam be force enabled via .config/mc/ini file? I even can't see -x in options list via mc --help for understand what it is doing:

# mc --help                                                                                                                                                                                                                                            [13/13]
Usage:                                                                                                                                                                                                                                                                        
  mc [OPTION…] [this_dir] [other_panel_dir]                                                                                                                                                                                                                                   
                                                                                                                                                                                                                                                                              
                                                                                                                                                                                                                                                                              
GNU Midnight Commander 4.8.24                                                                                                                                                                                                                                                 
                                                                                                                                                                                                                                                                              
                                                                                                                                                                                                                                                                              
Help Options:                                                                                                                                                                                                                                                                 
  -h, --help                Show help options                                                                                                                                                                                                                                 
  --help-all                Show all help options                                                                                                                                                                                                                             
  --help-terminal           Terminal options                                                                                                                                                                                                                                  
  --help-color              Color options                                                                                                                                                                                                                                     
                                                                                                                                                                                                                                                                              
Application Options:
  -V, --version             Displays the current version
  -f, --datadir             Print data directory
  -F, --datadir-info        Print extended info about used data directories
  --configure-options       Print configure options
  -P, --printwd=<file>      Print last working directory to specified file
  -U, --subshell            Enables subshell support (default)
  -u, --nosubshell          Disables subshell support
  -l, --ftplog=<file>       Log ftp dialog to specified file
  -v, --view=<file>         Launches the file viewer on a file
  -e, --edit=<file> ...     Edit files

@LordJakson
Copy link

As mentioned in the help there is a --help-all command

# mc --help-all
Usage:
  mc [OPTION…] [+number] [this_dir] [other_panel_dir]
 +number - Set initial line number for the internal editor

GNU Midnight Commander 4.8.7

Help Options:
  -h, --help                     Show help options
  --help-all                     Show all help options
  --help-terminal                Terminal options
  --help-color                   Color options

Terminal options
  -x, --xterm                    Forces xterm features
  -X, --no-x11                   Disable X11 support
  -g, --oldmouse                 Tries to use an old highlight mouse tracking
  -d, --nomouse                  Disable mouse support in text version
  -t, --termcap                  Tries to use termcap instead of terminfo
  -s, --slow                     To run on slow terminals
  -a, --stickchars               Use stickchars to draw
  -k, --resetsoft                Resets soft keys on HP terminals
  -K, --keymap=<file>            Load definitions of key bindings from specified file
  --nokeymap                     Don't load definitions of key bindings from file, use defaults

--colors KEYWORD={FORE},{BACK},{ATTR}:KEYWORD2=...

{FORE}, {BACK} and {ATTR} can be omitted, and the default will be used

 Keywords:
   Global:       errors, disabled, reverse, gauge, header
                 input, inputmark, inputunchanged, commandlinemark
                 bbarhotkey, bbarbutton, statusbar
   File display: normal, selected, marked, markselect
   Dialog boxes: dnormal, dfocus, dhotnormal, dhotfocus, errdhotnormal,
                 errdhotfocus
   Menus:        menunormal, menuhot, menusel, menuhotsel, menuinactive
   Popup menus:  pmenunormal, pmenusel, pmenutitle
   Editor:       editnormal, editbold, editmarked, editwhitespace,
                 editlinestate, editbg, editframe, editframeactive
                 editframedrag
   Viewer:       viewbold, viewunderline, viewselected
   Help:         helpnormal, helpitalic, helpbold, helplink, helpslink

Standard Colors:
   black, gray, red, brightred, green, brightgreen, brown,
   yellow, blue, brightblue, magenta, brightmagenta, cyan,
   brightcyan, lightgray and white

Extended colors, when 256 colors are available:
   color16 to color255, or rgb000 to rgb555 and gray0 to gray23

Attributes:
   bold, underline, reverse, blink; append more with '+'

  -b, --nocolor                  Requests to run in black and white
  -c, --color                    Request to run in color mode
  -C, --colors=<string>          Specifies a color configuration
  -S, --skin=<string>            Show mc with specified skin

Application Options:
  -V, --version                  Displays the current version
  -f, --datadir                  Print data directory
  -F, --datadir-info             Print extended info about used data directories
  --configure-options            Print configure options
  -P, --printwd=<file>           Print last working directory to specified file
  -U, --subshell                 Enables subshell support (default)
  -u, --nosubshell               Disables subshell support
  -l, --ftplog=<file>            Log ftp dialog to specified file
  -D, --debuglevel=<integer>     Set debug level
  -v, --view=<file>              Launches the file viewer on a file
  -e, --edit=<file> ...          Edit files

Please send any bug reports (including the output of `mc -V')
as tickets at www.midnight-commander.org

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants