window: fill background color on clearing to EOL
window: support 'previous' background value for better composability
settings: buffer: apply helper function
format: add flags to refine parsing and printing of the AST