For no particular reason I decided to try to communicate with nethack through java. I learned that nethack normally communicates to the consoles standard out using WriteConsole() or something...