[patch #5050] putty and other terminals


                 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



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:


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

bye from Mir (it euro).


Reply to this item at:


  Messaggio inviato con/da Savannah

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