* tty.h (printwstr): Added a function to print a string

left-aligned in a bounded box.
This commit is contained in:
Roland Illig 2005-01-27 21:44:00 +00:00
parent 0e1609c2f9
commit ff6e206b42
2 changed files with 11 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2005-01-26 Roland Illig <roland.illig@gmx.de>
* tty.h (printwstr): Added a function to print a string
left-aligned in a bounded box.
2005-01-25 Roland Illig <roland.illig@gmx.de>
* unixcompat.h: Provides macros and functions that are missing in

View File

@ -32,4 +32,10 @@ int got_interrupt (void);
void mc_refresh (void);
/* print a string left-aligned, adjusted to exactly LEN characters */
static inline void printwstr (const char *s, int len)
{
printw("%-*.*s", len, len, s);
}
#endif