Implement bracketed paste mode

Allow bracketed paste mode-setting control sequences to be passed to the
outer terminal.

Signed-off-by: Barosl LEE <vcs@barosl.com>

Closes #430
This commit is contained in:
Barosl LEE
2013-05-29 12:54:29 +09:00
committed by Keith Winstein
parent 06561d3500
commit c6bf3a2025
4 changed files with 12 additions and 2 deletions
+6
View File
@@ -286,6 +286,12 @@ std::string Display::new_frame( bool initialized, const Framebuffer &last, const
frame.current_rendition = f.ds.get_renditions();
}
/* has bracketed paste mode changed? */
if ( (!initialized)
|| (f.ds.bracketed_paste != frame.last_frame.ds.bracketed_paste) ) {
frame.append( f.ds.bracketed_paste ? "\033[?2004h" : "\033[?2004l" );
}
return frame.str;
}