LWN.net Logo

A tempest in a tty pot

A tempest in a tty pot

Posted Aug 11, 2009 15:24 UTC (Tue) by jonshouse (guest, #60193)
Parent article: A tempest in a tty pot

Almost all of the real world problems here could be solved if Clib/libc had more real world user functions. What about something like

if (stdio_raw(1)==0)
{
// I am in raw mode
}
else
{
//something went wrong
}

The c runtime can even track if raw is on or off, or simply reset to non raw on crashes.......

Its piss poor API for userland applications not the kernel that makes *nix a bit of a suck to code.


(Log in to post comments)

Copyright © 2013, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds