pub

package
v1.3.9 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2026 License: Apache-2.0 Imports: 1 Imported by: ? 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 pub holds the config and helpers shared by the pure-Go backends (darwin, win, x11, wayland, libei).

Index

Constants

This section is empty.

Variables

View Source
var (
	// MouseSleep set the mouse default millisecond sleep time
	MouseSleep = 0
	// KeySleep set the key default millisecond sleep time
	KeySleep = 10

	// DisplayID set the screen display id
	DisplayID = -1
)

Functions

func MilliSleep

func MilliSleep(tm int)

MilliSleep sleep tm milli second

func SetDelay

func SetDelay(d ...int)

SetDelay sets KeySleep and MouseSleep to d (default 10)

func Sleep

func Sleep(tm int)

Sleep time.Sleep tm second

Types

This section is empty.

Jump to

Keyboard shortcuts

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