From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16511 invoked from network); 1 Dec 2001 13:12:32 -0000 Received: from sunsite.dk (130.225.247.90) by ns1.primenet.com.au with SMTP; 1 Dec 2001 13:12:32 -0000 Received: (qmail 2600 invoked by alias); 1 Dec 2001 13:12:22 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 16297 Received: (qmail 2583 invoked from network); 1 Dec 2001 13:12:22 -0000 From: Borsenkow Andrej To: =?koi8-r?Q?Ra=FAl_N=FA=F1ez_de_Arenas_Coronado?= Cc: Zsh Subject: Re: Slang instead ncurses In-Reply-To: References: Content-Type: text/plain; charset=KOI8-R Content-Transfer-Encoding: quoted-printable X-Mailer: Evolution/0.99.2 (Preview Release) Date: 01 Dec 2001 16:12:12 +0300 Message-Id: <1007212334.2326.0.camel@localhost.localdomain> Mime-Version: 1.0 On =F3=C2=D4, 2001-12-01 at 12:14, Ra=FAl N=FA=F1ez de Arenas Coronado = wrote: > Hello zsh-workers :)) >=20 > I haven't took a deep look at the code, but I think that ncurses > is used only in the terminfo module and, obviously, in the few screen > handling routines of zsh, =20 These "few routines" are the heart of zsh ZLE :-) Remove them and half of the zsh functionality is lost. and I will make a suggestion: how about > switching to slang? I think that it's fully ncurses compatible, less > bloated and full featured. >=20 > I don't know if it is really needed, because I don't know the use > of ncurses throughout the zsh code, but IMHO slang is far better. >=20 > Moreover: how is curses used in zsh? Is *really* needed to make > zsh dependent of the curses library or could it statically link the > few needed parts? >=20 zsg does not actually use either termcap or curses. It needs them only to get terminal capabilities; for this it is using several termcap functions that are emulates by curses as well.=20 curses module just provides convinient access to terminal capabilities using curses names, no more. There is no need to switch to slang. Either termcap or curses are available on every system; slang is not. Given that we do not use any = of the features provided by slang (for that matter we do not use any of = the features provided by termcap or curses either :-) there is no reason to use it. -andrej