These two strings contain two sequences each; they control subtly different things:
The first of these,
CSI ? 1h
CSI ? 1l
controls DEC private mode number 1, DECCKM
, cursor key mode. This mode determines whether the four arrow keys (Up, Down, Left, Right) will send SS3 or CSI-prefixed sequences.
The second pair of sequences,
ESC =
ESC >
are called DECKPAM
, keypad application mode, and DECKPNM
, keypad numeric mode. This determines whether the number keypad sends control sequences, or normal numbers (i.e. consider it similar to the Numlock feature).