Hello guys,
I've attached a working Termios binding to this message. Just run valac
--pkg termios and you should be able to use the Termios namespace. Below
is an example:
using Termios;
| class Test {
| public static void main(string[] args) {
| Termios.Termios a;
|
| a.getattr(0);
| a.oflag |= OFlag.ONLCR;
| a.setispeed(Speed.B38400);
| a.cc[VKILL] = 'a';
| a.setattr(0, AttrType.NOW);
|
| Termios.Termios.flush(0, FlushType.IFLUSH);
| }
| }
I'm not so happy with the namespace and the class having the same name,
but ideally we should introduce a `POSIX' namespace, which should
contain all POSIX (not ISO C) stuff.
Have fun!
--
Ed Schouten <ed 80386 nl>
WWW: http://80386.nl/
Attachment:
termios.vapi
Description: Text document
Attachment:
pgpdxjRylVrqr.pgp
Description: PGP signature