terminfo: fix broken screen italics and provide script for convenience