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-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,e61c8636ef35379d X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-01-12 12:09:07 PST Path: supernews.google.com!sn-xit-02!supernews.com!news.gv.tsc.tdk.com!newsfeed.berkeley.edu!news-hog.berkeley.edu!ucberkeley!newshub.sdsu.edu!209.68.192.203!ragnarok.cts.com!thoth.cts.com!not-for-mail From: Keith Thompson Newsgroups: comp.lang.ada Subject: Re: Escape Sequences in Strings Date: 12 Jan 2001 12:03:59 -0800 Organization: CTSnet Internet Services Sender: kst@king.cts.com Message-ID: References: <3A17B0E2@MailAndNews.com> <3A5F0407.AA6D7526@cfmu.eurocontrol.be> X-Trace: thoth.cts.com 979329839 35167 205.163.0.22 (12 Jan 2001 20:03:59 GMT) X-Complaints-To: abuse@cts.com X-Newsreader: Gnus v5.5/Emacs 20.3 Xref: supernews.google.com comp.lang.ada:3966 Date: 2001-01-12T12:03:59-08:00 List-Id: Andrew Hately writes: > Jean Cohen wrote: [...] > > As you all certainly know it is quite easy and > > straightforward in C++ to set cursor positions, > > the format (tabulators, newlines etc.) of a string etc. by using escape > > sequences. > > IMHO Ada is easier and more straight forward. > See section A.10 of the Ada Reference manual. "Text Input-Output" > especially A.10.5 "Operations on Columns, Lines and Pages" It depends on what you're trying to do. If you want to do things like moving the cursor to a specified position on the screen, neither C++ nor Ada helps you much unless you use a library designed for the purpose (curses, ncurses, terminfo, termcap). Ada's New_Page procedure doesn't necessarily perform any specific action if you're writing to a terminal; the only thing really guaranteed is that if you're writing to a file, it writes something that will be recognized as a page break when the file is read using Ada.Text_IO. -- Keith Thompson (The_Other_Keith) kst@cts.com San Diego Supercomputer Center <*> MAKE MONEY FAST!! DON'T FEED IT!!