darxtrix / ptop

An awesome task manager written in python. :computer:

Home Page:http://darxtrix.in/ptop/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

When pressing ctrl+c it breaks the terminal

lunemec opened this issue · comments

ptop closes, but terminal is useless and needs to be restarted.

Yeah, it happens sometime, need to be fixed. Thanks for reporting, use q for the time.

Reproduced issue:

screen shot 2017-07-12 at 5 53 50 pm

@darxtrix Have you figured out why this occurs? This never happened with me.

Yeah it does not occur any more after i have updated the GUI rendering logic. Earlier, the update method for updating the GUI was called in a separate thread job. It seems not to play well with keyboard interactions going on and sometimes it used to break the UI. After that I deferred that responsibility to npyscreen itself and the issue vanished. I think we can close it.

def update(self):

Alright, we can close the issue @darxtrix .