Okay, this thread has inspired me to start a new project.
The project will be a keylogger written entirely in Perl. It needs to run on Linux and read keystrokes entered on the command line and in X. I've done searches both here and on CPAN for 'keylogger' and 'term' but didn't find anything relevant.
Any suggestions as to how I'd get started on this project? Thanks in advance for the replies :).