|
From: Tatsuro M. <tma...@ya...> - 2014-06-25 08:23:35
|
----- Original Message ----- > From: Ethan A Merritt > To: gnuplot-beta; Tatsuro MATSUOKA > Cc: > Date: 2014/6/24, Tue 04:55 > Subject: Re: How to get key information from qt terminal to gnuplot > > On Tuesday, 24 June, 2014 04:49:36 Tatsuro MATSUOKA wrote: >> >> ----- Original Message ----- >> > From: sfeam >> > To: gnuplot-beta >> > Cc: Petr Mikulik >> > Date: 2014/6/23, Mon 14:52 >> > Subject: Re: How to get key information from qt terminal to gnuplot >> > >> Although Ethan's idea is attractive, I will try console raise feature > for qt terminal by Petr's way at this moment. >> To implement Ethan's idea, we have to have wrapper function to get > keycode. >> This is because each terminal implements the way to get keycode diffident > way and keycode map for each the terminal is different (especially of windows). >> >> I will wait that someone who has good knowledge inter platform try to > implement. > > Isn't it true that all terminals already do the necessary key-code > processing so that they can send key events to the core code in mouse.c? > > For example, does "mouselabels.dem" work on MSWin? That demo reads > keystrokes in the plot window, turns them into labels in the core code, and then > replots with the new label. If the demo works, it shows that keycodes > including > the space-key are correctly transmitted to the core code. I have a look into this issue a little deeper. Currently terminal raise and lower commands are treated in command.c The treatment for OS2, X11, Windows and WXWIDGETS is managed in void raise_lower_command(int lower) I do know the reason why but those are written in command.c but not mouse.c. Tatsuro |