Comments (4)
@basxto I actually like how your mind was working with this, so I ran with your technique.
A new PR is up that should do nicely. It may take a bit to get merged in, but the work is done.
from termsaver.
Care to elaborate what this functionality is about?
from termsaver.
This was especially meant for sysmon
.
It would be handy for matrix
, but cmatrix
is already capable of that.
Background is that I’m writing a little terminal module for LED panels.
I'm very limited on pixels and that’s why I tried to get it working with only ASCII.
But I added ASCII altchars (lineart stuff) and a few characters from unicode (half blocks, lineart) by now.
I still have a few missing characters on sysmon though. (It looks the same on TTY)
Before I started translating unicode characters to altchars, sysmon looked like this:
It could be realized with just ASCII (#_## etc) or with altcodes.
Altchars work like this: \033(0m\033(B
for └
A full block could be created with inverting color \033[7m \033[27m
And before I started to tread multiple (ASCII) chars as one unknown unicode character, it looked like this:
That’s how it will look in Terminals, that do not support unicode.
EDIT: I modified my unicode translator a bit and this is how sysmon
could look with just +-|#
from termsaver.
I could imagine something like this:
pie_chart = [['○', '◔', '◑', '◕', '●'],[' ', '|', '(', 'C', 'O'],[' ', '|', '(', 'C', 'O']]
"""
Holds the unicode symbols for pie chart representation of percentage
"""
block = [[' ', '▁', '▂', '▃', '▄', '▅', '▆', '▇', '█', '█'], [' ', '\033(0s\033(B', '\033(0s\033(B', '\033(0s\033(B', '\033(0s\033(B', '\033[7m \033[27m', '\033[7m \033[27m', '\033[7m \033[27m', '\033[7m \033[27m', '\033[7m \033[27m'], [' ', '_', '_', 'm', 'm', 'm', '#', '#', '#', '#']]
"""
Holds the block unicode symbolds used to draw the charts
"""
axis_corner = ["└","\033(0m\033(B","+"]
"""
Represents the unicode symbol for the axis corner in the xy chart
"""
axis_h = ["─","\033(0q\033(B","-"]
"""
Represents the unicode symbol for the horizontal axis in the xy chart
"""
axis_v = ["│","\033(0x\033(B","|"]
from termsaver.
Related Issues (20)
- How to install a simple plugin? HOT 1
- Add a binary clock HOT 1
- Auto execute termsaver after a period of time HOT 2
- asciiartfarts - randomization. HOT 1
- command line options together don't work (-hv as opposed to -h -v) HOT 6
- Requesting new screensaver porting from javascript HOT 1
- Can't install on Ubuntu Server 21.04 on raspberry pi 4 HOT 4
- Add option to slow down scroll/typing speed HOT 1
- Add a "quit on any input" option HOT 5
- Unable to install with apt. HOT 2
- Cant install termsaver, issue with setup.py HOT 2
- Unable to install from source HOT 1
- TASK: Add Cursor Show/Hide to Exit-On-Keypress
- Modernize Plugin System
- Broken installing with pip HOT 2
- how to enable the feature pynput? HOT 1
- Colorize the clock
- asciiartfarts is offline HOT 3
- Python 3.12 raises a TypeError in matrix.py HOT 1
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 termsaver.