Here is another follow-on patch. It gets applied after and probably should be consolidated (for final submission) with the following two: tty-fix-loss-of-echoed-characters.patch tty-minor-code-efficiency-and-style-cleanup.patch This one fixes handling of some tab erasure cases and also improves locking for the echo buffer. Thanks, Joe