Browse Source

Renamed mc_refresh() to tty_refresh().

Andrew Borodin 16 years ago
parent
commit
069aab9ebc
10 changed files with 26 additions and 26 deletions
  1. 1 1
      edit/editcmd.c
  2. 1 1
      src/background.c
  3. 1 1
      src/dialog.c
  4. 12 12
      src/file.c
  5. 2 2
      src/find.c
  6. 4 4
      src/layout.c
  7. 1 1
      src/learn.c
  8. 2 2
      src/main.c
  9. 1 1
      src/screen.c
  10. 1 1
      src/tty/key.c

+ 1 - 1
edit/editcmd.c

@@ -135,7 +135,7 @@ void edit_refresh_cmd (WEdit * edit)
     }
     touchwin(stdscr);
 #endif /* !HAVE_SLANG */
-    mc_refresh();
+    tty_refresh ();
     doupdate();
 }
 

+ 1 - 1
src/background.c

@@ -348,7 +348,7 @@ background_attention (int fd, void *closure)
 	g_free (data [i]);
 
     do_refresh ();
-    mc_refresh ();
+    tty_refresh ();
     doupdate ();
     return 0;
 }

+ 1 - 1
src/dialog.c

@@ -552,7 +552,7 @@ static inline void dialog_handle_key (Dlg_head *h, int d_key)
 #else
 	touchwin (stdscr);
 #endif /* HAVE_SLANG */
-	mc_refresh ();
+	tty_refresh ();
 	doupdate ();
 	break;
 

+ 12 - 12
src/file.c

@@ -429,7 +429,7 @@ copy_file_file (FileOpContext *ctx, const char *src_path, const char *dst_path,
 	file_progress_show_target (ctx, dst_path) == FILE_ABORT)
 	return FILE_ABORT;
 
