Add fix to support S-up in Gnome Terminal.