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=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,3ecaaa0743f120b8 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news4.google.com!newshub.sdsu.edu!newshosting.com!nx02.iad01.newshosting.com!newsfeed.icl.net!newsfeed.fjserv.net!feed.news.tiscali.de!newsfeed.vmunix.org!npeer.de.kpn-eurorings.net!newsfeed.arcor.de!news.arcor.de!not-for-mail Date: Mon, 13 Jun 2005 14:12:57 +0200 From: Georg Bauhaus Organization: future apps GmbH User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.8) Gecko/20050513 Debian/1.7.8-1 X-Accept-Language: en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Unwanted newline References: <1118653872.708684.57360@g14g2000cwa.googlegroups.com> In-Reply-To: <1118653872.708684.57360@g14g2000cwa.googlegroups.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Message-ID: <42ad7848$0$27776$9b4e6d93@newsread2.arcor-online.net> NNTP-Posting-Date: 13 Jun 2005 14:12:56 MEST NNTP-Posting-Host: 18d302c3.newsread2.arcor-online.net X-Trace: DXC=094UeVCF0F2>UUng9_FXZ=3>:=P9Ihe`B8@Z?dZ]MOid5 X-Complaints-To: abuse@arcor.de Xref: g2news1.google.com comp.lang.ada:11318 Date: 2005-06-13T14:12:56+02:00 List-Id: rm-throwaway4@gunlab.com.ru wrote: > begin > > PUT("X"); > > end test; ... > > Apparently Text_Io places newline when program exits even if I did not > ask for it. How to output ONLY "X" in Ada, without newline? Ada's Text_IO is a bit more "sophisticated" than C's stdio. Try using streams instead: declare bare_out: constant Stream_Access := Stream(Text_IO.Current_Output); begin Character'write(bare_out, 'X'); end; -- Georg