typetext

package
v0.3.21 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2026 License: MIT Imports: 5 Imported by: 1 module, 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 typetext enters text in the focused window through a virtual keyboard, whatever the seat's layout can reach: the keyboard carries a keymap of its own with one key per character.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Keymap

func Keymap(text string) (keymap []byte, codes []uint32, err error)

Keymap is xkb_v1 text binding one key to each of the distinct characters of text, and those keys' evdev codes in text's order. It spells out every section: it includes nothing a client's xkb would have to find.

func Type

func Type(text string) error

Type enters text in the focused window, each character a key press and release, the compositor having taken them all when it returns.

Types

This section is empty.

Jump to

Keyboard shortcuts

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