Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
#!/usr/dt/bin/dtksh
function vi_tab
{
if [[ ${.sh.edmode} != " " && ${.sh.edchar} == "=" ]] then
.sh.edchar="/foo/bar/"
fi
}
print "Prompt: \c"
trap 'vi_tab' KEYBD
read
kill -l
HUP INT QUIT ILL TRAP ABRT EMT FPE KILL BUS SEGV SYS PIPE ALRM TERM USR1 USR2 CLD PWR WINCH URG POLL STOP TSTP CONT TTIN TTOU VTALRM PROF XCPU XFSZ WAITING LWP FREEZE THAW CANCEL LOST RTMIN RTMIN+1 RTMIN+2 RTMIN+3 RTMAX-3 RTMAX-2 RTMAX-1 RTMAX
echo "Prompt: \E[A"
x1|xterm|vs100|xterm terminal emulator (X Window System):\
:AL=\E[%dL:DC=\E[%dP:DL=\E[%dM:DO=\E[%dB:IC=\E[%d@:UP=\E[%dA:\
:al=\E[L:am:\
:bs:cd=\E[J:ce=\E[K:cl=\E[H\E[2J:cm=\E[%i%d;%dH:co#80:\
:cs=\E[%i%d;%dr:ct=\E[3k:\
:dc=\E[P:dl=\E[M:\
:im=\E[4h:ei=\E[4l:mi:\
:ho=\E[H:\
:is=\E[r\E[m\E[2J\E[H\E[?7h\E[?1;3;4;6l\E[4l:\
:rs=\E[r\E[m\E[2J\E[H\E[?7h\E[?1;3;4;6l\E[4l\E<:\
:k1=\EOP:k2=\EOQ:k3=\EOR:k4=\EOS:kb=^H:kd=\EOB:ke=\E[?1l\E>:\
:kl=\EOD:km:kn#4:kr=\EOC:ks=\E[?1h\E=:ku=\EOA:\
:li#65:md=\E[1m:me=\E[m:mr=\E[7m:ms:nd=\E[C:pt:\
:sc=\E7:rc=\E8:sf=\n:so=\E[7m:se=\E[m:sr=\EM:\
:te=\E[2J\E[?47l\E8:ti=\E7\E[?47h:\
:up=\E[A:us=\E[4m:ue=\E[m:xn:
rl -p "Please update the following path:" -d "/foo/bar/"
function vi_tab
{
if [[ "${.sh.edmode}" != "" && "${.sh.edchar}" == "=" ]] then
.sh.edchar=`echo "$LETVALUE" | sed 's/[ \t]*$//'`
fi
}
print "Enter a new path for this filename statement, press '=' to edit the old path:"
set -o vi
trap 'vi_tab' KEYBD
read NEWVALUE
result=$(rl -p "Please update the following path:" -d "/foo/bar/")
wget [URL unfurl="true"]http://mirrors.sunsite.dk/gnu/readline/readline-5.0.tar.gz[/URL]
tar xzf readline-5.0.tar.gz
cd readline-5.0
./configure
make
cd examples
make rl
cd examples
gcc -g -o rl rl.o ../libreadline.a -ltermcap
cp rl ~/bin
export PATH=$PATH:$HOME/bin