x11

package
v0.3.21 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 12, 2026 License: MIT Imports: 11 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package x11 is a minimal X11 client for xkb.SetupX11: a connection to an X server over its Unix socket, authenticated from the Xauthority file, that carries requests with one reply each. It exists so that reading a keymap from an X server needs no C library and no X client library.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Conn

type Conn struct {
	// contains filtered or unexported fields
}

Conn is a connection to an X server. Safe for concurrent use.

func Dial

func Dial(display string, getenv func(string) string) (*Conn, error)

Dial connects to a display such as ":0", or to $DISPLAY when display is empty. getenv reads DISPLAY, XAUTHORITY and HOME.

func (*Conn) Close

func (c *Conn) Close() error

Close closes the connection.

func (*Conn) RoundTrip

func (c *Conn) RoundTrip(request []byte) ([]byte, error)

RoundTrip sends one request that has a reply and returns the reply. Events that arrive meanwhile are dropped.

type Error

type Error struct {
	Code        byte
	Sequence    uint16
	BadValue    uint32
	MinorOpcode uint16
	MajorOpcode byte
}

Error is an X protocol error.

func (*Error) Error

func (e *Error) Error() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL