TTY programming

Hi gurus,
Need help to code some tools dealing with all the tty thingies, raw mode etc ....
Can you juss point me to some cool links related to tty programming, i've tried google but found none so far :confused:
Thanks all.

This is the best tutorial on this subject available on the web.

Many thanks man!!!