Skip to content

Commit 17c2511

Browse files
fix initial inputted characters by passing a callback
bump curtsies version so CursorAwareWindow accepts a callback and Input provides one.
1 parent bebff69 commit 17c2511

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

bpython/curtsies.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,8 @@ def mainloop(config, locals_, banner, interp=None, paste=None, interactive=True)
6868
sys.stdout,
6969
sys.stdin,
7070
keep_last_line=True,
71-
hide_cursor=False) as window:
71+
hide_cursor=False,
72+
extra_bytes_callback=input_generator.unget_bytes) as window:
7273

7374
refresh_requests = []
7475
def request_refresh():

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ def initialize_options(self):
151151

152152
if sys.version_info[:2] >= (2, 6):
153153
# curtsies only supports 2.6 and onwards
154-
extras_require['curtsies'] = ['curtsies >=0.1.0, <0.2.0', 'greenlet']
154+
extras_require['curtsies'] = ['curtsies >=0.1.2, <0.2.0', 'greenlet']
155155
packages.append("bpython.curtsiesfrontend")
156156
entry_points['console_scripts'].append(
157157
'bpython-curtsies = bpython.curtsies:main [curtsies]')

0 commit comments

Comments
 (0)