[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Bug-readline] send tgetstr("mm") at init to non-terminal stdout ?
From: |
Chet Ramey |
Subject: |
Re: [Bug-readline] send tgetstr("mm") at init to non-terminal stdout ? |
Date: |
Thu, 14 May 2009 13:54:25 -0400 |
User-agent: |
Thunderbird 2.0.0.21 (Macintosh/20090302) |
Harald Koenig wrote:
> Hi,
>
> readline seems to output tgetstr("mm") even if stdout is not a terminal
> (e.g. pipe/backticks/...).
> IMHO this ESC sequence should only be output to terminal.
Readline never checks (and has never checked) whether or not it is
running on a terminal. That's the calling application's job. Readline
assumes that its output is connected to a terminal-like device.
Chet
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
Chet Ramey, ITS, CWRU address@hidden http://cnswww.cns.cwru.edu/~chet/