Question

Typically, CTRL+Y yanks previously killed text. This works very well in the terminal to cut and paste text. However, once I start gnuplot, using CTRL+Y suspends the program. The odd thing is that this only happens in my OS X machine. On my Ubuntu 12.04, the CTRL+Y inside the gnuplot has the expected behavior of yanking text.

Any ideas ideas on why this is happening? And how can I make CTRL+Y to have the expected behavior in a interactive gnuplot session?

Was it helpful?

Solution

This is just an educated guess -- OS-X does not ship with gnu readline, so gnuplot (by default) builds against the native OS-X readline implementation.

print GPVAL_COMPILE_OPTIONS  #... +READLINE_IS_REALLY_EDITLINE ...

To fix this, you'd probably need to download/install gnu readline and then compile gnuplot with --with-readline=gnu or something to that effect.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top