You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I run go run src/github.com/c-bata/go-prompt/_example/echo/main.go the console ends up with bold text in my iterm and my xterm terminals.
Bug reports
It seems like Render.Teardown is not resetting the default colors on exit. Please let me know if I am mistaken:
// TearDown to clear title and erasing. | -livePrefixCallback : func() string,func (r*Render) TearDown() { |-out : ConsoleWriterr.out.ClearTitle() |-prefix : stringr.out.EraseDown() |-prefixBGColor : Colorr.out.Flush() |-prefixTextColor : Color
} |-previewSuggestionBGColor : Color
Should this not also include r.out.SetColor(DefaultColor, DefaultColor, false)?
Expected Behavior
The console to be back to its previous text formatting after prompt.Input() finishes.
Current Behavior and Steps to Reproduce
go get -u github.com/c-bata/go-prompt
go run src/github.com/c-bata/go-prompt/_example/echo/main.go
What is the current behavior? Please provide detailed steps for reproducing the issue.
If you enter your own string, the program exits as expected - with previous console colors. However, if you accept the suggestions, the program exits with bold text.
Context
Please provide any relevant information about your setup. This is important in case the issue is not reproducible except for under certain conditions.
Operating System: Mac OSX High Sierra
Terminal Emulator: iTerm2 and xquartx terminal
tag of go-prompt or commit revision: HEAD
The text was updated successfully, but these errors were encountered:
Suggestions
When I run
go run src/github.com/c-bata/go-prompt/_example/echo/main.go
the console ends up with bold text in my iterm and my xterm terminals.Bug reports
It seems like Render.Teardown is not resetting the default colors on exit. Please let me know if I am mistaken:
Should this not also include
r.out.SetColor(DefaultColor, DefaultColor, false)
?Expected Behavior
The console to be back to its previous text formatting after
prompt.Input()
finishes.Current Behavior and Steps to Reproduce
go get -u github.com/c-bata/go-prompt
go run src/github.com/c-bata/go-prompt/_example/echo/main.go
What is the current behavior? Please provide detailed steps for reproducing the issue.
If you enter your own string, the program exits as expected - with previous console colors. However, if you accept the suggestions, the program exits with bold text.
Context
Please provide any relevant information about your setup. This is important in case the issue is not reproducible except for under certain conditions.
The text was updated successfully, but these errors were encountered: