Get Shift + TAB in ncurses.

A

andmarti

Anyone can help me getting the shift + tab key combination ?
I tried with getch () but with no success.
May be using the sys.stdin ??

Please, help would be very appreciated.
 
T

Thomas Bellman

Anyone can help me getting the shift + tab key combination ?
I tried with getch () but with no success.
May be using the sys.stdin ??

It's generally not possible. Most terminals I have used send the
same character (ASCII code 9) when you press Shift-Tab as when
you press Tab. You can't differentiate between Ctrl-X and
Shift-Ctrl-X either, or between Tab and Ctrl-I.

Your specific terminal may be sending some other character
sequence when you press Shift-Tab (my Xterm sends ESC [ Z by
default), or you may be able to program it to do so, but that
will only apply to your terminal, not to anyone else's.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,774
Messages
2,569,598
Members
45,157
Latest member
MercedesE4
Top