|
From: | Sentinel |
Subject: | Re: Truncate instead of wrap |
Date: | Wed, 10 Dec 2008 09:21:45 +0530 (IST) |
User-agent: | Alpine 1.10 (OSX 962 2008-03-14) |
In my print method for such cases, say print_status, I check length of string and truncate if it exceeds window size (Ncurses.COLS) or print whole.If the terminal is too skinny and a line is too wide to fit on the screen, I want the line to be truncated instead of it overflowing onto the next line. Is there a simple setting to do this?no - waddch and waddstr wrap "always". (you could write a similar function that calls waddch and checks the position after each character using getyx).
I have not tried resizing window and testing.
[Prev in Thread] | Current Thread | [Next in Thread] |