[Haskell-beginners] gnuplot problem in ghci

Scott N. Walck walck at lvc.edu
Fri May 14 19:16:37 EDT 2010


Yes, that looks like what is happening.  Here are before and after
a graphics command.

$ stty -a </dev/pts/1 | grep icanon
isig -icanon iexten -echo echoe echok -echonl -noflsh -xcase -tostop -echoprt
$ stty -a </dev/pts/1 | grep icanon
isig icanon iexten -echo echoe echok -echonl -noflsh -xcase -tostop -echoprt



On Fri, May 14, 2010 at 05:16:14PM -0400, Brandon S. Allbery KF8NH wrote:
> On May 14, 2010, at 14:21 , Daniel Fischer wrote:
> >On Friday 14 May 2010 19:48:20, Scott N. Walck wrote:
> >>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.3.4.
> >>Could anyone suggest an idea?
> >
> >Sorry, no. Though it looks like a buffering problem.
> To me it sounds like the terminal's been reset to line mode.  Type
> "tty" to the shell before starting ghci (it will output something
> like /dev/pts/3 or /dev/ttys003 or /dev/ptyp3), then when the
> problem happens switch to another terminal and type "stty -a
> </dev/pts/3 | grep icanon" (substituting the output of the "tty"
> above).  Look for "icanon" or "-icanon"; the former is line mode,
> the latter is character mode (ghci's readline requires the latter).
> This won't help you solve it but at least gives you some information
> to put in the bug report.
> -- 
> brandon s. allbery [solaris,freebsd,perl,pugs,haskell] allbery at kf8nh.com
> system administrator [openafs,heimdal,too many hats] allbery at ece.cmu.edu
> electrical and computer engineering, carnegie mellon university    KF8NH

Scott N. Walck
Associate Professor of Physics
Lebanon Valley College
Annville, PA 17003
phone: 717-867-6153
fax:   717-867-6075
email: walck at lvc.edu

More information about the Beginners mailing list