| www.delorie.com/archives/browse.cgi | search |
| Date: | Mon, 9 Dec 1996 09:44:45 +0200 (IST) |
| From: | Eli Zaretskii <eliz AT is DOT elta DOT co DOT il> |
| To: | John Schucker <gwynn AT globaldialog DOT com>, djgpp AT delorie DOT com, ding AT ptd DOT net |
| Subject: | Re: Bash and less questions. |
| In-Reply-To: | <Pine.SUN.3.91.961209082545.4565D-100000@is> |
| Message-ID: | <Pine.SUN.3.91.961209094114.4741A-100000@is> |
| MIME-Version: | 1.0 |
On Mon, 9 Dec 1996, I wrote:
> Replace that call to `cputs' with a call to `fputs', and you will get
> what you want.
A better way would be to just make Less use the code which is already
there, like so:
#if MSDOS_COMPILER==BORLANDC || MSDOS_COMPILER==DJGPPC
if (is_tty && any_display && !speech_friendly)
{
*ob = '\0';
cputs(obuf);
ob = obuf;
return;
}
#endif
If you define `speech_friendly' to be 1, Less will use the code which
calls `write' to write to stdout/stderr (right below the above fragment),
and `write' uses DOS I/O, exactly like `fputs' does.
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |