comp.lang.ada
 help / color / mirror / Atom feed
* Re: Terminal Column Number (was: TEXT_IO anomality)
@ 1990-08-01  7:04 "Jonathan B. Owen"
  0 siblings, 0 replies; only message in thread
From: "Jonathan B. Owen" @ 1990-08-01  7:04 UTC (permalink / raw)


In my original posting I brought up the issue of two internal files
(STANDARD_INPUT and STANDARD_OUTPUT) accessing the same external file
(read terminal).

I agree that the implementation is in accordance to the LRM.  When
accessing STANDARD_INPUT, the STANDARD_OUTPUT internal file is not
affected in any way.  Still, I am left with the problem I mentioned
at first.  The COL of STANDARD_OUTPUT does not reflect the position
of the cursor.  The difficulty is that I have no way of setting
the COL without producing an extra, unwanted CR.  It is one thing
to maintain internal-file independence, and another not to enable
a higher level to do so...

As to a concrete example for relying on COL of STANDARD_OUTPUT,
after the user types a "LIST" command (and presses return) I make
a recursive call to a procedure for printing a certain tree structure,
each time indenting the COL by 4.  The procedure uses the current
value of COL for printing multiple lines at the specific indent level.
The first line after the user's input is printed incorrectly.

Maybe it would be sensible to enable access to the counters so that
one can implement external-file dependency above TEXT_IO.

                                             Jonathan Owen

______________________________________________________________________________
  (--)    /--)     /-(\                 Email: gdau100@bguvm (bitnet)
  \ /    /--K      | \|/\   /\/) /|-\   Snail: 55 Hovevei Zion
  _/_/o /L__)_/o \/\__/  \X/  \_/ | |_/        Tel-Aviv, 63346  ISRAEL
 (/        Jonathan B. Owen             Voice: (03) 281-422

 Point of view:  A chicken is the means by which an egg reproduces an egg.
______________________________________________________________________________

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1990-08-01  7:04 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1990-08-01  7:04 Terminal Column Number (was: TEXT_IO anomality) "Jonathan B. Owen"

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