jed-users mailing list

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

Re: [jed-users] different terminal modes and key escape sequences?


On Wed, Sep 27, 2017 at 10:18 AM, Ryan Swan <ryan_swan@xxxxxxxxx> wrote:
> I'm trying to either detect which mode I'm in, or have some keys to switch
> the escape sequences sent for keyboard values.

Why detect or switch?  Just define them both all the time (unless
there are conflicts).

(If you can detect via an environment variable, the getenv function
can read environment variables.)

You might want to try setting them in the global_mode_hook() function.

For example:

define global_mode_hook ( hook_name ) {
  local_setkey ("ide_skip_word", "\E[5C");
  local_setkey ("ide_skip_word", "\e[1;5C");
}

I hope this helps.  My jed skills are rusty.

-Parke
_______________________________________________
For list information, visit <http://jedsoft.org/jed/mailinglists.html>.


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