View previous topic :: View next topic |
Author |
Message |
Mihawk
Joined: 03 Apr 2007 Posts: 29
|
Posted: Sun Nov 11, 2007 10:06 am Post subject: Reset text console? |
|
|
I have the problem that after a program crash my program returns to the console but I can't see anything. That means my program switched to graphics mode, crashed and the screen looks like it's frozen but I know that I'm back on the console as I can type commands and stuff. So my question is: is there some command or key combination which lets me to somehow reset the console, so I don't have to reset my ps3 after each crash, cause that happens quite often sometimes when testing and debuging ;) _________________ Ask and it will be given to you; seek and you will find; knock and the door will be opened to you. |
|
Back to top |
|
|
jonathan
Joined: 21 Sep 2007 Posts: 23 Location: Tasmania, Australia
|
Posted: Sun Nov 11, 2007 12:46 pm Post subject: |
|
|
Have you tried either Ctrl-L or (if you can still type) running 'reset'? |
|
Back to top |
|
|
jimparis
Joined: 10 Jun 2005 Posts: 1179 Location: Boston
|
Posted: Sun Nov 11, 2007 2:00 pm Post subject: |
|
|
Depends on why you can't see anything. If for example it's because you did a PS3FB_IOCTL_ON and the kernel is no longer flipping the screen buffer, you should be able to write a program that just does PS3FB_IOCTL_OFF to fix it. |
|
Back to top |
|
|
Mihawk
Joined: 03 Apr 2007 Posts: 29
|
Posted: Sun Nov 11, 2007 9:37 pm Post subject: |
|
|
jimparis, that makes sense... and works. Thanks!
jonathan, Ctrl-L and 'reset' didn't work. Thanks anyway ;) _________________ Ask and it will be given to you; seek and you will find; knock and the door will be opened to you. |
|
Back to top |
|
|
ralferoo
Joined: 03 Mar 2007 Posts: 122
|
Posted: Mon Nov 12, 2007 1:07 am Post subject: |
|
|
jimparis wrote: | Depends on why you can't see anything. If for example it's because you did a PS3FB_IOCTL_ON and the kernel is no longer flipping the screen buffer, you should be able to write a program that just does PS3FB_IOCTL_OFF to fix it. |
You might also like to use signal() to catch various error conditions (such as ^C, SEGV, etc) and reset the screen in your signal handler before exiting. This is more complicated but ensures your program can't quit and leave things in a bad state. |
|
Back to top |
|
|
|