Hello, thanks Eric for your answer!
So if I understand right the rio(1) man page is slightly wrong. Not only /dev/consctl has to be open but also /dev/mouse so that really all characters be passed through. Is there any reason for this? Why isn't it just the way the man page describes? (And actually not only the man page but also FJB's Introduction to Operating Systems Abstractions, page 290 suggests the same.) Further. Is it so that in both cooked and raw mode /dev/cons always serves UTF runes? Is there any means of seeing the scancodes themselves? Or some other way of seeing when a key is pressed and released (e.g. a simple Alt key)? (I guess that providing some simple kbmap could perhaps do this [or not?] but even if, it'd be a global thing while one would desire it work on per window basis...) Thanks for any comments!! Ruda