Code Monkey home page Code Monkey logo

Comments (4)

tom-seddon avatar tom-seddon commented on May 25, 2024

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...

write_crtc:

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.

mincebert avatar mincebert commented on May 25, 2024

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.

mincebert avatar mincebert commented on May 25, 2024

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.

mincebert avatar mincebert commented on May 25, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.