Dear Maintainer,
On Debian Testing (Forky), running `vim` in virt-manager's Serial console causes virt-manager (python3) to crash with:
../src/vte.cc:5083: void vte::terminal::Terminal::map_erase_binding(EraseMode, EraseMode, unsigned int, char*&, size_t&, bool&, bool&): Assertion `auto_mode != eTTY' failed.
The crash happens after the ~ lines are drawn and during/after the color change from dark blue (34m) to light blue (94m), while Vim sends multiple DCS queries (\eP+qXXXX\e\).
Reproduction:
1. Open a VM in virt-manager → Serial console
2. Run: vim
3. Crash occurs reliably.
Workarounds:
- TERM=vt220 vim → no crash (but no colors)
- virsh console works fine (bypasses VTE)
I have attached a minimal C reproducer that triggers the same assertion by sending the relevant DCS queries after ~ lines + color change.