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.3 required=5.0 tests=BAYES_00,INVALID_MSGID 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 From: randhol+abuse@pvv.org (Preben Randhol) Subject: Re: Escape Sequences in Strings Date: 2000/11/15 Message-ID: #1/1 X-Deja-AN: 693851104 References: <3A17B0E2@MailAndNews.com> X-Complaints-To: usenet@itea.ntnu.no X-Trace: kopp.stud.ntnu.no 974286264 7235 129.241.83.82 (15 Nov 2000 11:04:24 GMT) Organization: Norwegian university of science and technology User-Agent: slrn/0.9.6.2 (Linux) NNTP-Posting-Date: 15 Nov 2000 11:04:24 GMT Newsgroups: comp.lang.ada Date: 2000-11-15T11:04:24+00:00 List-Id: On Wed, 15 Nov 2000 05:07:12 -0500, Jean Cohen wrote: >I'm quite new to Ada and consider a transition from C++, therefore I am >still >evaluating the benefits of the language. > >There is a minor annoyance (minor in terms of importance) which plagues me >ever since: what about ANSI escape sequences in strings? 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. Yes, though not necessarily the best solution. I recommend you use ncurses or some other library to do this. >(by the way, I like the concept of streams in C++.) > >My question is then - How is it possible to use escape sequences (or >something >functionally equivalent) in Ada 95? http://www.adapower.com/reuse/Formatted_Output.html -- Preben Randhol -- Ph.D Student -- http://www.pvv.org/~randhol -- Life is a habit