getch() in Python

Discussion in 'Python' started by Jozsa Boti, Sep 16, 2003.

  1. Jozsa Boti

    Jozsa Boti Guest

    Hi!

    Is there a getch()-like function in Python that is OS independent?
    I understand that msvcrt.getch() is available only under Windows.

    thanks, Boti
     
    Jozsa Boti, Sep 16, 2003
    #1
    1. Advertising

  2. Jozsa Boti

    Muthukumaraswamy

    Joined:
    Dec 28, 2012
    Messages:
    1
    Get a Character In Python

    sys.stdin.read(1) is used to get a char in python.
     
    Muthukumaraswamy, Dec 28, 2012
    #2
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. azsx

    getch in Java

    azsx, May 3, 2006, in forum: Java
    Replies:
    5
    Views:
    9,551
  2. Matthew
    Replies:
    0
    Views:
    2,932
    Matthew
    Jun 28, 2003
  3. voidstar
    Replies:
    3
    Views:
    10,196
    Mark R Rivet
    Jul 27, 2004
  4. =?ISO-8859-1?Q?Gerhard_H=E4ring?=

    Re: getch() in Python

    =?ISO-8859-1?Q?Gerhard_H=E4ring?=, Sep 16, 2003, in forum: Python
    Replies:
    0
    Views:
    1,076
    =?ISO-8859-1?Q?Gerhard_H=E4ring?=
    Sep 16, 2003
  5. alb
    Replies:
    5
    Views:
    149
    xDog Walker
    Apr 30, 2013
Loading...

Share This Page