Rainer Stratmann wrote:

in order to do it's magic, CRT must control the terminal.

Are there alternative ways to write something on the screen and to clear the screen?
For example with unit system?

In the general case, that's going to be terminal-specific. If you only want stdout (and/or stderr) output you'd need to know what escape sequence to sent to the terminal (possibly with reference to termcap/terminfo- I don't know whether there are libraries to handle this) but if you wanted full control like you get with the FP IDE I think you'd be using the old TurboPower stuff.

In extremis, if you're already invoking an external program and want to clear output after it runs, and if you know that you're running on a unix, you could simply invoke the clear program.

Going back to your original question, I see no reason why you couldn't open and parse e.g. /proc/partitions as an ordinary text file.

--
Mark Morgan Lloyd
markMLl .AT. telemetry.co .DOT. uk

[Opinions above are the author's, not those of his employers or colleagues]
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply via email to