manr: fix
[copyleftie-scripts.git] / notice
blob23a056540a693f43f303f3b3f8a3adda2c68804c
1 #!/bin/execlineb -W
2 # notice - show a message in a small 9term(1) which quits on input
4 backtick -in root { lsw -r } importas -u root root
5 backtick -in rootx { wattr w ${root} } importas -u rootx rootx
6 backtick -in x { hoc -e ${rootx}"-305" } importas -u x x
7 define y 30
8 define where "-W300x70@"${x}","${y}
9 define -s 9term "9term "${where}" hold"
11 elgetopt e
12 elgetpositionals emptyenv -P
14 redirfd -w 2 /dev/null
15 ifelse  { s6-test -v ELGETOPT_e } {
16         emptyenv -o
17         ${9term} ${@}
19         emptyenv -o
20         ${9term} echo -n ${@}