comp.lang.ada
 help / color / mirror / Atom feed
From: "Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de>
Subject: Re: GPS 4.4.1. ADA 95: Calling ASCII codes for ESC and display row colum control
Date: Mon, 10 Jan 2011 15:19:02 +0100
Date: 2011-01-10T15:18:59+01:00	[thread overview]
Message-ID: <ydlfsvj8eftj$.yw3fvt3gxzol$.dlg@40tude.net> (raw)
In-Reply-To: 7a8136c2-07a3-4742-add5-073e87bbae0d@l24g2000vby.googlegroups.com

On Mon, 10 Jan 2011 05:44:19 -0800 (PST), Michael A wrote:

> I know this topic was disucssed in the 90's on the forum and is an old
> question, but. I am trying to control the display row,col for terminal
> output of my ADA 95 simple program. I have tried several ways but to
> no avail:
> 
> -- keep out put of a loop at line 20 column 20
> 
> put (ASCII.ESC & "[" & "20" & ";" & "20" & "H")  ;
> 
> put (ASCII.ESC&"[20;20H")  ;
> put (ada.Characters.latin_1.ESC&"20"&";"&"20H");
> 
> put (Character'val (91) & "20;20H" );
> 
> I get the literal out put on the screen " <-20;20H " but not keeping
> the output on line 20, col 20.
> 
> I do get put(ascii.bel); to ring the bell OK.

What makes you think that GPS' run-panel emulates VT100?

And, is it the GPS GUI where your output goes?

Anyway GPS is GTK-based. Presumably, it uses the GTK text buffer object
where the program standard output goes. So you should look here:

http://www.adacore.com/wp-content/files/auto_update/gtkada-docs/gtkada_rm/gtkada_rm/gtk-text_buffer.ads.html

to learn for how to control it and its view:

http://www.adacore.com/wp-content/files/auto_update/gtkada-docs/gtkada_rm/gtkada_rm/gtk-text_view.ads.html

If you mean something else, like console output, then depending on the OS
and the terminal emulator you might need different control sequences. If
you want to use the VT100 ones, you should get a VT100 emulator.

BTW, Windows' cmd.exe does not emulate VT100.

-- 
Regards,
Dmitry A. Kazakov
http://www.dmitry-kazakov.de



  reply	other threads:[~2011-01-10 14:19 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-01-10 13:44 GPS 4.4.1. ADA 95: Calling ASCII codes for ESC and display row colum control Michael A
2011-01-10 14:19 ` Dmitry A. Kazakov [this message]
2011-01-10 19:29   ` Michael A
2011-01-10 22:36     ` Yannick Duchêne (Hibou57)
2011-01-10 15:21 ` Alex Mentis
2011-01-10 19:33   ` Michael A
2011-01-11  2:00   ` Randy Brukardt
2011-01-11 15:10 ` Peter Hermann
2011-01-11 18:42   ` Ludovic Brenta
replies disabled

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