• R/O
  • HTTP
  • SSH
  • HTTPS

コミット

タグ
未設定

よく使われているワード(クリックで追加)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Virtual machine Management Terminal User Interface


コミットメタ情報

リビジョン3c24af9efa5b3cba1586bb768422ca9fe9eb8359 (tree)
日時2023-06-21 22:03:41
作者Koine Yuusuke(koinec) <koinec@user...>
コミッターKoine Yuusuke(koinec)

ログメッセージ

Add Ctrl+k key event that return from info. window to vmlist window.

変更サマリ

差分

--- a/src/tuiconsole.c
+++ b/src/tuiconsole.c
@@ -36,6 +36,12 @@ int
3636 int i_key )
3737 {
3838 switch( i_key ) {
39+ case NCURSES_KEY_ESC:
40+ case NCURSES_Ctrl('k'):
41+ TuiKey_ChangeMode( TUIKEY_MODE_VMLIST, REQUEST_CMD_NONE,
42+ HVISOR_ID_NONE, GUEST_ID_NONE, NULL, 0x00,
43+ TUIKEY_MODE_NONE, NULL );
44+ break;
3945 case NCURSES_KEY_ENTER:
4046 TuiKey_ChangeMode( TUIKEY_MODE_VMLIST, REQUEST_CMD_NONE,
4147 HVISOR_ID_NONE, GUEST_ID_NONE, NULL, 0x00,
--- a/src/tuierrinfo.c
+++ b/src/tuierrinfo.c
@@ -36,6 +36,12 @@ int
3636 int i_key )
3737 {
3838 switch( i_key ) {
39+ case NCURSES_KEY_ESC:
40+ case NCURSES_Ctrl('k'):
41+ TuiKey_ChangeMode( TUIKEY_MODE_VMLIST, REQUEST_CMD_NONE,
42+ HVISOR_ID_NONE, GUEST_ID_NONE, NULL, 0x00,
43+ TUIKEY_MODE_NONE, NULL );
44+ break;
3945 case NCURSES_KEY_ENTER:
4046 TuiKey_ChangeMode( TUIKEY_MODE_VMLIST, REQUEST_CMD_NONE,
4147 HVISOR_ID_NONE, GUEST_ID_NONE, NULL, 0x00,
--- a/src/tuiguest.c
+++ b/src/tuiguest.c
@@ -37,12 +37,25 @@ int
3737 int i_key )
3838 {
3939 int i_maxlines;
40+ TuiGuest_LineAttr t_attr;
41+ char *pstr_temp;
4042
4143 switch( i_key ) {
44+ case NCURSES_KEY_ESC:
45+ case NCURSES_Ctrl('k'):
46+ TuiKey_ChangeMode( TUIKEY_MODE_VMLIST, REQUEST_CMD_NONE,
47+ HVISOR_ID_NONE, GUEST_ID_NONE, NULL, 0x00,
48+ TUIKEY_MODE_NONE, NULL );
49+ break;
4250 case NCURSES_KEY_ENTER:
51+ pstr_temp = TextBuf_GetLine( &lt_guest.t_textbuf,
52+ lt_guest.i_now_line, (void *)&t_attr );
53+ ErrInfo_DebugMsg( t_attr.str_key );
54+ /*
4355 TuiKey_ChangeMode( TUIKEY_MODE_VMLIST, REQUEST_CMD_NONE,
4456 HVISOR_ID_NONE, GUEST_ID_NONE, NULL, 0x00,
4557 TUIKEY_MODE_NONE, NULL );
58+ */
4659 break;
4760 case 'j':
4861 i_maxlines = TextBuf_GetMaxLine( &lt_guest.t_textbuf );
--- a/src/tuihelp.c
+++ b/src/tuihelp.c
@@ -38,6 +38,12 @@ int
3838 int i_max;
3939
4040 switch( i_key ) {
41+ case NCURSES_KEY_ESC:
42+ case NCURSES_Ctrl('k'):
43+ TuiKey_ChangeMode( TUIKEY_MODE_VMLIST, REQUEST_CMD_NONE,
44+ HVISOR_ID_NONE, GUEST_ID_NONE, NULL, 0x00,
45+ TUIKEY_MODE_NONE, NULL );
46+ break;
4147 case NCURSES_KEY_ENTER:
4248 TuiKey_ChangeMode( TUIKEY_MODE_VMLIST, REQUEST_CMD_NONE,
4349 HVISOR_ID_NONE, GUEST_ID_NONE, NULL, 0x00,
--- a/src/tuihvisor.c
+++ b/src/tuihvisor.c
@@ -38,6 +38,12 @@ int
3838 int i_maxlines;
3939
4040 switch( i_key ) {
41+ case NCURSES_KEY_ESC:
42+ case NCURSES_Ctrl('k'):
43+ TuiKey_ChangeMode( TUIKEY_MODE_VMLIST, REQUEST_CMD_NONE,
44+ HVISOR_ID_NONE, GUEST_ID_NONE, NULL, 0x00,
45+ TUIKEY_MODE_NONE, NULL );
46+ break;
4147 case NCURSES_KEY_ENTER:
4248 TuiKey_ChangeMode( TUIKEY_MODE_VMLIST, REQUEST_CMD_NONE,
4349 HVISOR_ID_NONE, GUEST_ID_NONE, NULL, 0x00,