Implement cltoeoln and cl_dn. Fixes up a bunch of messy places.
Implement beep.