jed-users mailing list

[2004 Date Index] [2004 Thread Index] [Other years]
[Thread Prev] [Thread Next]      [Date Prev] [Date Next]

Re: Remap ^M


G. Milde wrote:
Therefore I propose a Key_Return variable in keydefs.sl that defaults
to \r but can be set to a different value if the terminal supports that.
Emulations would then bind Key_Return to newline-indent and the
minibuffer to mini_exit_minibuffer.

Jed internally sets default keys using
"^M" for Return and you cannot change that unless you:
   - get the ^M binding F
   - unsetkey("^M")
   - setkey(F, Key_Return)
You should do this for every keymap.

see: keymap.c, menus.c, ledit.c

Therefore it would be easier to define Key_Ctrl_M in keydefs.
Other ambiguous keys:
   Ctrl+J    Ctrl-Return
   Ctrl-I    Tab
   Ctrl-H    Backspace

TODO:
   * Add Key_Ctrl_M (and others) to keydefs.sl

   * site.sl should require("keydefs")

   * jed should have an option like -term=someterm that would load
     someterm.sl (from startup_hook). Here you can set Key_Ctrl_M to
     anything that the terminal returns.
     OR: Jed uses the environment variable JED_TERM=someterm
     and someterm.sl loads at the end of keydefs.sl

   * all setkey() calls should be called from a function that
     gets called at the end of site.sl. It is important that
     someterm.sl is evaluated first.

   * *all* .sl files should be modified to use keydefs.sl

   * xterm should be changed to support x_set_keysym ("^M", ...)


Marko

--------------------------
To unsubscribe send email to <jed-users-request@xxxxxxxxxxx> with
the word "unsubscribe" in the message body.
Need help? Email <jed-users-owner@xxxxxxxxxxx>.


[2004 date index] [2004 thread index]
[Thread Prev] [Thread Next]      [Date Prev] [Date Next]