Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var DrawChan chan bool
var Screen tcell.Screen
Screen is the tcell screen we use to draw to the terminal Synchronization is used because we poll the screen on a separate thread and sometimes the screen is shut down by the main thread (for example on TermMessage) so we don't want to poll a nil/shutdown screen. TODO: maybe we should worry about polling and drawing at the same time too.
Functions ¶
func TempStart ¶
func TempStart(screenWasNil bool)
TempStart restarts the screen after it was temporarily disabled
func TermError ¶
TermError sends an error to the user in the terminal. Like TermMessage except formatted as an error
func TermMessage ¶
func TermMessage(msg ...interface{})
TermMessage sends a message to the user in the terminal. This usually occurs before micro has been fully initialized -- ie if there is an error in the syntax highlighting regular expressions The function must be called when the Screen is not initialized This will write the message, and wait for the user to press and key to continue
func TermPrompt ¶
TermPrompt prints a prompt and requests the user for a response The result is matched against a list of options and the index of the match is returned If wait is true, the prompt re-prompts until a valid option is chosen, otherwise if wait is false, -1 is returned for no match
Types ¶
This section is empty.