Versions in this module Expand all Collapse all v0 v0.0.5 Apr 26, 2023 Changes in this version + const MAXMSG + const Rbouncemouse + const Rctxt + const Rcursor + const Rcursor2 + const Rerror + const Rinit + const Rlabel + const Rmoveto + const Rrddraw + const Rrdkbd + const Rrdkbd4 + const Rrdmouse + const Rrdsnarf + const Rresize + const Rtop + const Rwrdraw + const Rwrsnarf + const Tbouncemouse + const Tctxt + const Tcursor + const Tcursor2 + const Tinit + const Tlabel + const Tmax + const Tmoveto + const Trddraw + const Trdkbd + const Trdkbd4 + const Trdmouse + const Trdsnarf + const Tresize + const Ttop + const Twrdraw + const Twrsnarf + func ReadMsg(r io.Reader) ([]byte, error) + type Conn struct + func New() (*Conn, error) + func (c *Conn) BounceMouse(m *Mouse) error + func (c *Conn) Close() error + func (c *Conn) Cursor(cursor *Cursor) error + func (c *Conn) Cursor2(cursor *Cursor, cursor2 *Cursor2) error + func (c *Conn) Init(label, winsize string) error + func (c *Conn) Label(label string) error + func (c *Conn) MoveTo(p image.Point) error + func (c *Conn) RPC(tx, rx *Msg) error + func (c *Conn) ReadDraw(b []byte) (int, error) + func (c *Conn) ReadKbd() (r rune, err error) + func (c *Conn) ReadMouse() (m Mouse, resized bool, err error) + func (c *Conn) ReadSnarf(b []byte) (int, int, error) + func (c *Conn) Resize(r image.Rectangle) error + func (c *Conn) Top() error + func (c *Conn) WriteDraw(b []byte) (int, error) + func (c *Conn) WriteSnarf(snarf []byte) error + type Cursor struct + Black [32]byte + White [32]byte + type Cursor2 struct + Black [128]byte + White [128]byte + type Mouse struct + Buttons int + Msec uint32 + type Msg struct + Arrow bool + Count int + Cursor Cursor + Cursor2 Cursor2 + Data []byte + Error string + ID string + Label string + Mouse Mouse + Rect image.Rectangle + Resized bool + Rune rune + Snarf []byte + Tag uint8 + Type uint8 + Winsize string + func (m *Msg) Marshal() []byte + func (m *Msg) Size() int + func (m *Msg) String() string + func (m *Msg) Unmarshal(b []byte) error