Attract-Mode Support > General

Request: quiet (no prints) mode

(1/3) > >>

a_netanel:
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!

a_netanel:
Just for sake of completion, for now I manage to quiet the output by an ugly hack:
1. change the autostart script to:

--- Code: ---stty -echo
clear
attract 2>1 |grep -o $'\033c'
--- End code ---

2. create runcommand-onstart and runcommand-onend scripts that contain:

--- Code: ---printf "\033c"
--- End code ---

a_netanel:
Tweaked it a bit to hide cursor as well.
autostart.sh:

--- Code: ---setterm -cursor off
stty -echo
clear
attract 2>&1 | grep -o $'\033\[2J'
--- End code ---

runcommand-onstart.sh & runcommand.onend.sh:

--- Code: ---printf "\033[H\033[2J"
--- End code ---

Sorry about the spam, but I think this should be documented :)

progets:
It's not spam and it should be documented. Great info.

d4NY0:
Excellent tweak. Thank you.

But I got one problem. I start a game and push a button to configure emulator options. When I choose the "Launch" option, the blue runcommand background stays visible on both sides of my widescreen display while playing Dreamcast.

Any idea?

Edit: This happens only using Reicast (Dreamcast).

Navigation

[0] Message Index

[#] Next page

Go to full version