Do not change LWS/GWS if they were already set.
Add $pass_thru in some places where it was missing, and ensure
the ScreenOutxx() stuff prints the actual line and not something
completely different.