-
Notifications
You must be signed in to change notification settings - Fork 61
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
using h code #15
Comments
Hello, the sequence for graphic line is Be sure to end your print with a You will find the list of supported code here EDIT: I just checked and the nascom Basic has no specific suffix for integer variables. All numeric variables are single precision with up to 7 decimal digits. |
Thank you for the responses I see the updated codes... but I dont get a
line ..
…On Sun, Feb 24, 2019, 23:54 Francis Piérot ***@***.***> wrote:
Hello, the sequence for graphic line is esc[#, not esc[?#.
You will find the list of supported code here
<https://github.com/fbergama/pigfx/blob/master/doc/terminal_codes.txt>
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#15 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AteoRqtVnu9PMCt8I7repuh9IBo3P_y_ks5vQ5aZgaJpZM4bOsy->
.
|
I checked and found that STR$() inserts a space before the number too, while print inserts a space beffore and after any numeric value. So to send pure numbers with no space I had to use MID$(STR$(number),2). This is rather annoying but any space will end the escape sequence. Maybe I'll fix that so it's easier to send sequences, but it could have side efffects. I did a little program to display lines of colors, in 640x480. This will show you how to send sequences to draw lines. Because of some line length limitation I had to break the drawline sequence in two lines : this is easy if you don't forget to end PRINT with a semi-colon ';'. I also end with a 70GOTO70 to avoid breaking the graphics at the end of the program. Just hit Ctrl+C to break away from the endless loop when you're tired of looking at your screen.
|
Sorry I did not see this response, just finished my build and will give a try.. also running cpm3 and BBC basic right now, lots of flexibility with BBC basic including in line assembaly.. so hoping to get some software out to test show this solution off.. |
so I ran the code and this is what I get |
Nice video, it helps to see what happens. I see the Pi starts fine with the 8x16 font (30 lines of text in 640x480). The difference is you run the test program in CP/M MBASIC, while I was using the ROM basic directly from SCMonitor. The change of mode doesn't even clear the screen, so obviously something is different in the way both BASICs send their PRINT to the terminal, or maybe it's in CP/M serial driver. My first immediate guess would be that MBASIC or CP/M interprets or intercepts the ESC code or the ESC sequences it doesn't handle. But I have to check that. Most printers of the CP/M era used various control characters so it would have seriously handicaped all softwares. I will check this as soon as possible. At worst we could use a useless-as-possible code like CHR$(255) or whatever, which probably neither CP/M nor BASIC would take the risk to intercept. Not sure it would be the greatest idea though, VT100 and related terminals also use characters in the 128+ codes for technical drawing, foreign code pages or whatever. |
let me try it on basic 4.7 not in CPM, I just used CPM so I could save it
locally, I'll also look to see if there is a known issues with escape
codes and cpm 3.. I could go back to cpm 2.2
William "Steve" Huskey
Managing Member Dreadnought Brewing LLC
…On Thu, Mar 7, 2019 at 4:44 AM Francis Piérot ***@***.***> wrote:
Nice video, it helps to see what happens.
I see the Pi starts fine with the 8x16 font (30 lines of text in 640x480).
The difference is you run the test program in CP/M MBASIC, while I was
using the ROM basic directly from SCMonitor.
The change of mode doesn't even clear the screen, so obviously something
is different in the way both BASICs send their PRINT to the terminal, or
maybe it's in CP/M serial driver. My first immediate guess would be that
MBASIC or CP/M interprets or intercepts the ESC code or the ESC sequences
it doesn't handle. But I have to check that. Most printers of the CP/M era
used various control characters so it would have seriously handicaped all
softwares.
I will check this as soon as possible.
At worst we could use a useless-as-possible code like CHR$(255) or
whatever, which probably neither CP/M nor BASIC would take the risk to
intercept. Not sure it would be the greatest idea though, VT100 and related
terminals also use characters in the 128+ codes for technical drawing,
foreign code pages or whatever.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#15 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AteoRiTY-JdgOPCmJBXyqS_8skvGowkLks5vUQmtgaJpZM4bOsy->
.
|
Basic 4.7b loaded from eeprom source and it works https://www.dropbox.com/s/a2xvuei1tv7d37o/20190307_074931.mp4?dl=0 |
9 REM switch to 640x480 |
so I am trying to figure out how to use the codes.. maybe I am in the wrong mode.. but I put in
print chr$(27)+"[?#x0;y0;x1;y1l"
and I get
x0;y0;x1;y1l as an output
The text was updated successfully, but these errors were encountered: