View topic - console

console

anything that doesn't fit to other groups.

console

Postby b_tamayo » Mon Jan 26, 2004 9:22 pm

Hi everyone,

Could anyone help me on how to continuouslly poll the console and once it receives a keystroke, it sends the character to the serial port...

Thanks
bob
b_tamayo
New Member
 
Posts: 5
Joined: Fri Jan 16, 2004 4:12 am

Postby xtang » Mon Jan 26, 2004 11:47 pm

Depends on what you really want to do.
The easiest would be "ln -sfP ser1 /dev/console", everything in/out of /dev/console will then goes to /dev/ser1.
If you actually need to parse the data, or do something different, it could be another solution.
xtang
QNX Master
 
Posts: 313
Joined: Thu Jul 18, 2002 5:01 pm

Postby cdm » Tue Jan 27, 2004 12:14 am

What do you mean by console? Do you mean the standard PC text mode console or something else?
cdm
QNX Master
 
Posts: 789
Joined: Fri Jul 05, 2002 9:38 am

Postby mario » Tue Jan 27, 2004 4:08 am

why would you want to poll, yeirk ;-) Check the doc for ionotify. You should be able to figure out how to receive an event when the keyboard is pressed. Then you would read the data from the keyboard device (stdin) and write it to serial port.
mario
QNX Master
 
Posts: 4132
Joined: Sun Sep 01, 2002 1:04 am


Return to General Programming

Who is online

Users browsing this forum: No registered users and 2 guests

cron