st - Simple Terminal <10kb pet

Miscellaneous tools
Post Reply
Message
Author
User avatar
technosaurus
Posts: 4853
Joined: Mon 19 May 2008, 01:24
Location: Blue Springs, MO
Contact:

st - Simple Terminal <10kb pet

#1 Post by technosaurus »

st is a simple terminal (maybe too simple) with only X11 as a dependency

hardcoded for 6x13 and 6x13B font
Attachments
st-0.0.pet
(9.19 KiB) Downloaded 490 times
Check out my [url=https://github.com/technosaurus]github repositories[/url]. I may eventually get around to updating my [url=http://bashismal.blogspot.com]blogspot[/url].

User avatar
jemimah
Posts: 4307
Joined: Wed 26 Aug 2009, 19:56
Location: Tampa, FL
Contact:

#2 Post by jemimah »

At the moment I'm including a copy of Rxvt on my USB installer, since surprisingly you can't count on most modern Linux distros having a simple terminal installed that works as expected.

Can this be linked statically so it's sure to work on every Linux with X?

big_bass
Posts: 1740
Joined: Mon 13 Aug 2007, 12:21

#3 Post by big_bass »

technosaurus

idea :idea:
maybe it could be useful as a terminal here
since you could
have it run from any folder since it doesnt need to be in the path

nice

Joe

User avatar
rcrsn51
Posts: 13096
Joined: Tue 05 Sep 2006, 13:50
Location: Stratford, Ontario

#4 Post by rcrsn51 »

Well... I did a few quick tests with st and it's really not ready for prime-time. But YMMV.

User avatar
technosaurus
Posts: 4853
Joined: Mon 19 May 2008, 01:24
Location: Blue Springs, MO
Contact:

#5 Post by technosaurus »

It is supposed to be the default terminal of stali (short for static linux), but development of stali appears to have stopped. Unfortunately st relies on a specific font existing or it fails (its name is hardcoded, but the font itself is not "linked in")... Doesn't jwm link in a failsafe font?

That is the primary barrier AFAIK, but maybe there is a font that exists on all X versions. (the one that the devs used didn't exist in puppy, so I patched it)

I don't know if using /usr/X11R7 instead of /usr should affect things but X has a lot of parameters that should be loaded at runtime or using a config file, instead many are hardcoded.

Edit: BTW I compiled a really small version of rxvt for the pup'ngo thread that also only requires libX11
Check out my [url=https://github.com/technosaurus]github repositories[/url]. I may eventually get around to updating my [url=http://bashismal.blogspot.com]blogspot[/url].

User avatar
technosaurus
Posts: 4853
Joined: Mon 19 May 2008, 01:24
Location: Blue Springs, MO
Contact:

#6 Post by technosaurus »

updated to 0.2
I modified source to use puppy fonts and hard-coded to use ash for the SHELL and st-256color for TERM (because puppy's /etc/profile clobbers any environment variables that you set for them, so you have to do workarounds to use anything other than the default)
... think of this as your light weight terminal to check for bashisms in your code

I have included my modified source as a single c file, to compile:

Code: Select all

gcc -std=c99 -Os -I/usr/X11/include -o st st.c -L/usr/X11/lib -lX11 -lutil
Attachments
st-0.2-i486.pet
(14.67 KiB) Downloaded 282 times
st.c.gz
(15.14 KiB) Downloaded 273 times
Check out my [url=https://github.com/technosaurus]github repositories[/url]. I may eventually get around to updating my [url=http://bashismal.blogspot.com]blogspot[/url].

User avatar
Flash
Official Dog Handler
Posts: 13071
Joined: Wed 04 May 2005, 16:04
Location: Arizona USA

#7 Post by Flash »

It seems to work in Racy 5.2.1.90 but all I did was enter "tree --help" (I have tree installed) to see what would happen. The window was small when I did this, and I found no way to scroll up or down. Also, the characters are a bit small and white characters on a black background are much harder for me to read than the other way around.

User avatar
technosaurus
Posts: 4853
Joined: Mon 19 May 2008, 01:24
Location: Blue Springs, MO
Contact:

#8 Post by technosaurus »

then you may like this pet of tabbed

tabbed lets you embed other programs inside and gives you a tabbed interface that to navigate between them.

it only shows the tab window on the tray (not the other embedded programs), so its a nice way to remove some clutter

the short list of apps I have found (not including the webkit-based surf browser) are in the included tabs script

its usage:
tabs rxvt urxvt xterm gmplayer ...
Attachments
tabbed-0.3-i486.pet
(8.19 KiB) Downloaded 268 times
Check out my [url=https://github.com/technosaurus]github repositories[/url]. I may eventually get around to updating my [url=http://bashismal.blogspot.com]blogspot[/url].

Post Reply