OSDN Git Service

updated wake_up_terminal().
authormaqiyuan <maqiyuan@users.sourceforge.jp>
Sun, 7 Sep 2014 16:58:37 +0000 (00:58 +0800)
committermaqiyuan <maqiyuan@users.sourceforge.jp>
Sun, 7 Sep 2014 16:58:37 +0000 (00:58 +0800)
src/texsourc/itex.c
src/texsourc/tex0.c
src/texsourc/tex2.c
src/texsourc/tex3.c
src/texsourc/tex8.c
src/texsourc/tex9.c
src/texsourc/utils.c
src/texsourc/yandytex.h

index edeada4..6887b49 100644 (file)
@@ -1879,6 +1879,7 @@ boolean load_fmt_file (void)
   return true;\r
 \r
 bad_fmt:\r
+  wake_up_terminal();\r
   puts("(Fatal format file error; I'm stymied)");\r
 \r
   return false;\r
index 533a684..7436584 100644 (file)
@@ -699,6 +699,7 @@ boolean init_terminal (void)
 // failed to find input file name\r
   while (true)\r
   {\r
+    wake_up_terminal();\r
     fputs("**", stdout);\r
     update_terminal();\r
     flag = input_ln(stdin, true);\r
index 0782db5..be0ac25 100644 (file)
@@ -706,7 +706,7 @@ void firm_up_the_line (void)
   if (pausing > 0)\r
     if (interaction > nonstop_mode)\r
     {\r
-      ;\r
+      wake_up_terminal();\r
       print_ln();\r
 \r
       if (start < limit)\r
index 3d6f7af..bb2b733 100644 (file)
@@ -972,6 +972,7 @@ void read_toks (integer n, pointer r)
             prompt_input("");\r
           else\r
           {\r
+            wake_up_terminal();\r
             print_ln();\r
             sprint_cs(r);\r
             prompt_input("=");\r
@@ -1656,7 +1657,7 @@ void prompt_file_name_(const char * s, str_number e)
   integer k;\r
 \r
   if (interaction == scroll_mode)\r
-    do_nothing();\r
+    wake_up_terminal();\r
 \r
   if (!strcmp("input file name", s))\r
     print_err("I can't find file `");\r
index 2c2ca40..58405e9 100644 (file)
@@ -1059,7 +1059,7 @@ void show_whatever (void)
         get_token();\r
 \r
         if (interaction == error_stop_mode)\r
-          do_nothing();\r
+          wake_up_terminal();\r
 \r
         print_nl("> ");\r
 \r
@@ -1079,7 +1079,7 @@ void show_whatever (void)
         p = the_toks();\r
 \r
         if (interaction == error_stop_mode)\r
-          do_nothing();\r
+          wake_up_terminal();\r
 \r
         print_nl("> ");\r
         token_show(temp_head);\r
index e6fab3a..2ddd3ce 100644 (file)
@@ -49,7 +49,10 @@ boolean open_fmt_file (void)
       goto found;\r
   \r
     if (knuth_flag)\r
+    {\r
+      wake_up_terminal();\r
       printf("%s;%s\n", "Sorry, I can't find that format", " will try the default.");\r
+    }\r
     else\r
     {\r
       name_of_file[name_length + 1] = '\0';\r
@@ -68,7 +71,10 @@ boolean open_fmt_file (void)
   if (!w_open_in(fmt_file))\r
   {\r
     if (knuth_flag)\r
+    {\r
+      wake_up_terminal();\r
       printf("%s!\n", "I can't find the default format file");\r
+    }\r
     else\r
     {\r
       name_of_file[name_length + 1] = '\0';\r
@@ -249,6 +255,8 @@ void close_files_and_terminate (void)
       }\r
   }\r
 #endif\r
+  \r
+  wake_up_terminal();\r
 \r
   {\r
     if (total_pages == 0)\r
index d509f1c..165661c 100644 (file)
@@ -26,6 +26,10 @@ void do_nothing(void)
 {\r
   /* todo */\r
 }\r
+void wake_up_terminal (void)\r
+{\r
+  /* todo */\r
+}\r
 /* sec 0034 */\r
 void update_terminal(void)\r
 {\r
@@ -70,7 +74,7 @@ void append_lc_hex (ASCII_code c)
 void print_err (const char * s)\r
 {\r
   if (interaction == error_stop_mode)\r
-    do_nothing();\r
+    wake_up_terminal();\r
   \r
   print_nl("! ");\r
   prints(s);\r
@@ -78,6 +82,7 @@ void print_err (const char * s)
 /* sec 0071 */\r
 void prompt_input(const char * s)\r
 {\r
+  wake_up_terminal();\r
   prints(s);\r
   term_input();\r
 }\r
index 0bc133b..aadf27c 100644 (file)
@@ -821,6 +821,7 @@ extern char * unixify (char * t);
 /* sec 79 */\r
 extern void node_list_display (integer p);\r
 extern void do_nothing (void);\r
+extern void wake_up_terminal (void);\r
 extern void update_terminal (void);\r
 extern void check_full_save_stack (void);\r
 extern void push_input (void);\r