rc2014 press a key

Other misc things
Post Reply
apam
New member
Posts: 2
Joined: Sat Aug 03, 2019 6:32 am

rc2014 press a key

Post by apam »

Hi.. Not sure the best place to ask this, sorry if it's in the wrong area.

I'm trying to read a single keypress from STDIN, which is a serial terminal.

I just want to read a single character without waiting for enter, preferably blocking.

I tried a few different things like fgetc_cons and getk but they didn't seem to be implemented on rc2014.
User avatar
dom
Well known member
Posts: 1194
Joined: Sun Jul 15, 2007 10:01 pm

Post by dom »

For rc2014, @feilipu is the best person to ask, however I don't think he frequents this forum.

I think he's on the google rc2014 group here: https://groups.google.com/forum/#!forum/rc2014-z80

As a general-ish answer, fgetc_cons() and getk() are classic library features that aren't available in newlib which the rc2014 uses.
apam
New member
Posts: 2
Joined: Sat Aug 03, 2019 6:32 am

Post by apam »

Ok, thanks :)
Post Reply