Documentation
¶
Overview ¶
Package display is a host X client of the X server running in a WasiVM. It streams the screen as the server reports changes and injects pointer and key input, so a viewer outside the guest shows and drives the desktop.
Index ¶
Constants ¶
const SocketPath = "/tmp/.X11-unix/X0"
SocketPath is the Unix socket of X display 0 in the guest.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client is an X client of one screen. It reads the screen's changed regions and injects input with the XTEST extension.
func New ¶
New starts an X client over conn, a connection to the X server's socket, and starts tracking damage on the first screen. The screen must be 24 or 32 bits deep with 32-bit little-endian pixels, as Xvfb's are.
func (*Client) Input ¶
func (c *Client) Input(in *s4wave_vm.WasiVmDisplayInput)
Input injects a viewer's pointer or key event.