screen restore

Jan 22, 2018 3 Replies

I expect there is a simple command for this whose name I don't know.



I've got a RPi 3 with recent Raspbian Lite installed. I'm trying to use it for a MAME box. I've got MAME4All (I think it was) installed and a collection of ROMs from archive.org.



I'm booting to console and starting mame by hand, for now, I intend to have it boot into mame later. To run mame, I had to add a few libraries that were not already installed (eg SGL). Now I can run it, and reach the front end GUI to select a ROM set.



Then the screen goes black and I can't get anything else out of it, not even alternative virtual consoles.



I think what's happening is that the GUI is trying to run another program (the emulator itself) and running into some simple error, like maybe another library I need to install. But because the screen is not in text mode, I never see the error message.



So, if this sounds plausible, what's the command I can use to restore text mode to my screen after a graphics mode program has failed?



$ mame/mame || restoreFOO



Elijah



------ remembers using some restoreFOO for recovery from X11 problems ages ago


Try 'reset'.

This generally sorts out the console display if a program crashes while running curses or doing something that has been messing about with the terminal control settings.

If the first attempt doesn't sort things out, often the 2nd or third does the trick. You could also try adding a Ctrl-C between 'reset's if the above didn't do much good.

Martin | martin at Gregorie | gregorie dot org

Pretty sure that program only resets terminal settings, not graphics mode. Useful for when you've got the alternative ("box drawing") character set enabled, but not going to do anything with a display that's pure black.

But I can give it a shot...

Elijah

------ pretty sure "reset" == "tput reset"

You could try 'stty sane'

-TV

Join the Discussion

Have something to add? Share your thoughts — no account required.

Didn't find your answer?

Ask the community — no account required