From df61ee4ac3e0374d6461b691b9b6923e1a1d2953 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Tue, 1 Dec 2020 11:39:50 +0530 Subject: [PATCH] ... --- kittens/tui/loop.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/kittens/tui/loop.py b/kittens/tui/loop.py index 6693d4727..4269d2254 100644 --- a/kittens/tui/loop.py +++ b/kittens/tui/loop.py @@ -181,11 +181,14 @@ class SignalManager: signal.SIGWINCH, signal.SIGINT, signal.SIGTERM))) +sanitize_bracketed_paste: str = '[\x03\x04\x0e\x0f\r\x07\x7f\x8d\x8e\x8f\x90\x9b\x9d\x9e\x9f]' + + class Loop: def __init__( self, - sanitize_bracketed_paste: str = '[\x03\x04\x0e\x0f\r\x07\x7f\x8d\x8e\x8f\x90\x9b\x9d\x9e\x9f]', + sanitize_bracketed_paste: str = sanitize_bracketed_paste, optional_actions: int = termios.TCSADRAIN ): if is_macos: