dot

packages and services management
Log | Files | Refs | README

commit afbdb5f89d803bd7336627ed79c54de5c947dc2d
parent eceb01a60f7f1be940318359ebc1b357435d4e5a
Author: Josuah Demangeon <mail@josuah.net>
Date:   Fri,  9 Mar 2018 19:39:11 +0100

pack/oksh

Diffstat:
Mbin/tty-theme | 32+++++++++++++++++---------------
Apack/oksh/build | 12++++++++++++
Apack/oksh/tar | 1+
Muri | 1+
4 files changed, 31 insertions(+), 15 deletions(-)

diff --git a/bin/tty-theme b/bin/tty-theme @@ -1,18 +1,20 @@ #!/bin/sh + # set the theme for the tty from a simple file format + # `vtfontcvt -h 8 -w 4 miniwi-8.bdf miniwi-8.fnt`, then it's just a `vidcontrol -f miniwi-8.fnt` away -# normal bold -# 0 8 black -# 1 9 red -# 2 A green -# 3 B orange -# 4 C blue -# 5 D magenta -# 6 E cyan -# 7 F white +# normal bold +# 0 8 black +# 1 9 red +# 2 A green +# 3 B orange +# 4 C blue +# 5 D magenta +# 6 E cyan +# 7 F white -show='0' i='0' +show="0" i="0" printf '\033[H\033[J' @@ -21,22 +23,22 @@ do if [ "$hex" ] then printf '\033]P%s%s' "$color" "$hex" - show='1' + show="1" elif [ "$color" ] then name="$color" elif [ "$show" -eq 1 ] then - printf '\033[K%3s %-20s' "$i" "$name" + i="$((i + 1))" + printf '%3s %-20s' "$i" "$name" for color in 0 1 2 3 4 5 6 7 do printf ' \033[3%sm___\033[1m___\033[m' "$color" done - printf '\n\033[K\n' + printf '\033[J\n\n' - show=0 - i="$((i + 1))" + show="0" fi [ "$1" ] && [ "$i" -ge "$1" ] && return 0 diff --git a/pack/oksh/build b/pack/oksh/build @@ -0,0 +1,12 @@ +#!/bin/sh -e + +./configure \ + --prefix="$OPT" \ + --mandir="$OPT/share/man" \ + --enable-ksh \ + --enable-sh \ + --enable-static + +mkdir -p "$OPT/bin" "$OPT/share/man/man1" + +exec "$PACK/build/make" diff --git a/pack/oksh/tar b/pack/oksh/tar @@ -0,0 +1 @@ +http://devio.us/%7Ebcallah/oksh/oksh-20180120.tar.gz diff --git a/uri b/uri @@ -54,6 +54,7 @@ http://www.3x6x.com/discography.html http://www.bottomupcs.com/global_offset_tables.xhtml http://www.destroyallsoftware.com/compendium/network-protocols http://www.mindfruit.co.uk/2012/06/relocations-relocations.html +http://www.researchgate.net/profile/Kazuhiro_Oiwa http://www.tldp.org/guides.html irc://irc.cyberia.is/2f30 irc://irc.cyberia.is/airbnb