Closed hackerb9 closed 2 years ago
Yes, that's it! I couldn't remember the difference but yeah, something like that may harmonize the code.
On Wed, Jul 27, 2022 at 4:28 PM hackerb9 @.***> wrote:
The Tandy computers use PRINT@ while the NEC computers use LOCATE. However, both of them understand VT52 style escape sequences https://github.com/hackerb9/Tandy-Terminfo#table-of-escape-sequences to position the cursor. It's a little more complicated but is something like:
PRINT CHR$(27) + "Y" + CHR$(32+row) + CHR$(32+column)
— Reply to this email directly, view it on GitHub https://github.com/bgri/m100LE/issues/11, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADLJIIZBCCKXYGU6EENAZBTVWGZX7ANCNFSM543GPTEQ . You are receiving this because you are subscribed to this thread.Message ID: @.***>
According to https://www.web8201.net/xcompat.asp, M100LE should use the following subroutine:
50000 PRINTCHR$(27)"Y"CHR$(32+Y)CHR$(32+X);:RETURN
Usage:
100 X=5:Y=2:GOSUB50000:PRINT"Isn't that simple?"
I suggest using variable names less likely to collide in the future. Perhaps PX and PY?
Yep, that looks like it'll do the trick. And yeah, I'm going to have to do a full walkthrough of this code again. It's been too long since I really 'knew' it... life getting in the way.
On Sat, Aug 6, 2022 at 10:30 PM hackerb9 @.***> wrote:
According to https://www.web8201.net/xcompat.asp, M100LE should use the following subroutine:
50000 PRINTCHR$(27)"Y"CHR$(32+Y)CHR$(32+X);:RETURN
Usage:
100 X=5:Y=2:GOSUB50000:PRINT"Isn't that simple?"
I suggest using variable names less likely to collide in the future. Perhaps PX and PY?
— Reply to this email directly, view it on GitHub https://github.com/bgri/m100LE/issues/11#issuecomment-1207329145, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADLJII4P56FEI3UGY5MKZSLVX43WJANCNFSM543GPTEQ . You are receiving this because you commented.Message ID: @.***>
Marked as enhancement as it'll ease cross-coding to NEC and other m100 siblings.
The Tandy computers use
PRINT@
while the NEC computers useLOCATE
. However, both of them understand VT52 style escape sequences to position the cursor. It's a little more complicated but is something like: