forked from sloum/bombadillo
Solves the issue where line wrapping is not turned back on
This commit is contained in:
parent
23bc3d75a5
commit
cdfec887fd
|
@ -56,8 +56,8 @@ func Exit(exitCode int, msg string) {
|
||||||
// InitTerm sets the terminal modes appropriate for Bombadillo
|
// InitTerm sets the terminal modes appropriate for Bombadillo
|
||||||
func InitTerm() {
|
func InitTerm() {
|
||||||
SetCharMode()
|
SetCharMode()
|
||||||
Tput("rmam") // turn off line wrapping
|
|
||||||
Tput("smcup") // use alternate screen
|
Tput("smcup") // use alternate screen
|
||||||
|
Tput("rmam") // turn off line wrapping
|
||||||
}
|
}
|
||||||
|
|
||||||
// CleanupTerm reverts changs to terminal mode made by InitTerm
|
// CleanupTerm reverts changs to terminal mode made by InitTerm
|
||||||
|
|
Loading…
Reference in New Issue