Add ANSI reverse support and fix bell