[patch #5050] putty and other terminals



URL:
  <http://savannah.gnu.org/patch/?func=detailitem&item_id=5050>

                 Summary: putty and other terminals
                 Project: GNU Midnight Commander
            Submitted by: mirkobau
            Submitted on: luned�4/04/2006 alle 09:34
                Category: Keyboard input
                Priority: 5 - Normal
                  Status: None
                 Privacy: Public
             Assigned to: None
        Originator Email: 
             Open/Closed: Open

    _______________________________________________________

Details:

putty (puttyssh.org) is an xterm-compliant terminal emulator with mouse
support, and has its own terminfo definition file that instructs ncurses how
to correctly recognize the keys received, but in 'src/main.c' the 'if..'
block does tests only on xterm*, rxvt*, and dtterm terminals.

i used TERM=xterm-color, but when i found the terminfo file 'putty-256color'
i wanted to use it.
After standard compilation everythyng was running well (home/end keys, and
all others), but mc had *no* mouse support.

actually i have corrected this problem adding the comparison:

  || strncmp (termvalue, "putty", 5) == 0

in the main.c file, in function init_xterm_support(), but i suggest to insert
a parameter in a global option file, in wich a sysadmin could insert a line
such as:

[xterm-compliant]
xterm*
rxvt*
dtterm
putty*
fooxterm*
barxterm*
...

and so on.
thank you for the time spent in reading my opinions.

bye from Mir (it euro).






    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/patch/?func=detailitem&item_id=5050>

_______________________________________________
  Messaggio inviato con/da Savannah
  http://savannah.gnu.org/




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]