• Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    BSzili
    Posts: 559 from 2012/6/8
    From: Hungary
    This is how it looks now:

    Code:

    #include <proto/dos.h>

    int poll_terminal(void)
    {
    char c = 0;

    SetMode(Input(), 1); // raw mode

    if (WaitForChar(Input(), 10))
    Read(Input(), &c, 1);

    SetMode(Input(), 0); // con mode

    return c;
    }
    This is just like television, only you can see much further.
  • »05.09.12 - 14:51
    Profile Visit Website