handle ansi visual bell ignore

seems the ESC g stands for an ansi code to ignore the visual bell. Now correctly handling/ignoring it.