Display Console Output On Screen?


CyberAxe

Member
Joined
Nov 18, 2005
Messages
206
i'm just wondering if theres a way that you can temporarly enable it so you can see what is going on on console level on the gp2x screen for when running scripts and such so you know its working (i know you can just put in the ext cable or serialtousb utill but its not practical to run that every time and plug in teh wires and such)
 
how do you get it to work i put it in a folder on my sd card and i'm just getting error messages

Code:
 mnt/sd/GP2x/Applications/Utilities/sterm/sterm.cpp: using: command not found
/mnt/sd/GP2x/Applications/Utilities/sterm/sterm.cpp: SDL_Surface: command not fo
und
/mnt/sd/GP2x/Applications/Utilities/sterm/sterm.cpp: SDL_Joystick: command not f
ound
/mnt/sd/GP2x/Applications/Utilities/sterm/sterm.cpp: int: command not found
/mnt/sd/GP2x/Applications/Utilities/sterm/sterm.cpp: //: is a directory
/mnt/sd/GP2x/Applications/Utilities/sterm/sterm.cpp: bool: command not found
/mnt/sd/GP2x/Applications/Utilities/sterm/sterm.cpp: line 43: syntax error near
unexpected token `exit_func()'
/mnt/sd/GP2x/Applications/Utilities/sterm/sterm.cpp: line 43: `static void exit_
func()'

are you supposed to put it on the nand?
 
.cpp is the source file - look for an sterm.gpe or .gpu most likely.
 
that was the only one on the file archive the other one was an older version which doesnt work with newer firmware
 
mocca will display output from crashed programs as well, provided that you launch the program from within mocca. as a side benefit, it seems like certain things crash "properly" instead of freezing up. in any case during a crash you should end up back at the main menu. run mocca again and it will show you the output.

i haven't tried sterm but i will now.
 
If you are debugging a program, I find it handy to use freopen() to redirect stdout/stderr output to a text file. Only problem is you have to fflush it once in a while or some of it won't come out in the file.

Oh, and sync it too, because of the delayed write and yada-yada.
 
Back
Top