On Dec 18, 2007 1:28 PM, Ryan <[EMAIL PROTECTED]> wrote: > Here's something I've never done before and I need some help. > > I want to control a terminal program that is proprietary and Curses > and such won't work. So instead I'd like to have my perl program > output chars to the keyboard or mouse port on my UNIX machine, which > will be plugged into a Windows machine with the terminal. Will this > work? How can I do it? > > Thanks! >
You're probably making this more complicated than it needs to be. The terminal program may be proprietary, but the interface isn't--at least the important part of the interface--isn't: IO is still being handled by the OS and drivers installed in the OS. You may not be able to write a *new interface* in Curses, but as long as you know what sort of input the program needs, you can *control* the program using a Perl interface module like Expect, IPC::Open3, or IPC::Run. On Windows, you might also want to check out Win32::GuiTest. HTH, -- jay -------------------------------------------------- This email and attachment(s): [ ] blogable; [ x ] ask first; [ ] private and confidential daggerquill [at] gmail [dot] com http://www.tuaw.com http://www.downloadsquad.com http://www.engatiki.org values of β will give rise to dom!