xo / usql

Universal command-line interface for SQL databases
MIT License
8.82k stars 346 forks source link

Support ANSI escape codes (colors) in prompt #388

Closed nineinchnick closed 1 year ago

nineinchnick commented 1 year ago

ANSI escape codes are already supported by the readline library used by usql, so only the octal values escaped with % need to be converted to characters.