rio(4) says:

wctl may be read. When read, it returns the location of the window as
four decimal integers formatted in the usual 12–character style: upper
left x and y, lower right x and y. Following these numbers are strings
describing the window's state: hidden  or visible; current or
notcurrent. A subsequent read will block until the window changes
size, location, or state.

I'm new to Plan 9, but isn't:

term% read /mnt/wsys/wctl

Supposed to just print the first line?, instead, it prints:

read: error reading /mnt/wsys/wctl: buffer too small

Several guys from #plan9 in Freenode told me that that was happening
because of a missing newline.

olegfink told me how to work around this, with:
dd -count 1 -quiet 1 -if /mnt/wsys/wctl

But, is the current behavior correct? Or is it erroneous?

Greetings.

Reply via email to