Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Display ¶
type Display struct {
// contains filtered or unexported fields
}
Display represents a display that can draw elements to the screen.
func NewDisplay ¶
NewDisplay creates a new display with the given background style.
Parameters:
- bgStyle: The background style of the display.
Returns:
- *Display: The new display.
- error: An error if the display could not be created.
func (*Display) ListenForKey ¶
ListenForKey listens for a key event.
Returns:
- rune: The key.
- bool: True if the key was received, false otherwise.
func (*Display) ListenForNumber ¶
ListenForNumber listens for a number.
Returns:
- int: The number.
- error: An error if the number could not be received.
func (*Display) ReceiveErr ¶
ReceiveErr receives an error from the display.
Returns:
- error: The error.
- bool: True if the error was received, false otherwise.
Click to show internal directories.
Click to hide internal directories.