bug-ncurses
[Top][All Lists]
Advanced

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

Re: Truncate instead of wrap


From: Thomas Dickey
Subject: Re: Truncate instead of wrap
Date: Tue, 09 Dec 2008 20:28:06 -0500
User-agent: Mutt/1.5.18 (2008-05-17)

On Tue, Dec 09, 2008 at 04:51:36AM -0800, Virchanza wrote:
> 
> 
> 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).

> Also, if it's physically possible, is there away of resizing the terminal to
> make sure that it is of a minimum specified width?

not in ncurses

(some terminal emulators can respond to control sequences that do this)
 
> Another little problem. Under Linux, using the terminal emulator that comes
> with the Xfce Desktop Environment, if I start my program full screen and
> then unmaximise it, the window goes blank and remains blank. Should the
> window not be repainted automatically?

That depends on the application that's running inside the terminal.

-- 
Thomas E. Dickey <address@hidden>
http://invisible-island.net
ftp://invisible-island.net

Attachment: signature.asc
Description: Digital signature


reply via email to

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