io

package
v0.0.0-...-2873b17 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2019 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package io contains codes that are hard to test, the less code here the better.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CUILib

type CUILib interface {
	Init() error
	Close()
	Clear()
	PollEvents() <-chan ui.Event
	Render(a ...ui.Drawable)
	TerminalDimensions() (int, int)
}

CUILib represents the CUI library.

type IO

type IO interface {
	GetInputByLaunchingEditor() (string, error)
}

IO abstracts input/output functions tied to the OS.

type TermUI

type TermUI struct{}

func (TermUI) Clear

func (TermUI) Clear()

func (TermUI) Close

func (TermUI) Close()

func (TermUI) Init

func (TermUI) Init() error

func (TermUI) PollEvents

func (TermUI) PollEvents() <-chan ui.Event

func (TermUI) Render

func (TermUI) Render(a ...ui.Drawable)

func (TermUI) TerminalDimensions

func (TermUI) TerminalDimensions() (int, int)

type UnixLikeIO

type UnixLikeIO struct{}

UnixLikeIO implements IO for *nix platform.

func (UnixLikeIO) GetInputByLaunchingEditor

func (UnixLikeIO) GetInputByLaunchingEditor() (string, error)

Jump to

Keyboard shortcuts

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