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=0.7 required=5.0 tests=BAYES_00,LOTS_OF_MONEY, MSGID_RANDY autolearn=no 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 17:53:05 PST Path: supernews.google.com!sn-xit-02!supernews.com!news.gv.tsc.tdk.com!news.iac.net!news-out.cwix.com!newsfeed.cwix.com!cpk-news-hub1.bbnplanet.com!news.gtei.net!nntp2.deja.com!nnrp1.deja.com!not-for-mail From: Robert Dewar Newsgroups: comp.lang.ada Subject: Re: Escape Sequences in Strings Date: Sat, 13 Jan 2001 01:38:59 GMT Organization: Deja.com Message-ID: <93objj$guk$1@nnrp1.deja.com> References: <3A17B0E2@MailAndNews.com> NNTP-Posting-Host: 205.232.38.14 X-Article-Creation-Date: Sat Jan 13 01:38:59 2001 GMT X-Http-User-Agent: Mozilla/4.61 [en] (OS/2; U) X-Http-Proxy: 1.0 x56.deja.com:80 (Squid/1.1.22) for client 205.232.38.14 X-MyDeja-Info: XMYDJUIDrobert_dewar Xref: supernews.google.com comp.lang.ada:3979 Date: 2001-01-13T01:38:59+00:00 List-Id: In article , tmoran@acm.org wrote: > Ada.Text_IO.Put(ascii.esc & "[0p"); If I saw this in code, I would be unhappy. Mysterious constants have no place appearing like this. Better style is Home_Cursor constant String := Ascii.ESC & "[0p"; -- Sequence for homing cursor Ada.Text_IO.Put (Home_Cursor & "hello there!"); Note that Ada requires that the concatenation be done at compile time, so no inefficiency is involved. Note: I don;t know if this is the home cursor command, I just use this for illustrating the style. Sent via Deja.com http://www.deja.com/