2009-10-16 06:12:14     How can I read a single character from the keyboard

Document created by Aaronwu Employee on Aug 19, 2013
Version 1Show Document
  • View in full screen mode

2009-10-16 06:12:14     How can I read a single character from the keyboard

Alexandr Sobkovych (UKRAINE)

Message: 81355   

 

How can I read a single character from the keyboard without waiting for the RETURN key?

 

How can I stop characters from being echoed on the screen as they're typed?

QuoteReplyEditDelete

 

 

2009-10-16 10:02:41     Re: How can I read a single character from the keyboard

Mike Frysinger (UNITED STATES)

Message: 81362   

 

`man termios` describes all the functionality you desire

 

there is also some examples:

http://docs.blackfin.uclinux.org/doku.php?id=uclinux-dist:serial_programming

 

otherwise i imagine googling on the topic including termios keywords should yield quick results

QuoteReplyEditDelete

 

 

2009-10-16 13:33:34     Re: How can I read a single character from the keyboard

Frank Van Hooft (CANADA)

Message: 81367   

 

I find this website very helpful for configuring the serial ports, describing the termios structures, etc.

 

http://www.easysw.com/~mike/serial/serial.html

QuoteReplyEditDelete

 

 

2009-10-16 17:29:52     Re: How can I read a single character from the keyboard

Mike Frysinger (UNITED STATES)

Message: 81370   

 

the doc page i referred to also links to that site

 

QuoteReplyEditDelete

 

 

2009-10-19 07:04:00     Re: How can I read a single character from the keyboard

Alexandr Sobkovych (UKRAINE)

Message: 81436   

 

Thanks to all for answers!

 

Now all worked fine.

Attachments

    Outcomes