Quantcast
Channel: Python Interrupt Not Working with os.system('clear') - Stack Overflow
Viewing all articles
Browse latest Browse all 2

Answer by Antti Haapala for Python Interrupt Not Working with os.system('clear')

$
0
0

It can be that signals from the subprocess; or even duplicating the file descriptors interfere with the event mechanism.

You do not need to execute the clear command to clear the screen - you can do it simply by outputting the ANSI escape code '\033[2J':

print '\033[2J'

Viewing all articles
Browse latest Browse all 2

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>