clear

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: May 16, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Cmd = &cli.Command{
	Name:  "clear",
	Usage: "Clear the terminal screen",
	Action: func(ctx context.Context, cmd *cli.Command) error {
		if runtime.GOOS == "windows" {
			fmt.Print("\x1b[2J\x1b[H")
		} else {
			fmt.Print("\033[2J\033[H")
		}
		return nil
	},
}

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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