Changed to handle most signals and call reset_display_attrs() to reset display attrs that was caused by escape sequences when sl receives these signals.