diff --git a/readline.go b/readline.go index b654d44..b8ef811 100644 --- a/readline.go +++ b/readline.go @@ -161,6 +161,9 @@ func NewEx(cfg *Config) (*Instance, error) { return nil, err } rl := t.Readline() + if cfg.Painter == nil { + cfg.Painter = &defaultPainter{} + } return &Instance{ Config: cfg, Terminal: t,