Anybody want to fix ash's backspace line wrap?

Matthew Hiles matthew.hiles at gmail.com
Sun May 17 16:20:09 UTC 2009


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?

>   
>> 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?

> --
> vda
>
>   


~Matthew


More information about the busybox mailing list