Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - a_netanel

Pages: [1]
1
I've installed VNC server on Retropie and I'm able to connect to the desktop environment. But I guess since attract mode does not use X, the attract mode "window" stays on the main screen, while the VNC client shows the desktop still.
Any ideas?

2
General / Re: Request: quiet (no prints) mode
« on: April 25, 2017, 03:37:33 PM »
Tweaked it a bit to hide cursor as well.
autostart.sh:
Code: [Select]
setterm -cursor off
stty -echo
clear
attract 2>&1 | grep -o $'\033\[2J'

runcommand-onstart.sh & runcommand.onend.sh:
Code: [Select]
printf "\033[H\033[2J"
Sorry about the spam, but I think this should be documented :)

3
General / Re: Request: quiet (no prints) mode
« on: April 25, 2017, 02:29:51 PM »
Just for sake of completion, for now I manage to quiet the output by an ugly hack:
1. change the autostart script to:
Code: [Select]
stty -echo
clear
attract 2>1 |grep -o $'\033c'

2. create runcommand-onstart and runcommand-onend scripts that contain:
Code: [Select]
printf "\033c"

4
General / Request: quiet (no prints) mode
« on: April 25, 2017, 02:02:17 PM »
I'm trying to minimize the amount of output to the console, that can be seen in the second before the game is launched.
I tried to redirect stdout to /dev/null, but this way the runcommand menu does not clear, even if i send a clear command in runcommand-onstart.sh etc.

I looked in the cpp code and saw there are only 94 lines that output to stdout (greped "cout").
I believe it could be quite easy (to someone who remembers how to program cpp, that is) to add a flag that quiets these couts.

Many thanks!

Pages: [1]