wloc 196 B

12345678910
  1. #!/cmd/rc
  2. rfork e
  3. IFS='
  4. '
  5. for(i in `{ls /dev/wsys}) {
  6. echo window -r `{sys/call -o pread 0 buf 59 -1 < $i/window >[2] /dev/null |
  7. sed 's/............//; s/^ *//; s/ */ /g'} `{cat $i/label}
  8. }