Add WithUsageOfEscapeCodes option

This commit is contained in:
qowevisa 2024-10-18 07:27:26 +03:00
parent faaa13fb2c
commit 1a4d39fd1d

View File

@ -13,3 +13,9 @@ func WithCustomBackKey(back string) SimpleMenuOption {
conf.BackKey = back
}
}
func WithUsageOfEscapeCodes() SimpleMenuOption {
return func(conf *MenuConfig) {
conf.UsingEscapeCodes = true
}
}