delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/07/24/01:56:11

Date: Mon, 24 Jul 2000 08:54:25 +0300 (IDT)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: djgpp AT delorie DOT com
Subject: Re: cannot output to stdprn
In-Reply-To: <131e0802.e4919ca4@usw-ex0106-048.remarq.com>
Message-ID: <Pine.SUN.3.91.1000724085407.11435B-100000@is>
MIME-Version: 1.0
Reply-To: djgpp AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

On Sun, 23 Jul 2000, tshep wrote:

>  Whenever I enter
> fprintf(stdprn, " my string here");
> the printer does not print. All I get is a blank screen.

What type of printer do you have?

Many printers won't print anything until they see a newline, so try
this:

  fprintf(stdprn, " my string here\r\n");

(You need \r\n because stdprn is by default in binary mode.)

Some printers, typically laser printers, won't print anything unless
they see a form-feed character, so try this as well:

  fprintf(stdprn, " my string here\r\n\f");

> Could I possibly have the wrong printer as the default or
> is there some unique way of outputting to the printer in
> Djgpp

No, there's nothing unique about printer output in DJGPP.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019