[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

ncurses and line feed in multi line fields

From: Tjareson
Subject: ncurses and line feed in multi line fields
Date: Tue, 28 May 2013 14:38:44 -0700 (PDT)


not sure if someone can give me a hint how to solve/approach my problem:

I'm currently developing a very light database application for using on
linux text console based on ncurses. 
When working with multi line fields in forms, I run into the issue that I
don't know how to handle CR / LF at the end of a line properly. The field
buffer of a multi line field is simply always filled up with blanks until
the line ends and the next line begins. 
If I save that in mysql as field type "text" I get practically one line with
a lot of blanks between each "real" line, as the field buffer cannot handle
LF as it looks. As long as I write that back into an ncurses multi line
field of exactly the same size it is not really a problem. But when the size
is different that of course doesn't work anymore.

Any ideas or hints how to handle that with a multi line field in ncurses

View this message in context: 
Sent from the Gnu - Ncurses mailing list archive at Nabble.com.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]