|
From: sfeam <sf...@us...> - 2014-06-23 05:56:10
|
On Monday, 23 June 2014 12:08:51 AM Petr Mikulik wrote: > > Why does the "raise console" function use different code for each > > terminal type? The console is the same no matter what terminal is > > in use. Am I missing something? > > > > My current thinking is that the special code to raise the console > > should be removed from all terminals. > > Instead we could add a routine in mouse.c that responds to the > > keystroke after it is passed to the gnuplot core. This would be > > shared by all terminals. > > At the time I've implemented it, I've found it is not possible. > > The gnuplot executable is a console application, while the graphic window is > X11, OS/2 Presentation Manager, Windows etc. application (communicating via > different ways) and thus compiled and linked differently. So gnuplot binary is > not linked to the respective X11/os2/... libraries needed to call the window > manager in order to manipulate another window. That may have been true at the time, but currently the main program is linked against both gdk and X11 when it is built on linux. So the same call that wxt uses could be placed in the main code. I do not know about MSWin. Ethan |