MCPcopy
hub / github.com/micro-editor/micro / TermMessage

Function TermMessage

internal/screen/message.go:17–27  ·  view source on GitHub ↗

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

(msg ...any)

Source from the content-addressed store, hash-verified

15// This will write the message, and wait for the user
16// to press and key to continue
17func TermMessage(msg ...any) {
18 screenb := TempFini()
19
20 fmt.Println(msg...)
21 fmt.Print("\nPress enter to continue")
22
23 reader := bufio.NewReader(os.Stdin)
24 reader.ReadString('\n')
25
26 TempStart(screenb)
27}
28
29// TermPrompt prints a prompt and requests the user for a response
30// The result is matched against a list of options and the index of

Callers 15

RunInteractiveShellFunction · 0.92
SetStatusInfoFnLuaFunction · 0.92
SuspendMethod · 0.92
LuaActionFunction · 0.92
BufMapEventFunction · 0.92
finishInitializeMethod · 0.92
PluginCBMethod · 0.92
SetActiveMethod · 0.92
InitBindingsFunction · 0.92
BindKeyFunction · 0.92
SetActiveMethod · 0.92
reloadRuntimeFunction · 0.92

Calls 2

TempFiniFunction · 0.85
TempStartFunction · 0.85

Tested by 1

startupFunction · 0.74