vtnerd / motrix

Real-time terminal visualizer for the monero daemon
Other
25 stars 4 forks source link

windows screensaver? #1

Open anhdres opened 3 years ago

anhdres commented 3 years ago

Would it be possible to package this as a windows program/screensaver that started and closed its own monerod? Kind of a standalone portable program that could be used even as a promotion for Monero.

vtnerd commented 3 years ago

This was the original goal - I was thinking this could run on a laptop at the Defcon booth.

This should work under Windows with pdcurses but I have not tested it. I'm not sure about packaging it with monerod - is it that difficult to setup, or ?

vtnerd commented 3 years ago

I found an interesting screensaver like technique for Linux (and likely *BSDs), but still nothing for Windows or MacOS.

sudo openvt -s -- sudo -u USER -H ./motrix ... will launch the application in the next available virtual TTY and immediately switch to it and run motrix as USER. You can switch back to your normal TTY (frequently ctrl-alt-F7) and logout, and motrix will continue to run. The application can only be killed, and when this is done, the TTY is not cleared until explicitly requested via openat or similar.