jehanne/usr/glenda/cmd/rc/screensize
Giacomo Tesio 38aca7a581 first usable version of kernel and commands
After an year of hard work, this is a first "usable" version of Jehanne.
2016-11-26 03:49:29 +01:00

10 lines
145 B
Bash
Executable File

#!/cmd/rc
scr=(`{cat /dev/draw/new >[2]/dev/null || status=''})
wid=$scr(11)
ht=$scr(12)
if(test $wid -le 1024)
echo small
if not
echo normal