Fix background mode initialization on client tty frames (rep. by Dan Nicolaescu).