* tty.h (tty_setcolor): Added.

* tty.c (tty_setcolor): Likewise.
This commit is contained in:
Roland Illig 2006-02-03 03:55:37 +00:00
parent 5c1638523e
commit 67f8cf661a
3 changed files with 15 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2006-02-03 Roland Illig <roland.illig@gmx.de>
* tty.h (tty_setcolor): Added.
* tty.c (tty_setcolor): Likewise.
2006-02-03 Pavel Tsekov <ptsekov@gmx.net>
* dir.c (do_sort): Remove unused variable.

View File

@ -30,6 +30,7 @@
#include <stdarg.h>
#include "global.h"
#include "color.h"
#include "main.h" /* for slow_terminal */
#include "tty.h"
@ -113,6 +114,12 @@ tty_getyx(int *py, int *px)
#endif
}
extern void
tty_setcolor(int c)
{
attrset(c);
}
extern void
tty_print_char(int c)
{

View File

@ -38,6 +38,9 @@ extern gboolean tty_got_interrupt(void);
extern void tty_gotoyx(int, int);
extern void tty_getyx(int *, int *);
extern void tty_setcolor(int);
extern void tty_print_char(int);
extern void tty_print_alt_char(int);
extern void tty_print_string(const char *);