Some of the demos appear to hang during cleanup for me too. They do not respond to Ctrl+C (interrupt) but they do exit on Ctrl+\ (quit signal). (Also you can switch consoles with Ctrl+Alt+F2 and log in again to identify and kill stuck processes. And Ctrl+Alt+Del on console will reboot, so it should never be necessary to power off.)paddyg wrote:1. run on console before startx - works fine and responds to key but the screen is then unusable in so far as characters appear on screen but that's all. Have to power off and on.
The error message actually tells you how to automatically untabify the source.4. run from IDLE I get an error about the mismatched tabs and spaces. This is a real bother to tidy up in Tim's code but ought really to be done, geany copes ok. When fixed IDLE still complains about the cbreak() so Ken is probably right but still worth getting to bottom of.
Untabify worked for me, with a tab width of 8, which was not the default. It is clear that 8 is the right value because the first indent in the file is four spaces, and the next indent is one tab.paddyg wrote:The trouble with the mixed tabs and spaces is that python is cleverer than the untabify
If it is to work both in X and on console, then terminal cbreak or /dev/input/event are the only options. Terminal is arguably better behaved and has the advantage of working over ssh.Do you have any suggestions for a better way of getting key presses, I know Tim Skillman was unhappy with this and looking for some alternative.
Users browsing this forum: No registered users and 18 guests