think tank forum

technology » werc tips/tricks

phi_'s avatar
13 years ago
r3, link
phi_
... and let the Earth be silent after ye.
this thread is really just for me to keep an archive of various mods for werc and apps for future reference. join in if you like, I suppose. :)


file: apps/blagh/app.rc

the variable $logged_user is pretty self-explanatory.

line 115 (default configuration) outputs title/header 1.

 
if(! ~ $"bptitle '') {
     echo $bptitle
     echo '========================================='
}


Change to this:

 
if(! ~ $"bptitle '') {
     echo $bptitle - $logged_user
     echo '========================================='
}
if not {
     echo durr. forgot a title. durr. - $logged_user
     echo '========================================='
}


this adds in a title (and prevents minor bugs) when the user does not supply one.


( tags: werc , blagh , plan 9 , rc )
 
13 years ago
link
arun
keep smiling !
larz, we need a tagging system.
andre's avatar
13 years ago
link
andre
So, I hear good things about the plan9 shell all the time but I've never used it. Someone sell it to me.
Carpetsmoker's avatar
13 years ago
link
Carpetsmoker
Martin
> Someone sell it to me.

Ok. My offer is $299,99, payable by credit card, paypal, or bank transfer. You get the source + a FREE precompiled binary for the system of your choosing. BUT WAIT, THERE'S MORE! If you order NOW you'll also get a FREE static compiled binary. IT DOESN'T STOP THERE! Call within 5 minutes and you'll get not just one, BUT TWO copies for the SAME PRICE of $299,99! CALL NOW!
andre's avatar
13 years ago
link
andre
http://i29.tinypic.com/245hk4w.jpg
phi_'s avatar
13 years ago
link
phi_
... and let the Earth be silent after ye.
http://doc.cat-v.org/plan_9/4th_edition/papers/rc
http://plan9.bell-labs.com/magic/man2html/1/rc
http://en.wikipedia.org/wiki/List_of_Plan_9_applications
http://swtch.com/plan9port/
lucas's avatar
13 years ago
link
lucas
i ❤ demo
> larz, we need a tagging system.

i agree. v2 has tags. but i've fallen, and i can't get up. :[