ANSIWriter returns an io.Writer which translates any ANSI escape codes written to it into cview color tags.
No description provided by the author
No description provided by the author
ColorHex returns the hexadecimal value of a color as a string, prefixed with #.
No description provided by the author
No description provided by the author
No description provided by the author
Escape escapes the given text such that color and/or region tags are not recognized and substituted by the print functions of this package.
EscapeBytes escapes the given text such that color and/or region tags are not recognized and substituted by the print functions of this package.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
HitShortcut returns whether the EventKey provided is present in one or more sets of keybindings.
NewApplication creates and returns a new application.
NewBox returns a Box without a border.
NewButton returns a new input field.
NewCheckBox returns a new input field.
NewContextMenu returns a new context menu.
NewDropDown returns a new drop-down.
NewDropDownOption returns a new option for a dropdown.
NewFlex returns a new flexbox layout container with no primitives and its direction set to FlexColumn.
NewFocusManager returns a new FocusManager object.
NewForm returns a new form.
NewFrame returns a new frame around the given primitive.
NewGrid returns a new grid-based layout container with no initial primitives.
NewInputField returns a new input field.
NewList returns a new form.
NewListItem returns a new item for a list.
NewModal returns a new centered message window.
No description provided by the author
NewPages returns a new Panels object.
NewPanels returns a new Panels object.
NewProgressBar returns a new progress bar.
NewSlider returns a new slider.
NewTabbedPanels returns a new TabbedPanels object.
NewTable returns a new table.
NewTableCell returns a new table cell with sensible defaults.
NewTextArea returns a new text area.
NewTextView returns a new text view.
NewTreeNode returns a new tree node.
NewTreeView returns a new tree view.
NewWindow returns a new window around the given primitive.
NewWindowManager returns a new window manager.
No description provided by the author
No description provided by the author
Print prints text onto the screen into the given box at (x,y,maxWidth,1), not exceeding that box.
PrintJoinedSemigraphics prints a semigraphics rune into the screen at the given position with the given color, joining it with any existing semigraphics rune.
PrintSimple prints white text to the screen at the given position.
PrintStyle works like Print() but it takes a style instead of just a foreground color.
RenderScrollBar renders a scroll bar at the specified position.
SetAttributes sets attributes on a style.
StripTags returns the provided text without color and/or region tags.
TaggedStringWidth returns the width of the given string needed to print it on screen.
TaggedTextWidth returns the width of the given string needed to print it on screen.
TranslateANSI replaces ANSI escape sequences found in the provided string with cview's color tags and returns the resulting string.
No description provided by the author
No description provided by the author
No description provided by the author
WordWrap splits a text such that each resulting line does not exceed the given screen width.