Add option to disable clearing screen

Somewhat hacky and might cause other issues, but should fix #365
This commit is contained in:
Tulir Asokan
2022-04-25 00:25:49 +03:00
parent b4101f5518
commit 6479ff2e34
4 changed files with 7 additions and 3 deletions

View File

@ -116,6 +116,8 @@ type Config struct {
Backspace1RemovesWord bool `yaml:"backspace1_removes_word"`
Backspace2RemovesWord bool `yaml:"backspace2_removes_word"`
AlwaysClearScreen bool `yaml:"always_clear_screen"`
Dir string `yaml:"-"`
DataDir string `yaml:"data_dir"`
CacheDir string `yaml:"cache_dir"`
@ -152,6 +154,7 @@ func NewConfig(configDir, dataDir, cacheDir, downloadDir string) *Config {
NotifySound: true,
SendToVerifiedOnly: false,
Backspace1RemovesWord: true,
AlwaysClearScreen: true,
}
}