There was an error while loading. Please reload this page.
1 parent d895c57 commit 65b962cCopy full SHA for 65b962c
prompt_toolkit/inputstream.py
@@ -15,7 +15,7 @@
15
_cpr_response_re = re.compile('^' + re.escape('\x1b[') + r'\d+;\d+R$')
16
17
# Regex matching anything valid prefix of a CPR response.
18
-_cpr_response_prefix_re = re.compile('^' + re.escape('\x1b[') + r'($|\d)')
+_cpr_response_prefix_re = re.compile('^' + re.escape('\x1b[') + r'[\d;R]*$')
19
20
21
class KeyPress(object):
0 commit comments