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

Re: about lpe



jfm2@club-internet.fr wrote:
> 
> >
> > Someone requested comments on lpe a little while back as a possible replacement
> > for vi that was more like edit.com. I think it can be that, if it can compiled
> > as a static binary without the slang libs. I don't konw how to do that.
> >
> 
> It was not for having an edit.com clone but because most people hate
> modal editors.

No.  I asked about edit.com clones.  The reason is simple.
edit.com looks and works exactly like notepad.exe & kedit & kwrite
& wordperfect & ... you get where I'm going ?  All the GUI editors
have the same appearance and behavior as edit.com.  MS even changed
the key bindings for cut, copy and past to match Windows/KDE standard.

In other words it's something you don't have to learn at all. 

Ohh... and don't mention piece which "everyone learns in collage".  The
majority of people never went to university at all and Computers are
now cheap to the point where US Minimum wage earners can buy one.
( 12 easy payments of $ 65 for this new $500 PC :).  Jamaican Minimum
wage is a different story :(
 
> I forgot about static linking.  I have looked at slang and lpe would be
> still smaller than VI
> 
> > lpe is only  96493, /bin/vi is 437428 (I suppose vi can be compiled to fill
> > less)
> >
> 
> I suspect it has curses compiled statitic in it.

For shame.  How did MS make the Win95 version so small :)
ls -l edit.com -rw-r--r-- 1 root root 69886 Jul 11  1995 edit.com 

> > In screen.c from line 138 I've changed this:
> >
> > /* Draw the banner at the bottom of the screen */
> > static void draw_banner(buffer *buf)
> > {
> >     char banner[1024];
> >
> >     int namelen;
> >
> >     memset(banner, '-', SLtt_Screen_Cols);
> >     if (buf->rdonly) banner[7] = '%';
> >     if (buf->modified) banner[7] = '*';
> >     memcpy(banner + 2, "Indie", 5);
> >     memcpy(banner + 10, buf->name, (namelen = strlen(buf->name)));
> >     memcpy(banner + 24, "press Ctrl-X to save and exit, Ctrl-C aborts", 44);
> >
> >
> > It's also quite easy to make locale, but I guess it's not a good idea on a
> > rescue disc.
> >
> > It must be compiled with --enable-delkludge for the backspace key to work.
> > Unfortunatly it deletes the 'wrong' way, as usual in Linux :-(
> >
> 
> We want to wean them of Windows.  :-)

Hmm... having the del key and the backspace key do the same thing
is silly.  Strangely enough Linus says this is the only time he 
ever "puled rank" and the only standard he has regretted setting.

PS : pull rank means deciding that something is correct because
  you came up with it and ignoring what lower ranked people have
  to say.  Needless to say it was a flame war on Linux Kernel :)

I'll look at lpe ... if I can find it.