bug-ncurses
[Top][All Lists]
Advanced

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

Re: Ncurses menu library


From: Thomas Dickey
Subject: Re: Ncurses menu library
Date: Mon, 06 Jul 2009 19:35:11 -0400
User-agent: Mutt/1.5.18 (2008-05-17)

On Thu, Jul 02, 2009 at 05:07:59PM -0700, bugzilla wrote:
> 
> Hi,
> 
> i was wondering how can i change the number of spaces between item name and
> his description.
> i seen set_menu_spacing but that can't be larger than TABIZE and me i need
> to right
> justify the description, like this:
> 
> [item1]<======== Terminal Size =======>[description]
> 
> Is it possible with ncurses menu library ?

You can set TABSIZE (since it's a global variable).  Looking at
set_menu_spacing, I see it's only checked during that function, so you could
set TABSIZE, call set_menu_spacing and restore TABSIZE.

(sounds ugly, but it would work for ncurses)

-- 
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]