feat: make headless terminal size configurable (#2829)