jed-users mailing list

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

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


I'm trying to either detect which mode I'm in, or have some keys to switch the escape sequences sent for keyboard values.
For example, in Konsole term=LINUX, the ctrl+right key is Key_Ctrl_Right = "\E[5C";

But in bash.exe, the Windows 10 Bash Subsystem
Key_Ctrl_Right = "\e[1;5C";
I'd like to have the same .jedrc file, and either press a keystroke or ideally have this difference be auto-detectable, and appropriately settable.

I tried this and it didn't work:define keyboard1 ()
{
  unsetkey (Key_Ctrl_Right);
  Key_Ctrl_Right = "\E[5C";  setkey ("ide_skip_word", Key_Ctrl_Right);  %setkey ("ide_skip_word", "\E[5C");}

define keyboard2 ()
{
  unsetkey (Key_Ctrl_Right);
  Key_Ctrl_Right = "\e[1;5C";
  setkey ("ide_skip_word", Key_Ctrl_Right);  %setkey ("ide_skip_word", "\e[1;5C");}

setkey ("keyboard1", "\eT");
setkey ("keyboard2", "\eY");

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