In the same vein, in the IDE help for peek() it says:
Code:
peek("screenheight")
Return the height in characters of the window, wherein yab runs. If you have not called clear screen yet, this peekwill return 0, regardless of the size of your terminal.
peek("screenwidth")
Return the width in characters of the window, wherein yab runs. If you have not called clear screen yet, this peekwill return 0, regardless of the size of your terminal.
Actually, it doesn't. Those peeks work just fine without the CLEAR SCREEN.
In fact, when I try to run CLEAR SCREEN I get the following error:
Code:
---Error in standard input, line 1: ncurses support was not compiled
(using yab-1.7.5.2-1-x86_gcc2.hpkg)
I can see we've quietly gotten rid of yabasic's old "graphics screen" routines (good thing too), but this one seems to have stuck around. Easy enough to simulate with
system("clear"). Perhaps just remove CLEAR SCREEN (and SCREEN) from the IDE help contents? However, that will also affect INKEY$, COLOR, PUTSCREEN and some others that require CLEAR SCREEN to some extent.
Perhaps it's time to decide what yab is for and how badly we need it to maintain yabasic compatibility. Is anyone actually using things like PRINT AT, PRINT REVERSE and so on, or is yab's niche that of the language to write GUI apps with?
EDIT: Oh boy, once I start finding obsolete references in the documentation, I don't know when to stop:
Code:
peek$("os")
This peek returns the name of the operating system, where your yab version was compiled on. This can be either "BeOS" or "ZETA". On BeOS R5 it will always be "BeOS" while on ZETA it can be both. To check whether the system is really running ZETA do: RealOS$ = upper$(system$("uname -o"))