tui

package
v0.0.0-...-99b91a0 Latest Latest
Warning

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

Go to latest
Published: May 19, 2022 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const PORT int = 9000

Variables

View Source
var (
	BubbleStyle = lipgloss.NewStyle().
				BorderStyle(lipgloss.NormalBorder()).
				BorderForeground(lipgloss.Color("63"))
	TextInputStyle = lipgloss.NewStyle().
					Width(23).
					BorderStyle(lipgloss.NormalBorder()).
					BorderForeground(lipgloss.Color("63"))
	HeaderLogoStyle = lipgloss.NewStyle().
					Height(1).
					MarginLeft(1).
					PaddingLeft(1).
					PaddingRight(1).
					Bold(true).
					Background(lipgloss.Color("7")).
					Foreground(lipgloss.Color("#FAFAFA"))
	HeaderMoneyStyle = lipgloss.NewStyle().
						Align(lipgloss.Center).
						Height(1).
						PaddingLeft(1).
						PaddingRight(1).
						Bold(true).
						Background(lipgloss.Color("7")).
						Foreground(lipgloss.Color("#FAFAFA"))
)

Functions

This section is empty.

Types

type Model

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

func New

func New(conn io.Writer) Model

func (*Model) Init

func (m *Model) Init() tea.Cmd

func (*Model) Update

func (m *Model) Update(msg tea.Msg) (tea.Model, tea.Cmd)

func (*Model) View

func (m *Model) View() string

type SessionState

type SessionState int
const (
	FocusSelectStock SessionState = iota
	FocusSelectOrderType
	FocusSelectSide
	FocusSelectPrice
	FocusSelectAmount
	FocusSendOrder
)

Jump to

Keyboard shortcuts

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