From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-2.9 required=5.0 tests=BAYES_00,MAILING_LIST_MULTI autolearn=unavailable autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,ddfb83d4b1ee229d,start X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2000-12-31 03:08:16 PST Path: supernews.google.com!sn-xit-02!supernews.com!216.227.56.88.MISMATCH!telocity-west!TELOCITY!fr.clara.net!heighliner.fr.clara.net!fr.usenet-edu.net!usenet-edu.net!enst!enst.fr!not-for-mail From: rasser@ddf.dk Newsgroups: comp.lang.ada Subject: Re: ada printing Date: Sun, 31 Dec 2000 11:11:44 GMT Organization: ENST, France Sender: comp.lang.ada-admin@ada.eu.org Message-ID: Reply-To: comp.lang.ada@ada.eu.org NNTP-Posting-Host: marvin.enst.fr Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" X-Trace: avanie.enst.fr 978260893 89733 137.194.161.2 (31 Dec 2000 11:08:13 GMT) X-Complaints-To: usenet@enst.fr NNTP-Posting-Date: Sun, 31 Dec 2000 11:08:13 +0000 (UTC) To: comp.lang.ada@ada.eu.org Return-Path: X-Mailer: Lotus Notes Release 5.0 (Intl) 30 March 1999 X-Priority: 3 (Normal) X-MIMETrack: Serialize by Idle on =?iso-8859-1?q?S=F8ren?= Henssel-Rasmussen/BSC/SEM(Release 5.0 (Intl)|30 March 1999) at 31-12-2000 12: 13:14, Serialize complete at 31-12-2000 12: 13:14 Errors-To: comp.lang.ada-admin@ada.eu.org X-BeenThere: comp.lang.ada@ada.eu.org X-Mailman-Version: 2.0beta5 Precedence: bulk List-Id: comp.lang.ada mail<->news gateway Errors-To: comp.lang.ada-admin@ada.eu.org X-BeenThere: comp.lang.ada@ada.eu.org Xref: supernews.google.com comp.lang.ada:3486 Date: 2000-12-31T11:11:44+00:00 This should work from for Win98, DOSbox or not. Use "LPT1" in "Open" instead of "PRN" if you like result is the same with only one printer port. with Ada.Text_IO; use Ada.Text_IO; with Ada.Characters.Latin_1; use Ada.Characters; procedure Test_Prn is Outf : File_Type; begin Open (Outf, Out_File, "PRN"); Put (Outf, "This is printed on PRN...."); Put (Outf, Latin_1.LF & Latin_1.CR); Close (Outf); end Test_Prn;