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:
committed by
Keith Winstein
parent
06561d3500
commit
c6bf3a2025
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user