Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!sdd.hp.com!elroy.jpl.nasa.gov!ncar!gatech!udel!haven!eng.ufl.edu!gnv.ifas.ufl.edu!sjs From: sjs@gnv.ifas.ufl.edu Newsgroups: comp.lang.pascal Subject: Re: ansi question for turbo 5.0+ Message-ID: <1991Mar20.145939.83@gnv.ifas.ufl.edu> Date: 20 Mar 91 19:59:39 GMT References: <1991Mar20.161211.28435@javelin.es.com> Lines: 26 In article <1991Mar20.161211.28435@javelin.es.com>, tpehrson@javelin.es.com (Tim Clinkenpeel) writes: > 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. I do this sort of stuff in MS Pascal. You need an ANSI driver loaded on the PC, like ANSI.SYS. Then just do WRITEs to the screen, writing whatever escape sequences you want: const ESC = chr(27); write (ESC,'[',right_steps:1,'C'); { Cursor right. } write (ESC,'[',row:1,';',col:1,'f'); { Set cursor position. } +---------------------------------------------+------------------------------+ | ~~~ Sid Sachs | "Time to wake up! | | / \ ~~~ at the Mountains of Madness | Time to rise!" | | / / \ | | | / / \ Bitnet: sjs@ifasgnv | - Silver Lady, | | / \ Internet: sjs@gnv.ifas.ufl.edu | Intergalactic Touring Band | +---------------------------------------------+------------------------------+