bug-ncurses
[Top][All Lists]
Advanced

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

Re: What is the max number of items a menu can have?


From: Thomas Dickey
Subject: Re: What is the max number of items a menu can have?
Date: Wed, 1 Aug 2007 18:34:59 -0400 (EDT)

On Wed, 1 Aug 2007, Bryan Christ wrote:

Well, I'm writing a "file chooser" dialog, and I was thinking things might bust on a readdir64(). Hopefully, that's >32767 is a rare case.

It's probably fairly rare - though (back around ten years ago...) when we implemented filename-completion in vile, one of the developers was at the time using it in a $dayjob task that had about 30,000 files in a directory.

(vile builds a temporary buffer with all of the names sorted, and uses that data in the process - non-curses...).


W. McBrine,

I assume this be true for pdcurses also?

Thomas Dickey wrote:
On Wed, 1 Aug 2007, Bryan Christ wrote:

Does anyone know?

The count is stored in a short (though 32767 items might be hard to display, and there are probably other limiting factors).



--
Thomas E. Dickey
http://invisible-island.net
ftp://invisible-island.net




reply via email to

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