[haskell-gnuplot] ghci will not echo my keystrokes after a plot

Henning Thielemann lemming at henning-thielemann.de
Fri Sep 3 14:50:30 EDT 2010


Scott N. Walck schrieb:
> On Thu, Sep 02, 2010 at 05:18:24PM -0400, Henning Thielemann wrote:
>> On Thu, 2 Sep 2010, Scott N. Walck wrote:
>>
>>> Henning,
>>>
>>> I installed sox and it works nicely and I don't seem to have
>>> any trouble with the keyboard.
>> Maybe, the way I run 'gnuplot' causes a problem. There are some Cabal
>> switches of the gnuplot package to run 'gnuplot' via different calling
>> methods.
>>
> Could you tell me more about this?  I just installed a fresh ghc-6.12.3
> with latest haskell-platform and I still have the problem of keyboard
> strokes not being echoed after I make a plot.  This is with ubuntu-9.10
> on a Lenovo T400.  On the other hand, I have Fedora running on a desktop
> with ghc-6.12.1, and gnuplot works just fine there.

After what you write, I think this seems to be a bug in GHCi or in the
'process' package, that is used to run external programs. But in order
to file a ticket we should create a minimal example that demonstrates
the problem.

You can install gnuplot package with
   cabal install -f executePipe gnuplot
or
   cabal install -f executeShell gnuplot

These flags choose between modules in the 'execute' directory, that
implement different kinds of calling an external program. The default is
'tmp', which writes curve data and the gnuplot script to /tmp. 'pipe'
runs gnuplot with Proc.runInteractiveProcess and feeds the gnuplot
script via the standard input of gnuplot. 'shell' generates a shell
script that feeds gnuplot via a pipe.




More information about the Gnuplot mailing list