On Mon, 12 Jul 1999, Greg Haerr wrote:

>       Killed your baby?  Why, it seems this one died from neglect ;-)
> try typing ESC [ H on the console.  Nothing happens.

Yep, it won't do anything.  The only commands supported, are: m (color),
s (save location), u (unsave location), A (up), B (down), C (right),
D (left), K (clear EOL).  Mainly because these functions were already
existing in the dircon code so it was very easy to interface to them.

> : The reason bcc wouldn't run was because it was too large (> 64k) to even
> : link.
> 
>       Yes, but I created a version with the -Mf model that will compile
> into less than 64k.  So I have a bcc that runs.

Ooooh, sounds fun.

>       As an example, strcat is coded to strcpy(d+strlen(d), ...)
> By the time that strlen has finished, the strcat could have nearly
> completed.

Yep, unfortunately there's no real way to make this faster is there?
Except maybe by optimising strlen.

>       Yeah I agree.  But the ANSI or vt52 driver shouldn't care about the
> low-level character output method.

As I said above (had to re-read my code because I'd forgotten how it
worked), I basically just called the functions that were already there.  I
wanted to make the patch as easy to write as possible.

>       Well, the bell code was 200 bytes or so, and I think most of the other
> kernel changes amounted to very little.  I see all sorts of areas that
> the kernel size can be reduced...

I agree, but of late I've had little enthusiasm to try and trim the fat
off the larger areas of the code.  In particular, the inode hashing code
in fs (or is it specific to minixfs) is basically redundant.  Firstly, we
can do without hashing for a slight speed decrease.  Also, the hashing
method causes 2 hash look-up tables to be kept, which not only uses up
RAM, but also code space, and clock cycles.

>       Thanks.  So - do you want me to rewrite the ansi console driver so
> that it works?  Also, should elks have a ansi as its default console ( I
> vote yes, and will do the work....)

'rewrite' isn't really needed.  Simply check the HandleAnsi function,
around line 400 of (the original) arch/i86/drivers/char/dircon.c, and add
the functions to that for extra commands.

Davey

Reply via email to