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.
@@ -36,6 +36,12 @@ int | ||
36 | 36 | int i_key ) |
37 | 37 | { |
38 | 38 | 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; | |
39 | 45 | case NCURSES_KEY_ENTER: |
40 | 46 | TuiKey_ChangeMode( TUIKEY_MODE_VMLIST, REQUEST_CMD_NONE, |
41 | 47 | HVISOR_ID_NONE, GUEST_ID_NONE, NULL, 0x00, |
@@ -36,6 +36,12 @@ int | ||
36 | 36 | int i_key ) |
37 | 37 | { |
38 | 38 | 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; | |
39 | 45 | case NCURSES_KEY_ENTER: |
40 | 46 | TuiKey_ChangeMode( TUIKEY_MODE_VMLIST, REQUEST_CMD_NONE, |
41 | 47 | HVISOR_ID_NONE, GUEST_ID_NONE, NULL, 0x00, |
@@ -37,12 +37,25 @@ int | ||
37 | 37 | int i_key ) |
38 | 38 | { |
39 | 39 | int i_maxlines; |
40 | + TuiGuest_LineAttr t_attr; | |
41 | + char *pstr_temp; | |
40 | 42 | |
41 | 43 | 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; | |
42 | 50 | case NCURSES_KEY_ENTER: |
51 | + pstr_temp = TextBuf_GetLine( <_guest.t_textbuf, | |
52 | + lt_guest.i_now_line, (void *)&t_attr ); | |
53 | + ErrInfo_DebugMsg( t_attr.str_key ); | |
54 | + /* | |
43 | 55 | TuiKey_ChangeMode( TUIKEY_MODE_VMLIST, REQUEST_CMD_NONE, |
44 | 56 | HVISOR_ID_NONE, GUEST_ID_NONE, NULL, 0x00, |
45 | 57 | TUIKEY_MODE_NONE, NULL ); |
58 | + */ | |
46 | 59 | break; |
47 | 60 | case 'j': |
48 | 61 | i_maxlines = TextBuf_GetMaxLine( <_guest.t_textbuf ); |
@@ -38,6 +38,12 @@ int | ||
38 | 38 | int i_max; |
39 | 39 | |
40 | 40 | 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; | |
41 | 47 | case NCURSES_KEY_ENTER: |
42 | 48 | TuiKey_ChangeMode( TUIKEY_MODE_VMLIST, REQUEST_CMD_NONE, |
43 | 49 | HVISOR_ID_NONE, GUEST_ID_NONE, NULL, 0x00, |
@@ -38,6 +38,12 @@ int | ||
38 | 38 | int i_maxlines; |
39 | 39 | |
40 | 40 | 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; | |
41 | 47 | case NCURSES_KEY_ENTER: |
42 | 48 | TuiKey_ChangeMode( TUIKEY_MODE_VMLIST, REQUEST_CMD_NONE, |
43 | 49 | HVISOR_ID_NONE, GUEST_ID_NONE, NULL, 0x00, |