-    mc_refresh ();
+    tty_refresh ();
 
     while (mc_stat (dst_path, &sb2) == 0) {
 	if (S_ISDIR (sb2.st_mode)) {
@@ -584,7 +584,7 @@ copy_file_file (FileOpContext *ctx, const char *src_path, const char *dst_path,
 
     return_status = file_progress_show (ctx, 0, file_size);
 
-    mc_refresh ();
+    tty_refresh ();
 
     if (return_status != FILE_CONT)
 	goto ret;
@@ -684,7 +684,7 @@ copy_file_file (FileOpContext *ctx, const char *src_path, const char *dst_path,
 		return_status =
 		    file_progress_show (ctx, n_read_total + ctx->do_reget, file_size);
 	    }
-	    mc_refresh ();
+	    tty_refresh ();
 	    if (return_status != FILE_CONT)
 		goto ret;
 	}
@@ -998,7 +998,7 @@ move_file_file (FileOpContext *ctx, const char *s, const char *d,
 	|| file_progress_show_target (ctx, d) == FILE_ABORT)
 	return FILE_ABORT;
 
-    mc_refresh ();
+    tty_refresh ();
 
     while (mc_lstat (s, &src_stats) != 0) {
 	/* Source doesn't exist */
@@ -1073,7 +1073,7 @@ move_file_file (FileOpContext *ctx, const char *s, const char *d,
 	|| (return_status = file_progress_show (ctx, 0, 0)) != FILE_CONT)
 	return return_status;
 
-    mc_refresh ();
+    tty_refresh ();
 
   retry_src_remove:
     if (mc_unlink (s)) {
@@ -1109,7 +1109,7 @@ move_dir_dir (FileOpContext *ctx, const char *s, const char *d,
 	file_progress_show_target (ctx, d) == FILE_ABORT)
 	return FILE_ABORT;
 
-    mc_refresh ();
+    tty_refresh ();
 
     mc_stat (s, &sbuf);
     dstat_ok = (mc_stat (d, &dbuf) == 0);
@@ -1180,7 +1180,7 @@ move_dir_dir (FileOpContext *ctx, const char *s, const char *d,
 	|| (return_status = file_progress_show (ctx, 0, 0)) != FILE_CONT)
 	goto ret;
 
-    mc_refresh ();
+    tty_refresh ();
     if (ctx->erase_at_end) {
 	for (; erase_list && return_status != FILE_ABORT;) {
 	    if (S_ISDIR (erase_list->st_mode)) {
@@ -1219,7 +1219,7 @@ erase_file (FileOpContext *ctx, const char *s, off_t *progress_count,
 
     if (file_progress_show_deleting (ctx, s) == FILE_ABORT)
 	return FILE_ABORT;
-    mc_refresh ();
+    tty_refresh ();
 
     if (progress_count && mc_lstat (s, &buf)) {
 	/* ignore, most likely the mc_unlink fails, too */
@@ -1284,7 +1284,7 @@ recursive_erase (FileOpContext *ctx, const char *s, off_t *progress_count,
 	return return_status;
     if (file_progress_show_deleting (ctx, s) == FILE_ABORT)
 	return FILE_ABORT;
-    mc_refresh ();
+    tty_refresh ();
 
     while (my_rmdir (s)) {
 	return_status =
@@ -1336,7 +1336,7 @@ erase_dir (FileOpContext *ctx, const char *s, off_t *progress_count,
 
     if (file_progress_show_deleting (ctx, s) == FILE_ABORT)
 	return FILE_ABORT;
-    mc_refresh ();
+    tty_refresh ();
 
     /* The old way to detect a non empty directory was:
        error = my_rmdir (s);
@@ -1378,7 +1378,7 @@ erase_dir_iff_empty (FileOpContext *ctx, const char *s)
 
     if (file_progress_show_deleting (ctx, s) == FILE_ABORT)
 	return FILE_ABORT;
-    mc_refresh ();
+    tty_refresh ();
 
     if (1 != check_dir_is_empty (s))	/* not empty or error */
 	return FILE_CONT;
@@ -2112,7 +2112,7 @@ panel_operate (void *source_panel, FileOperation operation,
 		&& file_progress_show (ctx, 0, 0) == FILE_ABORT)
 		goto clean_up;
 
-	    mc_refresh ();
+	    tty_refresh ();
 	}			/* Loop for every file */
     }				/* Many entries */
   clean_up:

+ 2 - 2
src/find.c

@@ -665,7 +665,7 @@ search_content (Dlg_head *h, const char *directory, const char *filename)
     g_snprintf (buffer, sizeof (buffer), _("Grepping in %s"), str_trunc (filename, FIND2_X_USE));
 
     status_update (buffer);
-    mc_refresh ();
+    tty_refresh ();
 
     enable_interrupt_key ();
     got_interrupt ();
@@ -897,7 +897,7 @@ do_search (struct Dlg_head *h)
 	    tty_setcolor (DLG_NORMALC (h));
 	    dlg_move (h, FIND2_Y - 7, FIND2_X - 4);
 	    addch (rotating_dash [pos]);
-	    mc_refresh ();
+	    tty_refresh ();
 	}
     } else
 	goto do_search_begin;

+ 4 - 4
src/layout.c

@@ -631,7 +631,7 @@ clr_scr (void)
 {
     standend ();
     dlg_erase (midnight_dlg);
-    mc_refresh ();
+    tty_refresh ();
     doupdate ();
 }
 
@@ -826,7 +826,7 @@ void set_hintbar(const char *str)
 {
     label_set_text (the_hint, str);
     if (ok_to_refresh > 0)
-        mc_refresh();
+        tty_refresh();
 }
 
 void print_vfs_message (const char *msg, ...)
@@ -857,7 +857,7 @@ void print_vfs_message (const char *msg, ...)
 
 	/* Restore cursor position */
 	tty_gotoyx (row, col);
-	mc_refresh ();
+	tty_refresh ();
 	return;
     }
 
@@ -879,7 +879,7 @@ void rotate_dash (void)
     tty_gotoyx (0, COLS - 1);
     tty_setcolor (NORMAL_COLOR);
     addch (rotating_dash [pos]);
-    mc_refresh ();
+    tty_refresh ();
     pos++;
 }
 

+ 1 - 1
src/learn.c

@@ -93,7 +93,7 @@ _("Please press the %s\n"
 "If you want to escape, press a single Escape key\n"
 "and wait as well."), 
         _(key_name_conv_tab [action - B_USER].longname));
-    mc_refresh ();
+    tty_refresh ();
     if (learnkeys [action - B_USER].sequence != NULL) {
 	g_free (learnkeys [action - B_USER].sequence);
 	learnkeys [action - B_USER].sequence = NULL;

+ 2 - 2
src/main.c

@@ -537,7 +537,7 @@ void
 repaint_screen (void)
 {
     do_refresh ();
-    mc_refresh ();
+    tty_refresh ();
 }
 
 /* Wrapper for do_subshell_chdir, check for availability of subshell */
@@ -748,7 +748,7 @@ load_prompt (int fd, void *unused)
 	 * automatically: force a cursor update and a screen refresh
 	 */
 	update_cursor (midnight_dlg);
-	mc_refresh ();
+	tty_refresh ();
     }
     update_prompt = 1;
     return 0;

+ 1 - 1
src/screen.c

@@ -2093,7 +2093,7 @@ start_search (WPanel *panel)
         panel->search_char[0] = '\0';
         panel->search_chpoint = 0;
 	display_mini_info (panel);
-	mc_refresh ();
+	tty_refresh ();
     }
 }
 

+ 1 - 1
src/tty/key.c

@@ -1069,7 +1069,7 @@ get_event (struct Gpm_Event *event, int redo_event, int block)
     static int dirty = 3;
 
     if ((dirty == 3) || is_idle ()) {
-	mc_refresh ();
+	tty_refresh ();
 	doupdate ();
 	dirty = 1;
     } else

Some files were not shown because too many files changed in this diff