mfiler4のgitリポジトリ
Revision | e8f1e1ffcf82a11855ae266feb0acc56b2fd3849 (tree) |
---|---|
Time | 2012-12-14 02:27:05 |
Author | ab25cq <ab25cq@gmai...> |
Commiter | ab25cq |
checked on cygwin
@@ -819,12 +819,6 @@ BOOL cmd_isearch(sObject* nextin, sObject* nextout, sRunInfo* runinfo) | ||
819 | 819 | |
820 | 820 | static void cmdline_start(char* cmdline, int cursor, BOOL quick, BOOL continue_) |
821 | 821 | { |
822 | - const int maxy = mgetmaxy(); | |
823 | - mclear_online(maxy-1); | |
824 | - mclear_online(maxy-2); | |
825 | - refresh(); | |
826 | - mmove_immediately(maxy-2, 0); | |
827 | - | |
828 | 822 | endwin(); |
829 | 823 | mreset_tty(); |
830 | 824 |
@@ -126,6 +126,7 @@ void ISearchClear(); | ||
126 | 126 | /////////////////////////////////////////////////// |
127 | 127 | int xgetch(int* meta); |
128 | 128 | void xinitscr(); |
129 | +void xendwin(); | |
129 | 130 | char* choise(char* msg, char* str[], int len, int cancel); |
130 | 131 | void merr_msg(char* msg, ...); |
131 | 132 | void msg_nonstop(char* msg, ...); |
@@ -41,6 +41,13 @@ void xinitscr() | ||
41 | 41 | } |
42 | 42 | } |
43 | 43 | |
44 | +void xendwin() | |
45 | +{ | |
46 | + keypad(stdscr, FALSE); | |
47 | + noraw(); | |
48 | + endwin(); | |
49 | +} | |
50 | + | |
44 | 51 | int xgetch(int* meta) |
45 | 52 | { |
46 | 53 | int key = getch(); |
@@ -951,7 +951,7 @@ int main(int argc, char* argv[]) | ||
951 | 951 | srandom(1000); |
952 | 952 | |
953 | 953 | /// 端末の設定を保存 /// |
954 | - //msave_ttysettings(); | |
954 | + msave_ttysettings(); | |
955 | 955 | |
956 | 956 | /// 端末を初期化 /// |
957 | 957 | mreset_tty(); |