Support bracketed paste mode.

Some terminals support a mode where paste operations are bracketed by
special escape sequences. This change enables this mode via the terminal
package and also ignores the structure of pasted lines.