z88dk forums

z80 Development Kit

You are not logged in.

#1 2019-08-03 07:52:26

apam
New member
Registered: 2019-08-03
Posts: 2

rc2014 press a key

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.

Offline

 

#2 2019-08-13 22:45:07

dom
Administrator
Registered: 2007-07-15
Posts: 1334
Website

Re: rc2014 press a key

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.

Offline

 

#3 2019-08-14 03:59:57

apam
New member
Registered: 2019-08-03
Posts: 2

Re: rc2014 press a key

Ok, thanks smile

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2005 Rickard Andersson