mirror of
https://github.com/peco/peco.git
synced 2026-09-10 07:16:29 -04:00
16 lines
315 B
Go
16 lines
315 B
Go
// +build !windows
|
|
|
|
package peco
|
|
|
|
import "github.com/nsf/termbox-go"
|
|
|
|
func (t *Termbox) PostInit(cfg *Config) error {
|
|
// This has no effect on Windows,
|
|
// because termbox.SetOutputMode always sets termbox.OutputNormal on Windows.
|
|
if cfg.Use256Color {
|
|
termbox.SetOutputMode(termbox.Output256)
|
|
}
|
|
|
|
return nil
|
|
}
|