comp.lang.ada
 help / color / mirror / Atom feed
* Escape Sequences in Strings
@ 2000-11-15  0:00 Jean Cohen
  2000-11-15  0:00 ` John English
                   ` (4 more replies)
  0 siblings, 5 replies; 95+ messages in thread
From: Jean Cohen @ 2000-11-15  0:00 UTC (permalink / raw)


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.
(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?

Thanks for your replies,
Jean Cohen





^ permalink raw reply	[flat|nested] 95+ messages in thread
* RE: Escape Sequences in Strings
@ 2000-11-16  0:00 Jean Cohen
  0 siblings, 0 replies; 95+ messages in thread
From: Jean Cohen @ 2000-11-16  0:00 UTC (permalink / raw)


>===== Original Message From Marin David Condic <mcondic.nospam@acm.org> =====
>John English wrote:
>
>> Hey guys, I agree completely, but I wanted to give a *short* answer,
>> not a complete package hierarchy with all the trimmings... and I
>> said it wasn't the way to go anyway... Give us a break!
>
>Good point. Sometimes we tend to "over answer" a question, possibly leading
>a newbie to believe that Ada is just too complicated to do what they want.
>With the original question, I thought the best thing was to explain how to
>do what the questioner wanted to do - use escape codes in a string.
>Presumably, if he learns this much, Ada is now useful to him. As he moves
>along with learning the language, it will probably become clear that there
>are better ways of structuring code to manipulate the cursor. Possibly, he
>was already in the process of building such a package and just wanted to
>know how to implement the low-level features? (Even in C++, you'd isolate
>this kind of thing at a low level - or learn rather quickly that you
>*should* have! :-)
>
>Let's keep the life of a newbie comfortable and possibly just suggest that
>there *are* better ways and wait to see if they ask...

Yours and others replies were very helpful regarding my original question. 
John English answered my post just as I expected an answer to be like. The 
additional comments were nevertheless helpful as well (specifically the 
mention of the Latin1 character set and streams), since they illustrate a 
little of "The Ada Way" of doing things. So again - thank you all!

Kind regards,
Jean Cohen





^ permalink raw reply	[flat|nested] 95+ messages in thread

end of thread, other threads:[~2001-01-27  1:43 UTC | newest]

Thread overview: 95+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-11-15  0:00 Escape Sequences in Strings Jean Cohen
2000-11-15  0:00 ` John English
2000-11-15  0:00   ` Robert Dewar
2000-11-15  0:00     ` Ehud Lamm
2000-11-16  0:00       ` John English
2000-11-16  0:00         ` Marin David Condic
2000-11-16  0:00         ` Tarjei T. Jensen
2000-11-16  0:00           ` Ken Garlington
2000-11-16  0:00             ` Marin David Condic
2000-11-16  0:00             ` Keith Thompson
2000-11-15  0:00 ` Preben Randhol
2000-11-15  0:00 ` Marin David Condic
2000-11-16  0:00   ` Ada Streams usage (was Escape Sequences in Strings) Marc A. Criley
2000-11-16  0:00     ` Marin David Condic
2000-11-16  0:00       ` Ted Dennison
2000-11-16  0:00         ` Marin David Condic
2000-11-16  0:00           ` Ted Dennison
2000-11-16  0:00             ` Marin David Condic
     [not found]     ` <igh81t8b3hdrsc167do6qr0h1joa73c1jr@borpin.co.uk>
2000-11-18  0:00       ` Marin David Condic
2000-11-18  0:00         ` David Kristola
2000-11-19  0:00           ` Marin David Condic
2000-11-19  0:00             ` Marin David Condic
2000-11-20  0:00               ` Brian Orpin
2000-11-20  0:00                 ` Marin David Condic
2000-11-19  0:00         ` Ted Dennison
2000-11-19  0:00           ` Marin David Condic
2000-11-19  0:00             ` Robert Dewar
2000-11-20  0:00               ` Randy Brukardt
2000-11-21  0:00                 ` Ted Dennison
2000-11-21  0:00                   ` Randy Brukardt
2000-11-21  1:31                 ` Robert Dewar
2000-11-21  1:33                 ` Robert Dewar
2000-11-21  0:00                   ` Randy Brukardt
2000-11-22  5:00                     ` Robert Dewar
2000-11-20  0:00               ` Marin David Condic
2000-11-21  0:00                 ` Robert Dewar
2000-11-19  0:00             ` Ted Dennison
2000-11-19  0:00               ` Robert Dewar
2001-01-12 13:18 ` Escape Sequences in Strings Andrew Hately
2001-01-12 20:03   ` Keith Thompson
2001-01-18  8:29     ` Lao Xiao Hai
2001-01-18 15:22       ` Robert Dewar
2001-01-18 22:43         ` Randy Brukardt
2001-01-21 11:54         ` Dale Stanbrough
2001-01-21 22:35           ` directly accessing DOS screen memory (was: Re: Escape Sequences in Strings) Jeffrey Carter
2001-01-12 19:37 ` Escape Sequences in Strings tmoran
2001-01-13  1:38   ` Robert Dewar
2001-01-13  6:48     ` tmoran
2001-01-13 18:36       ` Robert Dewar
2001-01-16  3:30         ` Examples in Docs, was " peter_richtmyer
2001-01-16  5:42           ` Robert Dewar
2001-01-16 20:44             ` mark_lundquist
2001-01-16 22:43               ` Larry Kilgallen
2001-01-17 15:06                 ` mark_lundquist
2001-01-17  2:25               ` Robert Dewar
2001-01-17 15:28                 ` mark_lundquist
2001-01-17 16:20                 ` Brian Rogoff
2001-01-17 18:04                   ` Wayne Lydecker
2001-01-17 19:23                     ` BSCrawford
2001-01-18  0:15                       ` Jerry Petrey
2001-01-19  0:01                     ` tmoran
2001-01-18  3:44                   ` Robert Dewar
2001-01-18 16:45                     ` Brian Rogoff
2001-01-18 19:53                       ` Robert Dewar
2001-01-18 22:58                         ` Georg Bauhaus
2001-01-19 16:40                           ` Robert Dewar
2001-01-19  7:49                         ` Learning methods Anders Wirzenius
2001-01-19 18:57                         ` Examples in Docs, was Re: Escape Sequences in Strings mark_lundquist
2001-01-21 12:05                         ` Dale Stanbrough
2001-01-21 15:35                           ` Robert Dewar
2001-01-17 22:10                 ` Matthew Woodcraft
2001-01-18  3:52                   ` Robert Dewar
2001-01-16 16:06           ` Examples in Docs Robert C. Leif, Ph.D.
2001-01-16 21:29             ` mark_lundquist
2001-01-18  0:50               ` Randy Brukardt
2001-01-18 16:46                 ` mark_lundquist
2001-01-18 17:24               ` J. David Bryan
2001-01-17  2:43             ` Robert Dewar
2001-01-17 21:17               ` Robert C. Leif, Ph.D.
2001-01-16 20:01           ` Examples in Docs, was Re: Escape Sequences in Strings mark_lundquist
2001-01-17 10:59             ` Peter Richtmyer
2001-01-19 18:55               ` mark_lundquist
2001-01-20 14:24                 ` Robert Dewar
2001-01-20 14:36                   ` Preben Randhol
2001-01-20 15:00                     ` Robert Dewar
2001-01-21 11:24                       ` Preben Randhol
2001-01-22 14:47                         ` Ted Dennison
2001-01-22 20:08                           ` Preben Randhol
2001-01-22 20:14                             ` Preben Randhol
2001-01-20 19:02                   ` Stephen Leake
2001-01-20 19:50                     ` Georg Bauhaus
2001-01-21 11:35                     ` Preben Randhol
2001-01-22 23:58                   ` Mark Lundquist
2001-01-27  1:43                   ` Increasing the readability of Ada was RE: Examples in Docs Robert C. Leif, Ph.D.
  -- strict thread matches above, loose matches on Subject: below --
2000-11-16  0:00 Escape Sequences in Strings Jean Cohen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox