Add cmd-opt-y to show command history (when using finalterm escape codes). Also improve how whitespace trimming works for command history (we trim only leading spaces when searching for a match to support tcsh's stupid requirement of not having a terminal escape code in the prompt) but trim all spaces when adding to history.