TextMode Editor (petDraw in BASLOAD)
Posted: Tue Dec 10, 2024 6:54 am
UPDATE: WIP complete, see actual maintained releases now at the following...
viewtopic.php?p=35499#p35499
Another 'while on the airplane' project, a little "what can do in 2 hours" challenge.
petDraw is good - its pixel-mode is hard to beat. But I still wanted a "text-mode screen-editor" program in BASLOAD - one, to show BASLOAD can do it. and two, just a few different features that I wanted beyond what petDraw had.
Basic premise is done, the program was written to (eventually) scale to whatever screen mode you end up using. A status bar at the top is a rolodex of available symbols (use [ ] or { } to cycle across those). Spacebar to doodle the current active symbol.
But the other feature is what I'm calling a "character set" mode and "display code" mode. With the eventual goal of being able export to BASIC code that contains the native character-set PRINT compatible code (that would then be mostly portable to PET and C64), or speedier TILE commands (maybe for smaller/partial text-blobs; less than full screen), or of course in a raw format compatible with BVLOAD.
WIP, some things left to do:
- save/load
- color handling (alter foreground/background)
- probably toggle the status bar from top to bottom
- change color of the active symbol, for contrast against the active-marker
- CTRL+N hotkeys to store "favorites" of symbols into groups (and save these hot key assignments)
- maybe an alphanumeric mode, so you can just start writing plain-text to make it part of the scene
EDIT: This initial "concept" version is fairly obsolete, but keeping around as a base (barebones) example for doing a full-screen editor and handling cursor movement from within BASLOAD.
viewtopic.php?p=35499#p35499
Another 'while on the airplane' project, a little "what can do in 2 hours" challenge.
petDraw is good - its pixel-mode is hard to beat. But I still wanted a "text-mode screen-editor" program in BASLOAD - one, to show BASLOAD can do it. and two, just a few different features that I wanted beyond what petDraw had.
Basic premise is done, the program was written to (eventually) scale to whatever screen mode you end up using. A status bar at the top is a rolodex of available symbols (use [ ] or { } to cycle across those). Spacebar to doodle the current active symbol.
But the other feature is what I'm calling a "character set" mode and "display code" mode. With the eventual goal of being able export to BASIC code that contains the native character-set PRINT compatible code (that would then be mostly portable to PET and C64), or speedier TILE commands (maybe for smaller/partial text-blobs; less than full screen), or of course in a raw format compatible with BVLOAD.
WIP, some things left to do:
- save/load
- color handling (alter foreground/background)
- probably toggle the status bar from top to bottom
- change color of the active symbol, for contrast against the active-marker
- CTRL+N hotkeys to store "favorites" of symbols into groups (and save these hot key assignments)
- maybe an alphanumeric mode, so you can just start writing plain-text to make it part of the scene
EDIT: This initial "concept" version is fairly obsolete, but keeping around as a base (barebones) example for doing a full-screen editor and handling cursor movement from within BASLOAD.