scrsaver -- screen saver
Posted: Tue Mar 12, 2019 1:03 am
Hi folks,
We already have three topics on screen savers, here is one more.
I explained details in the commit message:
Any objections to make it default?
We already have three topics on screen savers, here is one more.
I explained details in the commit message:
I also included fix for screen saver by Nasarus, which was lost between r1745 and r1747.dunkaist wrote:Add scrsaver: new screen saver program.
Our default screen saver, ss, requires animations to run as its threads.
Therefore you can't set your favorite demo app as screen saver without
embedding it into ss. Vice versa, you can't run embedded animations as
standalone demos. Moreover, ss is a multi-thread app with configuration
window invoked by clicking both mouse buttons at the top right screen
corner (really?).
Scrsaver is a tiny single-thread program, configured via plain text
file, /sys/settings/system.ini. It has no window and runs a separate
executable as screen saver. This is done via primitive protocol:
* Config file specifies program to run;
* '@ss' parameter is passed to the program;
* program launches '/sys/@ss' at exit if '@ss' param is passed.
See /programs/demos/spiral for working example.
Any objections to make it default?