Get Shift + TAB in ncurses.

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • andmarti@gmail.com

    #1

    Get Shift + TAB in ncurses.

    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.
    --
    Andrés M.
    ---------------------------------------------
  • Thomas Bellman

    #2
    Re: Get Shift + TAB in ncurses.

    andmarti@gmail. com wrote:
    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.


    --
    Thomas Bellman, Lysator Computer Club, Linköping University, Sweden
    "Don't tell me I'm burning the candle at both ! bellman @ lysator.liu.se
    ends -- tell me where to get more wax!!" ! Make Love -- Nicht Wahr!

    Comment

    Working...