Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit b10636a

Browse filesBrowse files
author
ambv
committed
temporary workaround for signals unavailable in child threads
1 parent 78b8c43 commit b10636a
Copy full SHA for b10636a

1 file changed

+5-3Lines changed: 5 additions & 3 deletions

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎bpython/cli.py‎

Copy file name to clipboardExpand all lines: bpython/cli.py
+5-3Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1526,8 +1526,9 @@ def main_curses(scr, args, config, interactive=True, locals_=None,
15261526
global colors
15271527
DO_RESIZE = False
15281528

1529-
old_sigwinch_handler = signal.signal(signal.SIGWINCH,
1530-
lambda *_: sigwinch(scr))
1529+
# FIXME: Handle window resize without signals
1530+
#old_sigwinch_handler = signal.signal(signal.SIGWINCH,
1531+
# lambda *_: sigwinch(scr))
15311532

15321533
stdscr = scr
15331534
try:
@@ -1581,7 +1582,8 @@ def main_curses(scr, args, config, interactive=True, locals_=None,
15811582
curses.raw(False)
15821583

15831584
# Restore SIGWINCH handler
1584-
signal.signal(signal.SIGWINCH, old_sigwinch_handler)
1585+
# FIXME: handle window resizes without signals
1586+
# signal.signal(signal.SIGWINCH, old_sigwinch_handler)
15851587

15861588
return repl.getstdout()
15871589

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.