Re: [hackers] [st][PATCH] config: add Ctrl-Tab, Shift-Ctrl-Tab escapes

2019-02-15 Thread Eric Pruitt
On Sat, Feb 16, 2019 at 01:05:41AM +0100, Igor Bukanov wrote:
> + { XK_Tab,   ControlMask,"\033[1;5I", 0,0},
> + { XK_ISO_Left_Tab, ShiftMask|ControlMask,"\033[1;6I",0,0},

Are these escape sequences unique to Mintty? I wasn't able to find any
other emulators using them. I suspect Mintty is a lot less popular than
Xterm which uses "\033[27;5;9~" and "\033[27;6;9~", so I think it'd make
more sense to use Xterm's escape sequences in config.def.h.

Eric



[hackers] [st][PATCH] config: add Ctrl-Tab, Shift-Ctrl-Tab escapes

2019-02-15 Thread Igor Bukanov
Ctrl-Tab, Shift-Ctrl-Tab are common combinations to switch between tabs
or panes in applications. This adds their mapping into escape sequences
following definitions from Mintty [1].

[1] - https://github.com/mintty/mintty/wiki/Keycodes#special-keys
---
 config.def.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/config.def.h b/config.def.h
index 0e01717..410dd92 100644
--- a/config.def.h
+++ b/config.def.h
@@ -322,6 +322,8 @@ static Key key[] = {
{ XK_Right, XK_ANY_MOD, "\033[C",0,   -1},
{ XK_Right, XK_ANY_MOD, "\033OC",0,   +1},
{ XK_ISO_Left_Tab,  ShiftMask,  "\033[Z",0,0},
+   { XK_Tab,   ControlMask,"\033[1;5I", 0,0},
+   { XK_ISO_Left_Tab, ShiftMask|ControlMask,"\033[1;6I",0,0},
{ XK_Return,Mod1Mask,   "\033\r",0,0},
{ XK_Return,XK_ANY_MOD, "\r",0,0},
{ XK_Insert,ShiftMask,  "\033[4l",  -1,0},
-- 
2.20.1




[hackers] [st][PATCH] config: add Ctrl-Tab, Shift-Ctrl-Tab escapes

2019-02-15 Thread Igor Bukanov
Ctrl-Tab, Shift-Ctrl-Tab are common combinations to switch between tabs
or panes in applications. This adds their mapping into escape sequences
following definitions from Mintty [1].

[1] - https://github.com/mintty/mintty/wiki/Keycodes#special-keys
---
 config.def.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/config.def.h b/config.def.h
index 0e01717..410dd92 100644
--- a/config.def.h
+++ b/config.def.h
@@ -322,6 +322,8 @@ static Key key[] = {
{ XK_Right, XK_ANY_MOD, "\033[C",0,   -1},
{ XK_Right, XK_ANY_MOD, "\033OC",0,   +1},
{ XK_ISO_Left_Tab,  ShiftMask,  "\033[Z",0,0},
+   { XK_Tab,   ControlMask,"\033[1;5I", 0,0},
+   { XK_ISO_Left_Tab, ShiftMask|ControlMask,"\033[1;6I",0,0},
{ XK_Return,Mod1Mask,   "\033\r",0,0},
{ XK_Return,XK_ANY_MOD, "\r",0,0},
{ XK_Insert,ShiftMask,  "\033[4l",  -1,0},
-- 
2.20.1




[hackers] [st][PATCH] config: add Ctrl-Tab, Shift-Ctrl-Tab escapes

2019-02-15 Thread Igor Bukanov
Ctrl-Tab, Shift-Ctrl-Tab are common combinations to switch between tabs
or panes in applications. This adds their mapping into escape sequences
following definitions from Mintty [1].

[1] - https://github.com/mintty/mintty/wiki/Keycodes#special-keys
---
 config.def.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/config.def.h b/config.def.h
index 0e01717..410dd92 100644
--- a/config.def.h
+++ b/config.def.h
@@ -322,6 +322,8 @@ static Key key[] = {
{ XK_Right, XK_ANY_MOD, "\033[C",0,   -1},
{ XK_Right, XK_ANY_MOD, "\033OC",0,   +1},
{ XK_ISO_Left_Tab,  ShiftMask,  "\033[Z",0,0},
+   { XK_Tab,   ControlMask,"\033[1;5I", 0,0},
+   { XK_ISO_Left_Tab, ShiftMask|ControlMask,"\033[1;6I",0,0},
{ XK_Return,Mod1Mask,   "\033\r",0,0},
{ XK_Return,XK_ANY_MOD, "\r",0,0},
{ XK_Insert,ShiftMask,  "\033[4l",  -1,0},
-- 
2.20.1




[hackers] [st][PATCH] config: add Ctrl-Tab, Shift-Ctrl-Tab escapes

2019-02-15 Thread Igor Bukanov
Ctrl-Tab, Shift-Ctrl-Tab are common combinations to switch between tabs
or panes in applications. This adds their mapping into escape sequences
following definitions from Mintty [1].

[1] - https://github.com/mintty/mintty/wiki/Keycodes#special-keys
---
 config.def.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/config.def.h b/config.def.h
index 0e01717..410dd92 100644
--- a/config.def.h
+++ b/config.def.h
@@ -322,6 +322,8 @@ static Key key[] = {
{ XK_Right, XK_ANY_MOD, "\033[C",0,   -1},
{ XK_Right, XK_ANY_MOD, "\033OC",0,   +1},
{ XK_ISO_Left_Tab,  ShiftMask,  "\033[Z",0,0},
+   { XK_Tab,   ControlMask,"\033[1;5I", 0,0},
+   { XK_ISO_Left_Tab, ShiftMask|ControlMask,"\033[1;6I",0,0},
{ XK_Return,Mod1Mask,   "\033\r",0,0},
{ XK_Return,XK_ANY_MOD, "\r",0,0},
{ XK_Insert,ShiftMask,  "\033[4l",  -1,0},
-- 
2.20.1




[hackers] [st][PATCH] config: add Ctrl-Tab, Shift-Ctrl-Tab escapes

2019-02-15 Thread Igor Bukanov
Ctrl-Tab, Shift-Ctrl-Tab are common combinations to switch between tabs
or panes in applications. This adds their mapping into escape sequences
following definitions from Mintty [1].

[1] - https://github.com/mintty/mintty/wiki/Keycodes#special-keys
---
 config.def.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/config.def.h b/config.def.h
index 0e01717..410dd92 100644
--- a/config.def.h
+++ b/config.def.h
@@ -322,6 +322,8 @@ static Key key[] = {
{ XK_Right, XK_ANY_MOD, "\033[C",0,   -1},
{ XK_Right, XK_ANY_MOD, "\033OC",0,   +1},
{ XK_ISO_Left_Tab,  ShiftMask,  "\033[Z",0,0},
+   { XK_Tab,   ControlMask,"\033[1;5I", 0,0},
+   { XK_ISO_Left_Tab, ShiftMask|ControlMask,"\033[1;6I",0,0},
{ XK_Return,Mod1Mask,   "\033\r",0,0},
{ XK_Return,XK_ANY_MOD, "\r",0,0},
{ XK_Insert,ShiftMask,  "\033[4l",  -1,0},
-- 
2.20.1