diff --git a/src/ChangeLog b/src/ChangeLog index 8047f7b66..f4fc64acb 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -4,6 +4,7 @@ warnings. st_ctime is not the creation time, but the status change time. * achown.c: Likewise. + * layout.c: Likewise. 2005-09-04 Roland Illig diff --git a/src/achown.c b/src/achown.c index b1674fd4b..1c5faadb6 100644 --- a/src/achown.c +++ b/src/achown.c @@ -210,7 +210,7 @@ static void update_mode (Dlg_head * h) print_flags (); attrset (COLOR_NORMAL); dlg_move (h, BY + 2, 9); - printw ("%12o", get_mode ()); + tty_printf ("%12o", get_mode ()); send_message (h->current, WIDGET_FOCUS, 0); } @@ -357,8 +357,9 @@ static void chown_refresh (void) if (!single_set){ dlg_move (ch_dlg, 3, 54); - printw (const_cast(char *, _("%6d of %d")), files_on_begin - (current_panel->marked) + 1, - files_on_begin); + tty_printf (_("%6d of %d"), + files_on_begin - (current_panel->marked) + 1, + files_on_begin); } print_flags (); @@ -371,9 +372,9 @@ static void chown_info_update (void) /* name && mode */ dlg_move (ch_dlg, 3, 8); - printw ("%s", name_trunc (fname, 45)); + tty_printf ("%s", name_trunc (fname, 45)); dlg_move (ch_dlg, BY + 2, 9); - printw ("%12o", get_mode ()); + tty_printf ("%12o", get_mode ()); /* permissions */ update_permissions (); diff --git a/src/layout.c b/src/layout.c index 5832a04cf..9e3727df7 100644 --- a/src/layout.c +++ b/src/layout.c @@ -214,12 +214,12 @@ static void update_split (void) attrset (COLOR_NORMAL); dlg_move (layout_dlg, 6, 6); - printw ("%03d", _first_panel_size); + tty_printf ("%03d", _first_panel_size); dlg_move (layout_dlg, 6, 18); if (_horizontal_split) - printw ("%03d", height - _first_panel_size); + tty_printf ("%03d", height - _first_panel_size); else - printw ("%03d", COLS - _first_panel_size); + tty_printf ("%03d", COLS - _first_panel_size); } static int b2left_cback (int action) @@ -294,7 +294,7 @@ layout_callback (struct Dlg_head *h, dlg_msg_t msg, int parm) dlg_move (h, 9, 16 + first_width); addstr (output_lines_label); dlg_move (h, 9, 10 + first_width); - printw ("%02d", _output_lines); + tty_printf ("%02d", _output_lines); } } return MSG_HANDLED; @@ -336,7 +336,7 @@ layout_callback (struct Dlg_head *h, dlg_msg_t msg, int parm) old_output_lines = _output_lines; attrset (COLOR_NORMAL); dlg_move (h, 9, 10 + first_width); - printw ("%02d", _output_lines); + tty_printf ("%02d", _output_lines); } } return MSG_HANDLED; @@ -840,7 +840,7 @@ void print_vfs_message (const char *msg, ...) move (0, 0); attrset (NORMAL_COLOR); - printw ("%-*s", COLS-1, str); + tty_printf ("%-*s", COLS-1, str); /* Restore cursor position */ move(row, col);