Skip to content

Instantly share code, notes, and snippets.

@devforfu devforfu/cursed.py
Created Feb 16, 2019

Embed
What would you like to do?
An illustration of the debugging issues when using curses
import curses
def main(term):
term.clear()
for i in range(10):
# try to debug after curses mangled the terminal
breakpoint()
term.addstr(i, 0, f'String: {i + 1:d}')
term.refresh()
term.getkey()
if __name__ == '__main__':
curses.wrapper(main)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.