Ansicon looks interesting
freepascal also has functions built-in but that would need conversion of the 
code.
maybe I should forget dos/windows, it's almost dead anyhow :)

Dan.

From: [email protected]
To: [email protected]
Date: Wed, 5 Aug 2015 21:21:36 +0100
Subject: Re: [Simh] off-topic basic translator

As I am sure most of you know ANSI escapes don’t work in “modern” windows 
command shell. 
http://stackoverflow.com/questions/16755142/how-to-make-win32-console-recognize-ansi-vt100-escape-sequences
 Dave WadeG4UGM From: Simh [mailto:[email protected]] On Behalf Of 
Dan Gahlinger
Sent: 05 August 2015 20:57
To: [email protected]
Subject: Re: [Simh] off-topic basic translator Another issue I'm running into 
which should be fun, is VT escape sequences

eg:
170 PRINT ESC+"Y"+CHR$(53)+CHR$(33);\INPUT #1;"PRESS RETURN TO CONTINUE";A$

That puts the cursor at a specific place on screen,
these were built on VT-52 and VT-100 terminals with fixed screen size.
using Linux you can get ANSI support, but the screen could be a vastly 
different size,
of course, we can just make it run like normal.

the other problem is the escape sequences themselves may not work any more.
they seem to work in Linux with ANSI enabled,
will they work on Mac CLI (maybe) or DOS/Windows ? portability is important.

But, I'm not going to do a ton of work writing cursor routines for a dozen 
basic programs from the 80's.

and btw freepascal has incredible string handling for those doubters out 
there...

Dan.
_______________________________________________
Simh mailing list
[email protected]
http://mailman.trailing-edge.com/mailman/listinfo/simh                          
          
_______________________________________________
Simh mailing list
[email protected]
http://mailman.trailing-edge.com/mailman/listinfo/simh

Reply via email to