Comments (5)
I could get around the first problem by restoring the default signal handler before spawning termsaver
. Can you handle the second issue?
from termsaver.
The clearing of the screen was a default behavior to "start the terminal over"... I can see 2 easy way outs here (both require coding though):
- add an option to avoid clearing the terminal on exit (this might leave the dirt from the screensaver work though, I think this is less elegant)
- Add hooks to termsaver, to allow you to extend how you want it to start/finish (eg. call another script, etc), then it's your choice on what you want to do with it.
Any interest in contributing to the code? Otherwise I will add this to the bucket list :-)
from termsaver.
I think it would be great to use an alternative like curses, so that there are no incremental prints and user is in his context when he quits. For the time being I chose vlock
which keeps the screen clean.
Any interest in contributing to the code? Otherwise I will add this to the bucket list :-)
I would be glad to do so but am on a constant time crunch myself due to around 7 live projects.
from termsaver.
yeah, curses is very good, I just wanted to keep it simple with stdout, which worked just fine but no doubt floods the terminal screen... Switching to curses is a bit of redesign, but something to consider depending on the screensaver (I actually haven't seen much need for it, apart from making Matrix flow downward instead of upward, lol).
Thanks anyway. Will leave this open and when I can work on it, will add the hooks functionality, might help others in doing more stuff with this as well.
from termsaver.
And I almost missed it, nnn
uses ncurses too. Though it's in C you may be able to take some cues from the initcurses()
and existcurses()
functions.
from termsaver.
Related Issues (20)
- Add a binary clock HOT 1
- Add ASCII only mode HOT 4
- 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
- pynput requires X? Any other options? 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.