[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

LYNX-DEV Re:bug or "feature"? :-)

From: Hiram Lester, Jr.
Subject: LYNX-DEV Re:bug or "feature"? :-)
Date: Tue, 12 Aug 1997 10:50:36 -0500 (CDT)

On Mon, 11 Aug 1997, John E. Davis wrote:

> To be honest, about the only change that I would make would be to
> change the hard-coded "/dev/tty" with the function call `ctermid'.
> However, on both the SunOS and Linux systems that I use, ctermid
> returns /dev/tty:

Just tried it on HP-UX, and it does the same thing.  Real helpful, huh? ;)
What about ttyname?

#include <stdio.h>
#include <unistd.h>
int main ()
   fprintf (stdout, "%s\n", ttyname (fileno (stdin)));
   return 0;

   | Hiram W. Lester, Jr.               | E-Mail: address@hidden    |
   | Computer Science                   | Home page:                    |
   | Middle Tennessee State University  | |

; To UNSUBSCRIBE:  Send a mail message to address@hidden
;                  with "unsubscribe lynx-dev" (without the
;                  quotation marks) on a line by itself.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]