iris

package
v0.0.0-...-3c2b1d6 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

author: Balazs Nyiro, balazs.nyiro.ca@gmail.com

Copyright (c) 2023, Balazs Nyiro All rights reserved.

This source code (all file in this repo) is licensed under the Apache-2 style license found in the LICENSE file in the root directory of this source tree.

author: Balazs Nyiro, balazs.nyiro.ca@gmail.com

Copyright (c) 2023, Balazs Nyiro All rights reserved.

This source code (all file in this repo) is licensed under the Apache-2 style license found in the LICENSE file in the root directory of this source tree.

author: Balazs Nyiro, balazs.nyiro.ca@gmail.com

Copyright (c) 2023, Balazs Nyiro All rights reserved.

This source code (all file in this repo) is licensed under the Apache-2 style license found in the LICENSE file in the root directory of this source tree.

Index

Constants

This section is empty.

Variables

View Source
var Digits = "0123456789"
View Source
var TimeIntervalTerminalSizeDetectMillisec = 100 // 100 is the prod value
View Source
var TimeIntervalUserInterfaceRefreshTimeMillisec = 1000 // 10 is the prod value

Functions

func Int2Str

func Int2Str(i int) string

wrapper, not tested

func IntMax

func IntMax(a, b int) int

func NewLine

func NewLine() string

func OsDetect

func OsDetect() string

func ScreenLayerDisplay

func ScreenLayerDisplay(screenLayer ScreenLayer_CharMatrix, newlineSeparator string)

func ScreenLayersDisplayAll

func ScreenLayersDisplayAll(layers ScreenLayers, newlineSeparator string, loopCounter int)

func Str2Int

func Str2Int(txt string) int

wrapper, not tested

func StrDoubleSpacesRemove

func StrDoubleSpacesRemove(txt string) string

func StrListRemoveEmptyElems

func StrListRemoveEmptyElems(list []string, useTrim bool) []string

func TimeSleep

func TimeSleep(interval_millisec int)

func UserInterfaceExit

func UserInterfaceExit()

func UserInterfaceStart

func UserInterfaceStart(ch_data_input chan MessageAndCharactersForWindowsUpdate, dataInputLineSeparator string)

Types

type Char

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

Char is the smallest object. Future: a complex obj with foreground/bg colors, display attributes

type LineChars

type LineChars []Char

func LineCharsFromStr

func LineCharsFromStr(txt string) LineChars

func (LineChars) LineToStr

func (line LineChars) LineToStr() string

type MessageAndCharactersForWindowsUpdate

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

type ScreenColumn

type ScreenColumn []Char

type ScreenLayer_CharMatrix

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

func ScreenLayerBorderRender

func ScreenLayerBorderRender(screen ScreenLayer_CharMatrix, winParent Window) ScreenLayer_CharMatrix

func ScreenLayerCreate

func ScreenLayerCreate(xLeft, yTop, width, height int, txtLayerDefault string, layerId string) ScreenLayer_CharMatrix

a screenLayer is a matrix of characters. A displayed unit. I always tried to pass a simple window instead of parameters here, but don't do that. you need to create ScreenLayers without a window

func ScreenLayerEmtpyIfWeHaveErrors

func ScreenLayerEmtpyIfWeHaveErrors() ScreenLayer_CharMatrix

TESTED

type ScreenLayers

type ScreenLayers []ScreenLayer_CharMatrix

func ScreenLayersRenderFromWindows

func ScreenLayersRenderFromWindows(windowsRO Windows, terminalSize [2]int) ScreenLayers

type Window

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

A window is a logical unit. It has settings, and content, but doesn't now anything how it will be rendered

type Windows

type Windows map[string]Window

///////////////////////////////////////////////////////////////

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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