Enhancements For the Console Capability
Posted: Sat Sep 15, 2012 2:38 am
I've programmed in many BASICs over the decades, almost always in Console mode.
Why? The reason is simple. It's good enough to get the information across, and
you don't spend a lot of time designing and working with forms and related
objects.
PureBasic requires that you work in ConsoleGraphic(1) mode in order to use certain
features like ConsoleLocate(). That's fine. But there are a number of features that
have not been included.
CURLIN or CURSORY -- the ability to read what line the cursor is currently on
POS() or CURSORX -- the ability to read what column the cursor is currently on
SCREENY -- the ability to read how many lines are available in the Console screen
SCREENX -- the ability to read how many columns are availabel in the Console screen
SCREEN() -- the ability to read the ASCII code of the character at an X,Y coordinate.
It would also be handy to read or modify the attributes of the character at a given
x,y coordinate, or in a given Console rectangle.
Why? The reason is simple. It's good enough to get the information across, and
you don't spend a lot of time designing and working with forms and related
objects.
PureBasic requires that you work in ConsoleGraphic(1) mode in order to use certain
features like ConsoleLocate(). That's fine. But there are a number of features that
have not been included.
CURLIN or CURSORY -- the ability to read what line the cursor is currently on
POS() or CURSORX -- the ability to read what column the cursor is currently on
SCREENY -- the ability to read how many lines are available in the Console screen
SCREENX -- the ability to read how many columns are availabel in the Console screen
SCREEN() -- the ability to read the ASCII code of the character at an X,Y coordinate.
It would also be handy to read or modify the attributes of the character at a given
x,y coordinate, or in a given Console rectangle.