[Top][All Lists]

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

Re: Truncate instead of wrap

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)

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).

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.
I have not tried resizing window and testing.

reply via email to

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