Gp2x Terminal Emulator Released


Ravnos posted on Dec 6 2005 at 03:36 PM said:
PSyMastR posted on Dec 6 2005 at 01:29 PM said:
1 question, when i typed in help to see a list of commands this thing supported it scrolld by too fast. what was the option to have it go page by page?

more
so... "help -more"? thanks.
Ive only used function -m but that didn't work.
 
Last edited by a moderator:
jochang: YOU ARE GOD :D

PSyMastR: command | more

you have to pipe it(the |) to more

edit: now all we can have console games. GNU Chess anyone?
 
PSyMastR posted on Dec 6 2005 at 09:42 PM said:
Ravnos posted on Dec 6 2005 at 03:36 PM said:
PSyMastR posted on Dec 6 2005 at 01:29 PM said:
1 question, when i typed in help to see a list of commands this thing supported it scrolld by too fast. what was the option to have it go page by page?

more
so... "help -more"? thanks.
Ive only used function -m but that didn't work.

help | more

You can also use help | less, this should let you scroll both ways.


Thanks for this jochang... I've been writing shell scripts to dump dir listings to check out the filesystem. :) And yes they seem to have left in an awful lot of networking stuff and other crap.
 
Last edited by a moderator:
Morwynd posted on Dec 7 2005 at 12:00 AM said:
You can also use help | less, this should let you scroll both ways.

there is not "less" on the gp2sx :p
 
Last edited by a moderator:
o_O! I forgot about piping commands! How stupid of me.

EDIT:
I tried dumping all the files from nand to the sd, but none would copy over :(
Code:
#/bin/sh
cd /
cp -f /bin/* /mnt/sd/nix/bin/
cp -f /etc/* /mnt/sd/nix/etc/
cp -f /lib/* /mnt/sd/nix/lib/
cp -f /proc/* /mnt/sd/nix/proc/
cp -f /sbin/* /mnt/sd/nix/sbin/
cp -f /usr/* /mnt/sd/nix/usr/
cp -f /dev/* /mnt/sd/nix/dev/
cp -f /home/* /mnt/sd/nix/home/
cp -f /root/* /mnt/sd/nix/root/
cp -f /tmp/* /mnt/sd/nix/tmp/
cp -f /var/* /mnt/sd/nix/var/
cd /usr/gp2x
./gp2xmenu

That was my file... I also tried *.*, but with no sucess.
 
Cool. This will be handy for running my gdb build on the GP2X. I couldn't get it cross debugging so I've been writing scripts on the PC, sending them to the GP2X and piping the output somewhere!

Mark
 
PSyMastR posted on Dec 7 2005 at 04:17 AM said:
o_O! I forgot about piping commands! How stupid of me.

EDIT:
I tried dumping all the files from nand to the sd, but none would copy over :(

I think you should add -R (for Recursive)
 
Last edited by a moderator:
Oh gods, this is fantastic. I can't wait to get home and play with this.

Two words: NetHack Port!
 
if you install everything on the nand which is needed (i dont think its installed yet) you should be able to do this.
 
sterm just gives a black screen here. Are you sure, I don't need some other file(s)?

Thanks!

EDIT: It worked, after I installed the SDL libs.
 
Is there a way to execute a command with this via shell script, like:

Code:
#!/bin/sh
# start python, but through STerm
/mnt/sd/utils/terminal.gpu -c /mnt/sd/python/python

cd /usr/gp2x
exec /usr/gp2x/gp2xmenu

This would make it easy to launch the python shell via utilities.
 
so, has anyone checked out the init levels? Is there any level that could be reduced by for example removing some of the networking demons that are being run?
 
Is Sterm functional enough to use vi? I find it very tedious to use but maybe I just don't know how to use vi properly.
 
Back
Top