Single character input without pressing 'Enter'

Discussion in 'Python' started by unni.tallman, Sep 20, 2006.

  1. unni.tallman

    unni.tallman Guest

    how can i read input from stdin, char by char, i want to get the
    character as soon as it is entered, without having to press 'Enter'
    after each character.
    unni.tallman, Sep 20, 2006
    #1
    1. Advertising

  2. At Wednesday 20/9/2006 00:40, unni.tallman wrote:

    >how can i read input from stdin, char by char, i want to get the
    >character as soon as it is entered, without having to press 'Enter'
    >after each character.


    See this thread
    <http://mail.python.org/pipermail/python-list/2006-August/355683.html>



    Gabriel Genellina
    Softlab SRL





    __________________________________________________
    Preguntá. Respondé. Descubrí.
    Todo lo que querías saber, y lo que ni imaginabas,
    está en Yahoo! Respuestas (Beta).
    ¡Probalo ya!
    http://www.yahoo.com.ar/respuestas
    Gabriel Genellina, Sep 20, 2006
    #2
    1. Advertising

  3. On 19 Sep 2006 20:40:50 -0700, "unni.tallman" <>
    declaimed the following in comp.lang.python:

    > how can i read input from stdin, char by char, i want to get the
    > character as soon as it is entered, without having to press 'Enter'
    > after each character.


    Insufficient information...

    It depends on the OS...

    On M$ Windows, check the msvcrt module... Unix variant -- probably
    mystical invocations using tty and termios modules
    --
    Wulfraed Dennis Lee Bieber KD6MOG

    HTTP://wlfraed.home.netcom.com/
    (Bestiaria Support Staff: )
    HTTP://www.bestiaria.com/
    Dennis Lee Bieber, Sep 20, 2006
    #3
  4. Fredrik Lundh, Sep 20, 2006
    #4
    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. Jerry
    Replies:
    4
    Views:
    1,150
    John Saunders
    Jul 25, 2003
  2. paul
    Replies:
    1
    Views:
    499
    Jonathan Mcdougall
    Aug 4, 2003
  3. LaBird

    Input without pressing enter?

    LaBird, Oct 16, 2003, in forum: C Programming
    Replies:
    6
    Views:
    1,165
    Joona I Palaste
    Oct 16, 2003
  4. bhutho
    Replies:
    3
    Views:
    555
    Turma 15 FCM
    Oct 28, 2011
  5. unni.tallman
    Replies:
    3
    Views:
    186
    James Edward Gray II
    Sep 20, 2006
Loading...

Share This Page