On 2016-01-14 02:14:37 -0800, Jeffery Small wrote: > I'm having an odd problem with mutt running on a new system. I posted > to the mutt users list but got only one reply which did not work. I'm > wondering if this might be a bug in mutt. Here is slightly modified version > of my original post which clarifies a few things. > > ------------------------------------------------------------------------- > OS: Xubuntu 15.10 > mutt: 1.5.23 [Standard debian package] > > I have been running mutt on a Solaris system for years. I am now > transitioning to a Ubuntu machine. I am using the same Sun Type 6 keyboard > on both machines, however, on the new system there are some escape > sequences issued by keys that include a semicolon. This did not occur on > the Sun system. Here is an example: > > Keypad 5 Key: ^[[20;2~ > > In the .muttrc file, these sequences cannot be unquoted so I have entries > like: > > bind generic "<esc>[20;2~" select-entry > bind attach "<esc>[20;2~" view-attach > > However, none of the bindings or macros that have a ";" in them are working > when mutt runs.
I have no such problem. For instance, I have: bind index,pager "\e[1;3A" previous-unread so that I can type Meta-Up to trigger this function. > Outside of mutt, on the command line I can type ^V and the key and see that > it is definitely issuing the proper string. No, this does not guarantee to give the same string because Mutt runs in app mode, and escape sequences can be different in this mode. You can check with "tack". In "tack", type n f n then try your keys. For instance, on the commande line (or in cooked mode), the left arrow yields ^[[D, but in app mode (e.g. in tack), it yields ^[OD. > All key assignments without a ';' in them work file and all that > include a ';' fail. You can try to type the individual keys like Esc [ 2 0 ; 2 ~ to see if these key assignments actually work. If they work, then this is because the special key does not give the sequence you expect. -- Vincent Lefèvre <[email protected]> - Web: <https://www.vinc17.net/> 100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/> Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)
