On Mon, Feb 04, 2008 at 03:14:55PM -0800, James G. Sack (jim) wrote:
I'm supposing that programs which merely stream output to stdout (and/or stderr) work ok (ssh just captures stdout & stderr via one of the popen variants). But programs that need termio/termcap (eg top) don't work without a pseudo-tty. Am I warm?
Pretty right on. Termio programs are expecting a terminal type to control the line capabilities, such as disabling input editing, and stuff like that. They either need a real terminal, or a pseudo-tty to get this capability. Basically, the library call 'isatty()' will only return 1 if there is a pty or real tty associated with the either stdin or stdout. David -- [email protected] http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-list
