Use number of tty columns that is passed in user_info instead of

getting it directly in the lbuf code.
This commit is contained in:
Todd C. Miller
2010-03-17 21:25:32 -04:00
parent d5ae4c7d87
commit 038ec569de
7 changed files with 26 additions and 42 deletions

View File

@@ -28,9 +28,10 @@ struct lbuf {
int indent;
int len;
int size;
int cols;
};
void lbuf_init (struct lbuf *, char *, int, int);
void lbuf_init (struct lbuf *, char *, int, int, int);
void lbuf_destroy (struct lbuf *);
void lbuf_append (struct lbuf *, ...);
void lbuf_append_quoted (struct lbuf *, const char *, ...);