curl-users
Re: simplified progress-bar for dumb terminals
Date: Mon, 2 Apr 2012 17:04:30 +0200
On Mon, Apr 02, 2012 at 03:59:09PM +0200, Daniel Stenberg wrote:
> On Mon, 2 Apr 2012, Kamil Dudka wrote:
> >dracut developers are asking us to implement a simplified progress
> >bar that would be similar to the output of --progress-bar but
> >compatible with terminals that do not support the '\r' character:
> >
> >https://bugzilla.redhat.com/show_bug.cgi?id=806426
> >
> >Does such an enhancement make sense? Would it be accepted upstream?
>
> I think we can accept such a change.
>
> Maybe such a fix could (try to) detect terminal type and
> automatically switch to the simpler mode?
That's what the terminfo 'cr' entry is for ("a code to move the cursor to
the left edge of the current row"), but my terminfo lists 'cr=^M' for the
'dumb' terminal as well. It sounds like dumb isn't dumb enough for that
application. Even if curl were to use terminfo, this user would need
to fix his terminal entry.
>>> Dan
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-users
FAQ: http://curl.haxx.se/docs/faq.html
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2012-04-02