Project

General

Profile

Bug #7660

Leaving curses mode a second time makes terminal window disappear

Added by Oskar Skog about 4 years ago. Updated over 3 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
OI-Userland
Target version:
-
Start date:
2016-12-10
Due date:
% Done:

0%

Estimated time:
Difficulty:
Medium
Tags:
needs-triage

Description

"Version": oi-dev-151a8-live-x86.iso

I've written a game in Python that uses curses, but only part of the time.
If I play again without exiting the program (the game) and starting it again, the terminal window goes poof.

I've got a minimal working example (in Python).
Just open up a new terminal window and start the (interactive) Python interpreter and copy paste the below code:

import curses
window = curses.initscr()
curses.endwin()
window = curses.initscr()
curses.endwin()

Also available in: Atom PDF