console: fix missing else when parsing ansi setting