Comments (5)
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.
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.
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.
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.
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)
- IndexOutOfBoundsException thrown in Integer Pass 1 HOT 2
- Interpreter: if condition wrong evaluation HOT 5
- Interpreter: Enhance compatibility for Robins new favourite C64 One-Liner HOT 8
- BasicShell: no INPUT for numeric variable possible HOT 2
- Is PI supported ? HOT 11
- Console Support: add control codes for lower/upper case HOT 8
- BasicShell: Wrong output when PRINT with comma HOT 5
- Console: Wrong output when PRINT with comma HOT 2
- INPUT#/PRINT# problems when using for keyboard/screen HOT 1
- Loading PRG files works only with compiler HOT 6
- GUI has two different sizes HOT 10
- BasicShell: no run with linenumber HOT 5
- Error compiling: Failed to run optimizer! HOT 3
- TAB function/keyword outside of output functions is being recognized. (C64 BASIC difference) HOT 5
- Any suggestions for debugging a '?illegal quantity error in 0' error? HOT 9
- Add linenumer if there is a SYNTAX ERROR HOT 5
- C64 crashes with blue screen HOT 11
- Code with integers is slower than with real variables HOT 7
- Support keyword abbreviations HOT 4
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 basicv2.