mirror of https://github.com/rivo/tview.git
Added a note about standard streams while an application is running. Resolves #1017
This commit is contained in:
parent
e4c497cc59
commit
fd649dbf12
|
@ -250,7 +250,13 @@ func (a *Application) EnablePaste(enable bool) *Application {
|
|||
}
|
||||
|
||||
// Run starts the application and thus the event loop. This function returns
|
||||
// when Stop() was called.
|
||||
// when [Application.Stop] was called.
|
||||
//
|
||||
// Note that while an application is running, it fully claims stdin, stdout, and
|
||||
// stderr. If you use these standard streams, they may not work as expected.
|
||||
// Consider stopping the application first or suspending it (using
|
||||
// [Application.Suspend]) if you have to interact with the standard streams, for
|
||||
// example when needing to print a call stack during a panic.
|
||||
func (a *Application) Run() error {
|
||||
var (
|
||||
err, appErr error
|
||||
|
|
Loading…
Reference in New Issue