Git Product home page Git Product logo

Comments (5)

EgonOlsen71 avatar EgonOlsen71 commented on August 11, 2024

You should be able to use placeholders for those in the text file. Either by using

{shift-space} {left} and {up}

or by using the codes directly like so:

{160} {157} {145}

from basicv2.

EgonOlsen71 avatar EgonOlsen71 commented on August 11, 2024

Regarding the other two parts of the issue:

Console support: Should be able to handle SHIFT+SPACE now

BasicShell: Control codes can't work in this one, because it's a Java text area in disguise and not a proper C64 console at all.

from basicv2.

viteisele avatar viteisele commented on August 11, 2024

Test console with the program:
the trick is not working: when there is no inut (return without any inut is pressed), then a PET or C64 reads a SHIFT+SPACE from screen. But with console support it seems that A$ is empty in this case and there is a illegal quantity error in line 20.

Regarding BasicShell:
I must admit that I don't know the text area component, but I believe you that the handling different code tables is terrible. Is changing the position in this component really so difficult ...

from basicv2.

EgonOlsen71 avatar EgonOlsen71 commented on August 11, 2024

The SHIFT-SPACE hack can't work in the console, because it's just an output device. Input is read from the keyboard, not like on the C64 from the screen. So "preloading" the input value won't work.

About the text area: It's meant to be used as a compontent for the user to type/edit some text. Just like a text area on a HTML page. The fact that the shell uses it for both, input and output is already stretching it beyond what it's supposed to do. You can set the cursor programmatically, it just doesn't work in the way it's supposed to to emulate control codes. That's why CLEAR/HOME works, but HOME doesn't, for example.

from basicv2.

viteisele avatar viteisele commented on August 11, 2024

Frankly spoken I was surpised that the message came so fast, that the problem with SHIFT+SPACE is fixed. I assumed more effort and my assumption was correct.

The SHIFT+SPACE has minor priority, but the cursor movement would be nice.
Perhaps you will have a good idea after you made your last integer optimization ;-)

from basicv2.

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.