* tty.h: Added tty_printf().
* tty.c: Likewise.
Этот коммит содержится в:
родитель
6bbcb8ef76
Коммит
612f1555eb
@ -1,6 +1,8 @@
|
||||
2005-09-04 Roland Illig <roland.illig@gmx.de>
|
||||
|
||||
* main.h: Removed unused variables acs_hline and acs_vline.
|
||||
* tty.h: Added tty_printf().
|
||||
* tty.c: Likewise.
|
||||
|
||||
2005-09-01 Roland Illig <roland.illig@gmx.de>
|
||||
|
||||
|
15
src/tty.c
15
src/tty.c
@ -27,6 +27,7 @@
|
||||
#include <config.h>
|
||||
|
||||
#include <signal.h>
|
||||
#include <stdarg.h>
|
||||
|
||||
#include "global.h"
|
||||
#include "main.h" /* for slow_terminal */
|
||||
@ -183,3 +184,17 @@ tty_print_vline(int top, int left, int length)
|
||||
tty_print_one_vline();
|
||||
}
|
||||
}
|
||||
|
||||
extern void
|
||||
tty_printf(const char *fmt, ...)
|
||||
{
|
||||
va_list args;
|
||||
|
||||
va_start(args, fmt);
|
||||
#ifdef HAVE_SLANG
|
||||
SLsmg_vprintf(str_unconst(fmt), args);
|
||||
#else
|
||||
vw_printw(stdscr, fmt, args);
|
||||
#endif
|
||||
va_end(args);
|
||||
}
|
||||
|
@ -45,6 +45,7 @@ extern void tty_print_one_vline(void);
|
||||
extern void tty_print_one_hline(void);
|
||||
extern void tty_print_vline(int top, int left, int length);
|
||||
extern void tty_print_hline(int top, int left, int length);
|
||||
extern void tty_printf(const char *, ...);
|
||||
|
||||
/* legacy interface */
|
||||
|
||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user