From 43d3e330b0064c8ab962a7e77b4f26ac2c63f8ec Mon Sep 17 00:00:00 2001 From: FreeArtMan Date: Mon, 22 Jun 2015 12:35:37 +0300 Subject: Replaced print to term_printf. Fixed warning --- libterm/term_io.h | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'libterm/term_io.h') diff --git a/libterm/term_io.h b/libterm/term_io.h index 3c84972..b05af39 100644 --- a/libterm/term_io.h +++ b/libterm/term_io.h @@ -3,14 +3,18 @@ #include #include +#include #include "screen_modes.h" #include "term.h" -#define READLINE_NONE 0 -#define READLINE_ALPHA 1 -#define READLINE_TEXT 2 -#define READLINE_HIDDEN 3 +#define READLINE_NONE 0 //none +#define READLINE_ALPHA 1 //isalpsha +#define READLINE_TEXT 2 //[a-zA-Z0-9] + ispunct +#define READLINE_HIDDEN 3 //[a-zA-Z] +#define READLINE_NUMBER 4 //[0-9] +#define READLINE_SYMBOL 5 //not yet +#define READLINE_ALPHANUM 6 //not yet int term_fprint( screen_mode_e mode, FILE *f ); @@ -21,5 +25,6 @@ int term_draw_hline( term_screen *ts, int pc, int pr, int sz, char ch ); int term_getc( term_screen *ts ); int term_putc( term_screen *ts, char c ); int term_readline( term_screen *ts, char *str, size_t str_size, int flag ); +int term_printf( term_screen *ts, const char *format, ...); #endif -- cgit v1.2.3