Here we start with buffering and using the buffer to send a few bytes of history to new connections, paying particular attention to the last 'clearscreen' event