Comments (4)
It is supposed to work on the Electron, but after looking at the code I noticed that write_crtc
uses OSBYTE 151 to write to the 6845 directly at $fe00/$fe01! That's going to cause problems...
Line 4816 in 038e080
Looks like it only uses it to change the cursor shape. Presumably you can do something similar on the Electron? The Beeb has VDU 23,1 for visibility/flash so I assume the Electron lets you do at least that.
--Tom
P.S. there are probably other issues lurking too...
from basic_editor.
Thanks for that — I don't think the ULA on the Electron lets you control the cursor height: you can only hide/show or make the cursor steady/flashing, so I think the simplest alternative here is to change it to steady for overwrite and flashing for insert using VDU 23.
I'll start with that and see where it gets me, thanks — I can't see any other calls to write_crtc other than to set the cursor for insert/overwrite, so that should resolve that. I can't see where it would upset the scrolling, though, but that's step 2.
I'm likely to be back but you're starting me in the write direction!
from basic_editor.
Well, replacing all that seems to have solved the two obvious problems: the cursor is now steady for overwrite and flashing for insert and make_cursor_invisble also uses VDU 23 and it's no longer crashing when it scrolls. I'm not aware of anything else that's a problem at the moment..
I'll give it a bit more of an exercise tomorrow and see if it all seems OK. If so, I'll tidy it up and send a pull request.
from basic_editor.
All done and I've sent a pull request.
The remainder of the work was sorting out the keyboard, which works very differently on the Electron: I got more involved in OSBYTE 226 and 227 than I ever wanted to, and the Advanced User Guide for the Electron is wrong about what these do, so I should probably update the BeebWiki about it.
Thanks for your help!
from basic_editor.
Related Issues (20)
- Case-insensitive find command
- *BZ message sometimes doesn't print
- Reinstate cursor keys behaviour
- Shift+f7 with no labels makes a mess of screen HOT 1
- Remove --labels from Makefile? HOT 1
- Hangs/crashes with TUBE 6502 in MODEs other than 7 HOT 3
- Mode 2/5
- Basic Extensions / HiBasic... eg. While - Endwhile HOT 1
- get_options and poll_shift must be position-independent
- Tidy up `SAVE`/`ZSAVE`?
- Pi copro VDU driver fixes
- Editor only supports 32 rows on screen HOT 4
- `sub_ABDB`
- Lower case *be not accepted HOT 1
- Time for a new release? HOT 1
- *BZ and *BR assume PAGE=OSHWM
- Release process is rubbish HOT 1
- Try to remember some editing state when going editor->BASIC->editor round trip
- CTRL+up/down???
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from basic_editor.