Date: Mon, 9 Dec 1996 09:44:45 +0200 (IST) From: Eli Zaretskii To: John Schucker , djgpp AT delorie DOT com, ding AT ptd DOT net Subject: Re: Bash and less questions. In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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.