Mail Archives: djgpp/1996/12/10/17:47:05
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.
- Raw text -