comp.lang.ada
 help / color / mirror / Atom feed
* formatted printiung
@ 2010-12-27  0:42 Robin
  2010-12-27  1:02 ` Ludovic Brenta
  2010-12-27  9:02 ` Dmitry A. Kazakov
  0 siblings, 2 replies; 3+ messages in thread
From: Robin @ 2010-12-27  0:42 UTC (permalink / raw)


How do you align what ada prints, and print formatted output?

Thanks,
-r



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

* Re: formatted printiung
  2010-12-27  0:42 formatted printiung Robin
@ 2010-12-27  1:02 ` Ludovic Brenta
  2010-12-27  9:02 ` Dmitry A. Kazakov
  1 sibling, 0 replies; 3+ messages in thread
From: Ludovic Brenta @ 2010-12-27  1:02 UTC (permalink / raw)


Robin wrote on comp.lang.ada:
> How do you align what ada prints, and print formatted output?

Depends on what you mean by "printing"; if you mean "print as ASCII
text in a monospace font" then you simply print ASCII.TAB, ASCII.NL
and space characters where needed.  Did you have something more
elaborate in mind?

BTW, Ada does not print anything.  It is your program that does the
printing.

--
Ludovic Brenta.



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

* Re: formatted printiung
  2010-12-27  0:42 formatted printiung Robin
  2010-12-27  1:02 ` Ludovic Brenta
@ 2010-12-27  9:02 ` Dmitry A. Kazakov
  1 sibling, 0 replies; 3+ messages in thread
From: Dmitry A. Kazakov @ 2010-12-27  9:02 UTC (permalink / raw)


On Sun, 26 Dec 2010 16:42:19 -0800 (PST), Robin wrote:

> How do you align what ada prints, and print formatted output?

For fixed size text output formatting see:

   http://www.dmitry-kazakov.de/ada/strings_edit.htm

I output into a string (output line) and then send the string to the
corresponding text file.

Otherwise it depends on the graphical framework being used. E.g. under Gtk
a it can be a special cell renderer which aligns text in desired way.

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



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

end of thread, other threads:[~2010-12-27  9:02 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-12-27  0:42 formatted printiung Robin
2010-12-27  1:02 ` Ludovic Brenta
2010-12-27  9:02 ` Dmitry A. Kazakov

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