[Simh] off-topic basic translator

Dan Gahlinger dgahling at hotmail.com
Wed Aug 5 16:26:43 EDT 2015


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: dave.g4ugm at gmail.com
To: simh at trailing-edge.com
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:simh-bounces at trailing-edge.com] On Behalf Of Dan Gahlinger
Sent: 05 August 2015 20:57
To: simh at trailing-edge.com
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
Simh at trailing-edge.com
http://mailman.trailing-edge.com/mailman/listinfo/simh 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.trailing-edge.com/pipermail/simh/attachments/20150805/9dd03590/attachment.html>


More information about the Simh mailing list