terminal

package module
v0.0.0-...-981d46e Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2017 License: Apache-2.0 Imports: 5 Imported by: 0

README

terminal

A go library for discovering information about the terminal emulator in which your program is running.

Currently, it only supports discovering how many colors are supported by the terminal.

Documentation

Overview

* Copyright 2017 Pepper Lebeck-Jobe * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TerminalColor

type TerminalColor struct {
	// contains filtered or unexported fields
}

func ColorSupport

func ColorSupport() *TerminalColor

func (*TerminalColor) Supports16Colors

func (t *TerminalColor) Supports16Colors() bool

func (*TerminalColor) Supports256Colors

func (t *TerminalColor) Supports256Colors() bool

func (*TerminalColor) SupportsTrueColor

func (t *TerminalColor) SupportsTrueColor() bool

Directories

Path Synopsis
* Copyright 2017 Pepper Lebeck-Jobe * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License.
* Copyright 2017 Pepper Lebeck-Jobe * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License.

Jump to

Keyboard shortcuts

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