in reply to Re: Shelling a new process with console I/O in Windows
in thread Shelling a new process with console I/O in Windows
or some such nonsense. The reason behind all of this is that the email client I'm trying to use these days for various reasons, Claws Mail, doesn't have a built-in spell checker on the Windows port. It does, however, have the ability to pipe all of the text of the email being worked on to the standard input of another program, then replace that email text with whatever comes out of the standard output. Hence the need for a wrapper to allow me to take in STDIN, work with it via console+keyboard, and pipe the results back out STDOUT. The hope was to be able to throw something together quick and dirty in 20 lines and be done with it. The reality has been anything but, and I think I'm on the verge of abandoning the project. furry_marmot's tip solved the immediate problem; I can now embed the program in a pipeline and it pops up a new console and works beautifully. But it's still not working from Claws, nor ishead filename | perl aspell_filter.pl | sort
Leading me to believe that Claws's pipeline features are broken under Windows as well, thus defeating the point of the project. Still, thanks for the help. I'm sure I'll wind up needing that trick again at some point.print "Results are:\n"; while (<>) { print; }
|
|---|