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

Scott N. Walck walck at lvc.edu
Thu Sep 2 13:54:10 EDT 2010


Hello,

I've used the gnuplot package

http://hackage.haskell.org/package/gnuplot

before with great satisfaction.  Now I have a new computer
(a Lenovo T400 with ubuntu 9.10) and I have a problem.
After I make a plot in ghci, using a command such as

plotFunc [] [0.0,0.1..10.0] cos

shown below, the keyboard no longer echos my input to
ghci.  ghci will still do what I ask, as in computing 3+4
below, but I could not see the "3+4" until after I hit
return.

This is gnuplot 0.4.0.1.  I am using GNOME Terminal, but the
problem also occurs with xterm.  The problem also occurs
doing 'make ghci' from the build directory rather than
importing Graphics.Gnuplot.Simple from ghci.

brandon s. allbery figured out that the terminal's been reset to line mode:

http://www.haskell.org/pipermail/beginners/2010-May/004194.html

Does anyone else have this problem?  Any suggestions on how to fix it?

Thanks,

Scott



walck at walck-nsf:~/courses/phy261/code$ gnuplot --version
gnuplot 4.2 patchlevel 5 
walck at walck-nsf:~/courses/phy261/code$ ghci
GHCi, version 6.12.1: http://www.haskell.org/ghc/  :? for help
Loading package ghc-prim ... linking ... done.
Loading package integer-gmp ... linking ... done.
Loading package base ... linking ... done.
Loading package ffi-1.0 ... linking ... done.
Prelude> :m +Graphics.Gnuplot.Simple
Prelude Graphics.Gnuplot.Simple> plotFunc [] [0.0,0.1..10.0] cos
Loading package syb-0.1.0.2 ... linking ... done.
Loading package base-3.0.3.2 ... linking ... done.
Loading package array-0.3.0.1 ... linking ... done.
Loading package containers-0.3.0.0 ... linking ... done.
Loading package monoid-transformer-0.0.2 ... linking ... done.
Loading package old-locale-1.0.0.2 ... linking ... done.
Loading package filepath-1.1.0.4 ... linking ... done.
Loading package old-time-1.0.0.5 ... linking ... done.
Loading package unix-2.4.0.2 ... linking ... done.
Loading package directory-1.0.1.2 ... linking ... done.
Loading package process-1.0.1.3 ... linking ... done.
Loading package time-1.1.4 ... linking ... done.
Loading package utility-ht-0.0.5.1 ... linking ... done.
Loading package gnuplot-0.4.0.1 ... linking ... done.
Prelude Graphics.Gnuplot.Simple> 3+4
7
Prelude Graphics.Gnuplot.Simple> 




More information about the Gnuplot mailing list