octave-maintainers
[Top][All Lists]
Advanced

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

Re: gui/pager problem on MacOSX


From: John W. Eaton
Subject: Re: gui/pager problem on MacOSX
Date: Fri, 11 Oct 2013 11:22:14 -0400
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.12) Gecko/20130116 Icedove/10.0.12

On 10/11/2013 11:12 AM, Michael Goffioul wrote:

The reason is that "less" reads commands directly from /dev/tty, and not
from stdin (otherwise you wouldn't be able to "pipe" to "less").

Looking at the comments in ttyin.c the less sources it appears that it
can still work even without /dev/tty by using file descriptor 2
(stderr):

 /*
  * Try /dev/tty.
  * If that doesn't work, use file descriptor 2,
  * which in Unix is usually attached to the screen,
  * but also usually lets you read from the keyboard.
  */

jwe


reply via email to

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