Re: [wmii] Re: dtach v. screen

From: Uriel <lost.goblin_AT_gmail.com>
Date: Tue, 6 Jun 2006 23:57:46 +0200

Give me a break, how many lines of code it takes to attach/detach? ten?

And the dependency on cpp to handle cross-platform issues is
completely bullshit. That asshole should learn to write portable C,
and cpp is never the answer. How hard it is to write a function that
hides the platform differences? blah, the author of dtach just sucks,
and people just wants to make excuses because screen sucks so
incredibly much that not even a whole book filled with expletives
could describe it.

By the way, if you have problems with "redraw" when attaching with
dtach, you got a problem with curses, and the only way to deal with
that problem is the way screen does it, sucking it up and writing a
whole terminal emulator. *YUCK* (or learn to use sane apps and free
yourself from the curse)

uriel

On 6/6/06, Anselm R. Garbe <garbeam_AT_wmii.de> wrote:
> On Fri, Jun 02, 2006 at 02:50:26PM +0200, Uriel wrote:
> > On 6/2/06, Ross Mohn <rpmohn_AT_waxandwane.org> wrote:
> > >On Thu, 2006-06-01 at 13:51 -0400, Kris Maglione wrote:
> > >
> > >> Might I suggest, though, that you use dtach (http://dtach.sf.net/)
> > >instead
> >
> > >From http://dtach.sf.net/:
> > >dtach is a tiny program [...]
> >
> > dtach-0.7$ cat *.[ch]|wc
> > 1145 3758 25598
> > dtach-0.7$ cat *.[ch]|grep '^#if'|wc
> > 28 60 615
> >
> > Someone changed the definition of the word 'tiny' while I was
> > not looking?
>
> Well above wc call is a bit unfair. To achieve the attach/detach
> feature for processes in a portable way (at least for BSD/Linux)
> you will need to use CPP heavily.. Measuring the code with
> sloccount tells, that it consists of 818 SLOC, which is rather
> small for the functionality it provides (though I bet it can be
> done much smaller).
>
> I think most #ifdef stuff checks for the macro BROKEN_MASTER
> which could be simplified...
>
> Regards,
> --
> Anselm R. Garbe ><>< www.ebrag.de ><>< GPG key: 0D73F361
>
> _______________________________________________
> wmii_AT_wmii.de mailing list
> http://wmii.de/cgi-bin/mailman/listinfo/wmii
>
Received on Tue Jun 06 2006 - 23:57:48 UTC

This archive was generated by hypermail 2.2.0 : Sun Jul 13 2008 - 16:08:13 UTC