Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!spool.mu.edu!snorkelwacker.mit.edu!bloom-beacon!eru!hagbard!sunic!dkuug!diku!terra From: terra@diku.dk (Morten Welinder) Newsgroups: comp.lang.pascal Subject: Re: ansi question for turbo 5.0+ Message-ID: <1991Mar22.134448.1140@odin.diku.dk> Date: 22 Mar 91 13:44:48 GMT References: <1991Mar20.161211.28435@javelin.es.com> <1991Mar21.102223.8284@uwasa.fi> <1991Mar22.132957.893@odin.diku.dk> Sender: news@odin.diku.dk (Netnews System) Organization: Department of Computer Science, U of Copenhagen Lines: 36 ballerup@diku.dk (Per Goetterup) writes: >ts@uwasa.fi (Timo Salmi) writes: >=>In article <1991Mar20.161211.28435@javelin.es.com> tpehrson@javelin.sim.es.com writes: >=>>hey. it's me again. >=>Ditto :-). >=>>does turbo 5.0 and or versions higher support ansi cursor controls (beside >=>>the insanely rigid gotoxy)? i _need_ to do the ansi equivelent of ~[xC >=>>(cursor right) and clear line. >=>Your query is a slight misunderstanding of the issue, because this >=>is not really a question of Turbo Pascal actively supporting or not >=>supporting something. If you write ansi cursor controls characters >=>with the write command, ansi.sys will function in its normal way. >=>(Unless you have instructed direct screen writes by including: Uses >=>Crt). >If you need the Crt unit for other purposes, just add 'System.' to all >write and writeln that has to do with the ANSI-codes, like this: >System.Write( ... ); >This instructs the compiler to use write from the System unit instead >of the write in the Crt unit which will replace it when 'used'. >This should work in TP4, TP5, TP55 and TP6. WARNING: Don't believe it! To access standard output (ie. go through dos) when using crt, open a file with file name ''. eg: assign(output,''); rewrite(output); Morten Welinder terra@rimfaxe.diku.dk