| | 17 | i used TERM=xterm-color, but when i found the terminfo file 'putty- |
| | 18 | 256color' i wanted to use it. |
| | 19 | After standard compilation everythyng was running well (home/end |
| | 20 | keys, and all others), but mc had no mouse support. |
| | 21 | |
| | 22 | actually i have corrected this problem adding the comparison: |
| | 23 | |
| | 24 | || strncmp (termvalue, "putty", 5) == 0 |
| | 25 | |
| | 26 | in the main.c file, in function init_xterm_support(), but i suggest |
| | 27 | to insert a parameter in a global option file, in wich a sysadmin |
| | 28 | could insert a line such as: |
| | 29 | |
| | 30 | [xterm-compliant] |
| | 31 | xterm* |
| | 32 | rxvt* |
| | 33 | dtterm |
| | 34 | putty* |
| | 35 | fooxterm* |
| | 36 | barxterm* |
| | 37 | ... |
| | 38 | |
| | 39 | and so on. |
| | 40 | thank you for the time spent in reading my opinions. |
| | 41 | |
| | 42 | bye from Mir (it@euro). |
| | 43 | }}} |
| | 44 | |
| | 45 | Comment 1 by Pavel Tsekov <ptsekov> at Tue 25 Apr 2006 01:44:34 PM UTC: |
| | 46 | {{{ |
| | 47 | http://puttyssh.org/faq.html#faq-term |
| | 48 | |
| | 49 | Where does putty-256color come from ? |
| | 50 | |
| | 51 | Anyway, I think that your suggestion about adding a new section to |
| | 52 | the configuration file makes sense. |
| | 53 | }}} |
| | 54 | |
| | 55 | Comment 2 by mirko <mirkobau> at Tue 25 Apr 2006 02:56:11 PM UTC: |
| | 56 | {{{ |
| | 57 | i took it from a terminfo definitions file, downloadable from: |
| | 58 | |
| | 59 | ftp://invisible-island.net/ncurses/ |
| | 60 | |
| | 61 | the file i used is: terminfo.src.gz |
| | 62 | |
| | 63 | inside it i have found a section with putty and putty-256color |
| | 64 | definitions: |
| | 65 | |
| | 66 | gunzip terminfo.src.gz |
| | 67 | tic terminfo.src |
| | 68 | |
| | 69 | note: tic says that terminfo.src has some errors, but i didn't |
| | 70 | care, 'cause i really need the definitions for xterm* and putty* |
| | 71 | terminals. |
| | 72 | }}} |
| | 73 | |
| | 74 | Comment 3 by Leonard den Ottolander <leonardjo> at Thu 22 Jun 2006 01:30:35 PM UTC: |
| | 75 | {{{ |
| 85 | | Leonard den Ottolander <leonardjo> |
| 86 | | Project Member |
| 87 | | Tue 25 Apr 2006 02:56:11 PM UTC, comment #2: |
| 88 | | |
| 89 | | i took it from a terminfo definitions file, downloadable from: |
| 90 | | |
| 91 | | ftp://invisible-island.net/ncurses/ |
| 92 | | |
| 93 | | the file i used is: terminfo.src.gz |
| 94 | | |
| 95 | | inside it i have found a section with putty and putty-256color |
| 96 | | definitions: |
| 97 | | |
| 98 | | gunzip terminfo.src.gz |
| 99 | | tic terminfo.src |
| 100 | | |
| 101 | | note: tic says that terminfo.src has some errors, but i didn't |
| 102 | | care, 'cause i really need the definitions for xterm* and putty* |
| 103 | | terminals. |
| 104 | | mirko <mirkobau> |
| 105 | | Tue 25 Apr 2006 01:44:34 PM UTC, comment #1: |
| 106 | | |
| 107 | | http://puttyssh.org/faq.html#faq-term |
| 108 | | |
| 109 | | Where does putty-256color come from ? |
| 110 | | |
| 111 | | Anyway, I think that your suggestion about adding a new section to |
| 112 | | the configuration file makes sense. |
| 113 | | Pavel Tsekov <ptsekov> |
| 114 | | Project Administrator |
| 115 | | Thu 22 Jun 2006 01:30:35 PM UTC, original submission: |
| 116 | | |
| 117 | | putty (puttyssh.org) is an xterm-compliant terminal emulator with |
| 118 | | mouse support, and has its own terminfo definition file that |
| 119 | | instructs ncurses how to correctly recognize the keys received, but |
| 120 | | in 'src/main.c' the 'if..' block does tests only on xterm, rxvt, |
| 121 | | and dtterm terminals. |
| 122 | | |
| 123 | | i used TERM=xterm-color, but when i found the terminfo file 'putty- |
| 124 | | 256color' i wanted to use it. |
| 125 | | After standard compilation everythyng was running well (home/end |
| 126 | | keys, and all others), but mc had no mouse support. |
| 127 | | |
| 128 | | actually i have corrected this problem adding the comparison: |
| 129 | | |
| 130 | | || strncmp (termvalue, "putty", 5) == 0 |
| 131 | | |
| 132 | | in the main.c file, in function init_xterm_support(), but i suggest |
| 133 | | to insert a parameter in a global option file, in wich a sysadmin |
| 134 | | could insert a line such as: |
| 135 | | |
| 136 | | [xterm-compliant] |
| 137 | | xterm* |
| 138 | | rxvt* |
| 139 | | dtterm |
| 140 | | putty* |
| 141 | | fooxterm* |
| 142 | | barxterm* |
| 143 | | ... |
| 144 | | |
| 145 | | and so on. |
| 146 | | thank you for the time spent in reading my opinions. |
| 147 | | |
| 148 | | bye from Mir (it@euro). |