www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2001/10/16/11:00:11

Sender: salvador AT delorie DOT com
Message-ID: <3BCC4B42.10188449@inti.gov.ar>
Date: Tue, 16 Oct 2001 11:59:14 -0300
From: salvador <salvador AT inti DOT gov DOT ar>
Organization: INTI
X-Mailer: Mozilla 4.77 [en] (X11; U; Linux 2.2.19 i686)
X-Accept-Language: es-AR, en, es
MIME-Version: 1.0
To: djgpp AT delorie DOT com
Subject: Re: Turbo Vision 1.1.3 release
References: <200110151458 DOT f9FEw1228742 AT delorie DOT com> <3BCBE83D DOT 2D943FBF AT ma DOT tum DOT de>
Reply-To: djgpp AT delorie DOT com

Waldemar Schultz wrote:

> salvador schrieb:
> >   Turbo Vision is a Text User Interface and programing framework. For more
> > information visit:
> >
> > http://www.geocities.com/setedit2001/tvision.html
> >
> >   This mail is to announce the release of Turbo Vision 1.1.3. This release
> > just adds support for gcc 3.1 but is also a switch to the "stable" state. So
> > in the next weeks I'll only fix compilation issues and without increasing
> > the release number.
> >   A list of changes in each release can be found in the homepage.
> >   Sources of the library can be downloaded from:
> >
> > http://www.simtel.net/gnudlpage.php?product=/gnu/djgpp/v2tk/tv113s.zip&name=tv113s.zip
>
> Many thanks for your great work.
>
> in the DEMO directory I made the following changes for some
> 'beautification' :-)
>
> File ascii.cc
> 216       //sprintf(str, "%s%c%s%3d%s%2X",
> 217       sprintf(str, "%s%c%s%3d%s%2X  ", //wsz: to print 32 characters
>
> 220                    //" Hex ", (int)asciiChar);
> 221                    " Hex: ", (int)asciiChar); //wsz: :-)
>
> File calendar.cc
> 150       //sprintf(str, "\036%15s %4d\037", monthNames[month], year);
> 151       sprintf(str, "\036%12s %4d \037", monthNames[month], year);
>           //wsz: to see full year and down arrow

Thanks.

> a question: how complicated would it be to change
> the sorting algorithm of "Open a File"

Take a look at /include/tv/filecoll.h I added some goodies to TV that control it:

const unsigned fcolAlphabetical=0, fcolDirsFirst=1, fcolDirsLast=2,
               fcolTypeMask=0x1F;
const unsigned fcolCaseInsensitive=0x20, fcolCaseSensitive=0, fcolCaseBit=5;
const unsigned fcolParentLast=0x40, fcolParentFirst=0, fcolParentBit=6;
const unsigned fcolDotsLast=0x80, fcolDotsFirst=0, fcolDotsBit=7;
const unsigned fcolHideEndTilde=0x100; // *~
const unsigned fcolHideEndBkp  =0x200; // *.bkp
const unsigned fcolHideStartDot=0x400; // .*
const unsigned fcolHideBit=8, fcolHideMask=0xF00;

They should be used to set:

static unsigned sortOptions;

Member of TFileCollection.

I use them for setedit.

SET

--
Salvador Eduardo Tropea (SET). (Electronics Engineer)
Visit my home page: http://welcome.to/SetSoft or
http://www.geocities.com/SiliconValley/Vista/6552/
Alternative e-mail: set AT computer DOT org set AT ieee DOT org
Address: Curapaligue 2124, Caseros, 3 de Febrero
Buenos Aires, (1678), ARGENTINA Phone: +(5411) 4759 0013



- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019