getchar

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2024 License: MIT Imports: 1 Imported by: 0

README

Get Char

Get Char Example

The getchar package enables you to capture a single character or key input without the need for the user to press enter.

You can found an example here

Documentation

Index

Constants

View Source
const (
	Space     = 32
	CR        = 13
	Escape    = 27
	Backspace = 127
	CtrlC     = 3
	CtrlD     = 4
)

Variables

This section is empty.

Functions

func GetChar

func GetChar() (ascii uint8, arrow string, err error)

GetChar returns either an ASCII code or an arrow ("Up", "Down", "Right", "Left").

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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