Revert "termpty: better handle ';' in escape sequences. Closes T7475"
This reverts commit 3f432544dfc50f68d8a03a8c41185133031ef3c1.