I've been messing around with a PDP-8 emulator lately, and while it generally runs well, it was written in the 90's for some unspecified flavor of Unix, and I've been having trouble getting it to accept keypresses (The interface is mouse driven enough that I can live without the keyboard, especially given that if I launch it in a terminal window, it will accept input from the terminal, but it would be convenient to be able to use the keyboard directly).
The emulator can be downloaded here:
ftp://ftp.cs.uiowa.edu/pub/jones/pdp8/emulator.txt.Z
The guy uploaded as a compressed *.txt file, but it functions as a shell script that cats its contents into the various source files. I have no idea why he did it that way...
In any case, I believe the relevant file is kc8e.c. I've tried putting in statements to print a message to the console in all the keypress handling functions in that file, and none of them ever seem to trigger in the compiled program. (It's also irritatingly difficult to get the window in focus).
Since it was written over a decade ago for a different (if related) OS, I figure some compatibility issue in how the mid-90's Unix and late-2000's versions of X handle keyboard input, but I'm not familiar enough with X keyboard handling to know exactly what I might need to change.
Can anybody hazard a guess as to what might be broken here?
Bookmarks