WSYS

NAME
SYNOPSIS
DESCRIPTION
FILES
BUGS
SEE ALSO

NAME

wsys − hosted window system

SYNOPSIS

wsys [ -d ] [ -a address ]

mount -b address /dev [ spec ]

wctl=‘{wctl [ -c cmd ] wsys }

DESCRIPTION

The wsys program serves a connection to a 9P file system providing an interface to a non-Plan 9 window system.

After a mount of address (which defaults to /tmp/ns.$USER.$DISPLAY/wsys if the flag -a is not used) a new window is created and access is given to a file system similar to the union of rio(4) and draw(3). If the -d option is given 9P debug information will be sent to stderr.

Wsys windows can be managed by the corresponding window manager in the host system or using the 9P file system. The files in the draw directory are equivalent to the files served by draw(3) , with the particularity that reading the draw/new file will associate the new client to the corresponding window, whose file system is then presented in draw/n/window. The files in the root and wsys/n directories act like their rio(4) counterparts. However, wsys does not provide any text editing capabilities and writting to the cons file is not allowed. Writes to the file consctl are ignored.

If spec is equal to / a new window will not be created, and the mounted file system will only contain the directories draw and wsys¸ as well as snarf and kill files. When open for reading, the kill file returns the pid given in the attach spec of a window when that window is requested for deletion, instead of deleting it. A second attemp will always delete the window.

The wctl rc script, when launched from Plan 9, posts a wctl service analogous to that one of rio(1) , which uses wsys as its window system. It can be used in conjuction with wsys(4) to facilitate the usage of the window command (see rio(1) ) and correctly finalize processes when windows are deleted (using the kill file). The flag -c can be used to set a default command, instead of rio -i window.

FILES

/mnt/wsys

mount point for wsys(4)

BUGS

When reading from the kill file, if the user requests to close a window or the program running in a window finishes, the window may stay on screen. Successive attempts of closing the window will succeed.

There should be OS X and Windows versions of wsys.

SEE ALSO

draw(3). rio(4)