"Save and restore the palettes on VT switch." upstream commits: 5efdf514ab0e5439114e8dd7a49105812155eb69 fc7aa6e3bbb86eaa2f34b827629f7e82cde65ac7