screen

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DisableAltBuffer added in v0.1.0

func DisableAltBuffer() string

DisableAltBuffer disables the alternate buffer

func EnableAltBuffer added in v0.1.0

func EnableAltBuffer() string

EnableAltBuffer Enables the alternate buffer for more information on what the alternative buffer is and why you would need it read here: https://jameshfisher.com/2017/12/04/how-less-works/

func RestoreScreen added in v0.1.0

func RestoreScreen() string

RestoreScreen restores the screen with the contents of the last saved screen

func SaveScreen added in v0.1.0

func SaveScreen() string

SaveScreen saves the contents of the screen

func Set16Color640x200 added in v0.1.0

func Set16Color640x200() string

Set16Color640x200 sets the screen to 640 x 200 color (16-color graphics)

func Set16Color640x350 added in v0.1.0

func Set16Color640x350() string

Set16Color640x350 sets the screen to 640 x 350 color (16-color graphics)

func Set16Color640x480 added in v0.1.0

func Set16Color640x480() string

Set16Color640x480 sets the screen to 640 x 480 color (16-color graphics)

func Set256Color320x200 added in v0.1.0

func Set256Color320x200() string

Set256Color320x200 sets the screen to 320 x 200 color (256-color graphics)

func Set320x200Color added in v0.1.0

func Set320x200Color() string

Set320x200Color sets the screen to 320 x 200 color (graphics)

func Set320x200Mono added in v0.1.0

func Set320x200Mono() string

Set320x200Mono sets the screen to 320 x 200 monochrome (graphics)

func Set40x25Color added in v0.1.0

func Set40x25Color() string

Set40x25Color sets the screen to 40 x 25 color (text)

func Set40x25Mono added in v0.1.0

func Set40x25Mono() string

Set40x25Mono sets the screen to 40 x 25 monochrome (text)

func Set4Color320x200 added in v0.1.0

func Set4Color320x200() string

Set4Color320x200 sets the screen to 320 x 200 4-color (graphics)

func Set600x200Mono added in v0.1.0

func Set600x200Mono() string

Set600x200Mono sets the screen to 640 x 200 monochrome (graphics)

func Set640x350Mono added in v0.1.0

func Set640x350Mono() string

Set640x350Mono sets the screen to 640 x 350 monochrome (2-color graphics)

func Set640x480mono added in v0.1.0

func Set640x480mono() string

Set640x480mono sets the screen to 640 x 480 monochrome (2-color graphics)

func Set80x25Color added in v0.1.0

func Set80x25Color() string

Set80x25Color sets the screen to 80 x 25 color (text)

func Set80x25Mono added in v0.1.0

func Set80x25Mono() string

Set80x25Mono sets the screen to 80 x 25 monochrome (text)

func SetLineWrapping added in v0.1.0

func SetLineWrapping() string

SetLineWrapping Enables line wrapping

func Unset16Color640x200 added in v0.1.0

func Unset16Color640x200() string

Unset16Color640x200 unsets the screen to 640 x 200 color (16-color graphics)

func Unset16Color640x350 added in v0.1.0

func Unset16Color640x350() string

Unset16Color640x350 unsets the screen to 640 x 350 color (16-color graphics)

func Unset16Color640x480 added in v0.1.0

func Unset16Color640x480() string

Unset16Color640x480 unsets the screen to 640 x 480 color (16-color graphics)

func Unset256Color320x200 added in v0.1.0

func Unset256Color320x200() string

Unset256Color320x200 unsets the screen to 320 x 200 color (256-color graphics)

func Unset320x200Color added in v0.1.0

func Unset320x200Color() string

Unset320x200Color unsets the screen to 320 x 200 color (graphics)

func Unset320x200Mono added in v0.1.0

func Unset320x200Mono() string

Unset320x200Mono unsets the screen to 320 x 200 monochrome (graphics)

func Unset40x25Color added in v0.1.0

func Unset40x25Color() string

Unset40x25Color unsets the screen to 40 x 25 color (text)

func Unset40x25Mono added in v0.1.0

func Unset40x25Mono() string

Unset40x25Mono unsets the screen to 40 x 25 monochrome (text)

func Unset4Color320x200 added in v0.1.0

func Unset4Color320x200() string

Unset4Color320x200 unsets the screen to 320 x 200 4-color (graphics)

func Unset600x200Mono added in v0.1.0

func Unset600x200Mono() string

Unset600x200Mono unsets the screen to 640 x 200 monochrome (graphics)

func Unset640x350Mono added in v0.1.0

func Unset640x350Mono() string

Unset640x350Mono unsets the screen to 640 x 350 monochrome (2-color graphics)

func Unset640x480mono added in v0.1.0

func Unset640x480mono() string

Unset640x480mono unsets the screen to 640 x 480 monochrome (2-color graphics)

func Unset80x25Color added in v0.1.0

func Unset80x25Color() string

Unset80x25Color unsets the screen to 80 x 25 color (text)

func Unset80x25Mono added in v0.1.0

func Unset80x25Mono() string

Unset80x25Mono unsets the screen to 80 x 25 monochrome (text)

func UnsetLineWrapping added in v0.1.0

func UnsetLineWrapping() string

UnsetLineWrapping disables line wrapping

Types

type S

type S struct {
	Width  int
	Height int
}

func (*S) GetDims

func (s *S) GetDims() error

GetDims gets the screen's dimensions

Jump to

Keyboard shortcuts

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