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

From: Lee Page <lrpage_mindspring.com>
Date: Sun, 09 Sep 2007 11:12:42 -0400
Yes, I don't see ever using the X interface.  The curses interface is 
fast when working on machines in other countries, and you never have to 
worry about how compatible your X server is.  Though, you do have 
certain terminal anomalies to worry about.

Is there a way to genericize the tui interface so that one interface 
would work for both? 

Lee

Angel Ortega wrote:
> 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,
>
>   



-- 
To unsubscribe, send mail to mp-unsubscribe_lists.triptico.com.
Received on Sun Sep 09 2007 - 17:43:00 CEST

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