On Sunday 17 May 2009 18:20, Matthew Hiles wrote: > Denys Vlasenko wrote: > > On Sunday 17 May 2009 17:16, Matthew Hiles wrote: > > > >> I don't think adding a whole lot of iffy terminal stuff is the best > >> approach. If you're in the middle of typing a command and can't get back > >> to the first line in bash, just hit ctrl-u, ctrl-y. I assume it wouldn't > >> be too difficult to add ctrl-y (paste) to bb shells? > >> > >> Besides that, what's wrong with just pressing enter once if your prompt > >> didn't start at the first column? > >> > > > > When AIX people said "what's the problem in running eval `resize` > > once in a while?" when I complained that when I log in to AIX via > > ssh, the damn thing doesn't know what my terminal window size is, > > I responded by starting a search for a new job, where I won't be > > forced to do such idiotic things, especially that other OSes > > manage to do that for me automatically. > > > Well it seems like the NASA pen problem. Why develop a million dollar > pen when a pencil works just as well?
The point is, our "pen" does not cost a million dollar. It costs 300 bytes of code on i386. And I wouldn't compare AIX with a pencil, it's more like a rock chipping tool from bronze age. Sure, I can "write" on rocks using that tool too. Do I have to? > >> And thirdly, what about prefixing your prompt with a \n? > >> > > > > Rob disagrees. He says information gets lost that way. > > > I understand how information can get lost prefixing with a \r, but how > does information get lost when using a \n? Yes, this will work. The extra empty line would be strange (different from other shells), but it will work. -- vda _______________________________________________ busybox mailing list [email protected] http://lists.busybox.net/mailman/listinfo/busybox
