Help us shape the future of Go! Take the 2026 Go Developer Survey

clear

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package clear implements the `clear` built-in. `clear` writes the ANSI clear-screen sequence `\033[H\033[2J` to stdout and exits 0.

Index

Constants

View Source
const ANSIClear = "\x1b[H\x1b[2J"

ANSIClear is the byte sequence written. Exposed so the test (and a future trace consumer) can compare against the canonical literal without re-deriving it.

Variables

This section is empty.

Functions

func New

func New() command.Command

New returns the clear command.

Types

This section is empty.

Jump to

Keyboard shortcuts

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