From: seb_kramm <seb...@ya...> - 2010-12-18 21:43:34
|
On 17/12/2010 22:41, Hans-Bernhard Bröker wrote: > That's caused by you doing this entirely from the GUI. Console gnuplot needs a > console for you to input that <Return> to end pause -1. Without a console (i.e. a > command-line shell from which you invoked gnuplot), there's nowhere for that keypress > to come from, i.e. no stdin. That is treated as an immediate termination of the script. ok, so I've allready had this problem with another piece of software, and somebody told me the trick: when you associate a file type to a binary, Ubuntu automatically creates a launcher in $HOME/.local/share/applications. The default behaviour is that is does not open a terminal when the app is launched. To make this happen, edit the launcher and add a line: Terminal=true This way, you get the 2 windows, terminal+gnuplot GUI. However, to get the pause correctly working (quiting when keyboard hit), the focus must be on the terminal (can't remember if this was true on Windows too ?) > Or you could just stick with the need-to-close-the-window, -persist mode. Typing q or > Ctrl-q in that window should work, too, though. Mmmh, my experience tells me its better to have a console, because thats where important messages (errors, warnings, whatever...) get printed out. But it does work allright too, I didn't know about CTRL-q. Thanks for your help, |