Re: RDS! ed in FreeBSD

new topic     » goto parent     » topic index » view thread      » older message » newer message

Rob, I've found the problem.

ed.ex uses wait_key() to get user input.
key.ex uses get_key() to get user input.

get_key() returns the right keycode. wait_key() returns something else.

When I substitute "wait_key()" for "get_key()" in key.ex, I get THREE
codes output. For instance, when get_key() receives an up arrow, it
outputs 259. When wait_key() receives an up arrow, I get 27, 79, 65, all
one after the other.

Help!!! :)

Thanks,
ck

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu