From: Nobuyoshi N. <nob...@so...> - 2003-02-28 11:31:39
|
なかだです。 At Thu, 27 Feb 2003 20:29:44 +0900, KATO Kazuyoshi wrote: > あとは、マウスボタンに任意の外部プログラムの実行を割り当てられるように > して、mlterm-menu を設定すれば、ポップアップメニューのように使えて便利 > だと思うのですけど、まだそこまではやっていません :-) ~/.mlterm/mainでconf_menu_pathを設定すればいいのではと思ったん ですが、現状では無視されてますね。 > On Wed, 26 Feb 2003 00:36:00 +0900 (JST) > hs...@mt... (Hironori SAKAMOTO) wrote: > > OPEN_PTY や NEXT_PTY なんかも出来るとさらにいいかも。 逆にキーボードだけでもそういった操作ができてほしいので、ショー トカットとマウスボタンを統一して取り扱うようにしたほうがいいよ うな。 Index: xwindow/x_screen.c =================================================================== RCS file: /cvsroot/mlterm/mlterm/xwindow/x_screen.c,v retrieving revision 1.47 diff -u -2 -p -r1.47 x_screen.c --- xwindow/x_screen.c 15 Feb 2003 12:07:11 -0000 1.47 +++ xwindow/x_screen.c 28 Feb 2003 11:27:16 -0000 @@ -2373,5 +2373,5 @@ config_menu( &global_x , &global_y , &child) ; - ml_term_start_config_menu( screen->term , NULL , global_x , global_y , + ml_term_start_config_menu( screen->term , screen->conf_menu_path , global_x , global_y , DisplayString(screen->window.display)) ; } @@ -6141,5 +6141,10 @@ x_screen_new( screen->bel_mode = bel_mode ; - + + if( conf_menu_path) + { + screen->conf_menu_path = strdup( conf_menu_path) ; + } + screen->use_extended_scroll_shortcut = use_extended_scroll_shortcut ; @@ -6283,4 +6288,9 @@ x_screen_delete( } + if( screen->conf_menu_path) + { + free( screen->conf_menu_path) ; + } + free( screen) ; Index: xwindow/x_screen.h =================================================================== RCS file: /cvsroot/mlterm/mlterm/xwindow/x_screen.h,v retrieving revision 1.12 diff -u -2 -p -r1.12 x_screen.h --- xwindow/x_screen.h 15 Feb 2003 12:07:12 -0000 1.12 +++ xwindow/x_screen.h 28 Feb 2003 11:27:16 -0000 @@ -125,4 +125,6 @@ typedef struct x_screen int8_t use_extended_scroll_shortcut ; + char * conf_menu_path ; + } x_screen_t ; -- --- 僕の前にBugはない。 --- 僕の後ろにBugはできる。 中田 伸悦 |