Linux-Hams archive - November 1997: Re: Prompt in linux-node ?

Re: Prompt in linux-node ?

Tomi Manninen (yyb@kerailya.tunkki.fi)
Mon, 3 Nov 1997 13:05:52 +0200 (EET)


On Sun, 2 Nov 1997, Leszek A. Szczepanowski SQ9ANR wrote:

> > > Without prompt the output of node is
> > > very ugly,
> > Thank you.
>
> Well, node without prompt is this what you like?

If I didn't like it I would have written the code differently.

> When the traffic on user-port is big, for example
> if I want the users from node to be listed, I don't
> know when the transmission of it is done. I don't
> know that the transmission stops because there is
> end of output, or because of collision on the QRG...

You know when the list is done as soon as you receive one empty line. In
LinuxNode all commands end with a single empty line except commands which
potentially include empty lines in the output (like help texts). The
latter are terminated with a "-- " string on a line of its own.

> > > Is possible to have
> > > one on the node ?
> > No.
>
> Why ? I think it is one defined printf to insert some
> in node source. I'm not node programmer, or C programmer
> at all, but I think that this simple thing to include
> prompt...

Yes, it would be very easy. Actually you could replace the "empty line
`prompt'" with a prompt you like, it's in the main loop. But boy would
that be ugly. Mixed with the TheNet/BPQ style ALIAS:CALL} "prompts" it
would look hideous. In my opinion at least.

I've had at least one other complaint about node not having a prompt
earlier and that too was (if my memory serves) from someone in the central
european area used to things like Flexnet nodes and TheNetNodes. But I
believe the rest of the world (us Finns included) are more used to the old
TheNet/BPQ style. I think it's simple, clean, nice and elegant. And with
the "empty line prompt" the are no ambiguities about when a command is
terminated.

I could of course write the whole thing again and put a KeWl prompt with
maybe ansi colours, time of day and a cool quote (different every time of
course). But I don't think I would want to be listed as the author
anymore...

If I get more complaints about this however, then maybe I need to
reconsider some of the above...

-- 
---Tomi Manninen   /   gdd.notbhr@edu.vn   /   OH2BNS @ OH2RBI.FIN.EU---