Re: Mapping some keys, like ctrl-[ and ctrl-]

From: Angel Ortega <angel_triptico.com>
Date: Sat, 8 Sep 2007 12:06:33 +0200
On Fri, Sep 07, 2007 at 11:38:13AM -0400, Lee Page wrote:

> I didn't have much luck with remapping anything but alpha-num characters.  
> In fact, it looks like alt and ctrl keys are synonomous.  Anyway, I 
> resorted to doing an Emacs approach, and wrote a short key-multiplexer.  
> This allows you to do C-x C-s to save, and the like.

Hi, Lee. As you say, alt and ctrl are the same. This probably has to be
reworked, but I'm afraid it wouldn't be easy.

Regarding your implementation of multiple keys ala Emacs, it's interesting.
I never thought about doing something like this. As I can see, you're using
the TUI (text user interface), and so it should only work on the curses
interfaces. I'll think about a more generic way of doing multisequence
keys.

There is an implemented interface for key sequences in mp_keyseq.mpsl, but
again it works only on text interfaces (it was mainly added for processing
ANSI sequences, but it could be adapted to work everywhere).

Thanks for your refreshing ideas,

-- 
Angel Ortega
http://www.triptico.com



-- 
To unsubscribe, send mail to mp-unsubscribe_lists.triptico.com.


Received on Sat Sep 08 2007 - 12:07:26 CEST

This archive was generated by hypermail 2.2.0 : Thu Apr 10 2008 - 08:59:26 CEST