Collapsing prompt that adapts to terminal width