Comments (8)
The text color is defined in the txt_attr variable at line 363. It is reset with the ANSI escape sequence at line 564, you need to change that too if your application uses ANSI color sequences.
The screen is initially filled with the default color at line 110 (first byte is character, second is attribute).
The cursor color follows the attribute at the cursor position, so if you fill the screen with green on black the cursor is also green.
from propeller-vt100-terminal.
from propeller-vt100-terminal.
I have a patch that adds the baud rate settings, if you want to try it. I'm not sure to add this option, there isn't much memory left (with another keyboard map there is even less available) and the only issue is with the Z180 / RomWBW variant that defaults to 38400. It is very easy to set the speed to 115200, rebuild the binary image and flash the rom.
from propeller-vt100-terminal.
from propeller-vt100-terminal.
Hi Marco, everything went OK with my changes to the Settings screen, I can change the baudrate "live" but the color is still fixed (I can only change it recompiling), because I am incompetent with propeller machine language and I can´t figure out in your code how to pass a variable that is in Hub memory (VAR section) containing the new desired attribute (color) to the txt_attr variable in the machine code segment in the DAT section...
I looked thru some book examples but failed with RDBYTE, PAR, etc...
I'll really appreciate if you can guide me with this part so I can finish my modification and share it.
Thanks and regards, JL.
from propeller-vt100-terminal.
I can´t figure out in your code how to pass a variable that is in Hub memory (VAR section) containing the new desired attribute (color) to the txt_attr variable in the machine code segment in the DAT section...
Simply, you can't. The txt_attr variable is initialized when the terminal cog is started, then it is managed from within the cog and doesn't interact with the hub memory anymore.You can stop and restart the terminal cog to reinitialize the txt_attr value, however this also resets the terminal status so anything on screen will be out of sync. You'll need to save the cog id at vt100.spin:183 to issue the new coginit.
from propeller-vt100-terminal.
from propeller-vt100-terminal.
I finally got everything working usin the PAR register and RDBYTE. I can now change the terminal foreground and background colors at will, and baud-rate also. When I detect a change in FG or BG colors, I simply issue the spin REBOOT method, so everything gets in-sync again. The serial connection get's restarted but it's fast enough that doesn't affect the HOST system.
Thanks Marco for all your support, I'm very happy with my mod to the code; I can share it if you like.
Cheers, JL.
from propeller-vt100-terminal.
Related Issues (6)
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 propeller-vt100-terminal.