[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#35129: Unsupported escape sequences for progress in shell
From: |
Michael Albinus |
Subject: |
bug#35129: Unsupported escape sequences for progress in shell |
Date: |
Mon, 08 Apr 2019 09:36:35 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) |
Juri Linkov <juri@linkov.net> writes:
Hi Juri,
>>> I'm not sure if we can provide min-value/max-value for
>>> make-progress-reporter. If not, then it uses spinning/pulsing.
>>> It seems progress-reporter doesn't support arbitrary strings
>>> such as that come from underlying process like ^[7Progress: [ 0%]^[8
>>
>> progress-reporter should be improved to accept also strings like "45%"
>> to be displayed literally.
>
> Another problem is that there is no clear moment to start/stop
> progress-reporter with calls to make-progress-reporter and
> progress-reporter-done.
At least for my use case, calling external p?scp commands in Tramp,
there is no problem. But in general you might be right.
>>> Could you show an example of a progress reporter from an external command.
>>> Do they use arbitrary strings?
>>
>> Some scp or pscp versions do it. For example:
>>
>> $ pscp -v localhost:/net/ford/Multimedia/Eigene\
>> Videos/Videos/20150829_145255.mp4 /tmp/foo
>> [...]
>> foo | 203369 kB | 5810.6 kB/s | ETA: 00:00:00 | 84%
>
> Progress on copying large files would be needed for local file operations
> as well.
Yes. But local copying is not implemented via external commands; this
needs another progress reporter call.
Best regards, Michael.