Richard Hughes
9cd9a4b8f7
trivial: Use ANSI escape codes to fix the progressbar on win32
2022-01-06 19:21:50 +00:00
Richard Hughes
b9024e80ae
trivial: Show percentage values when non-interactive
...
Now we have a global progressbar it's a sane amount of data to log.
2021-11-16 17:04:07 +00:00
Richard Hughes
3e88040b7f
trivial: Always use a newline when at 100%, even if not idle
2021-11-15 14:59:37 +00:00
Richard Hughes
37855a3f5d
trivial: Match up the translator comments with the source strings
...
Doing clang-format on the codebase broke a few of these.
2021-10-06 16:07:43 +01:00
Mario Limonciello
55de39c077
trivial: reformat the whole tree to match new format
2021-08-24 11:18:40 -05:00
Richard Hughes
a7409d3117
Fix the progressbar spinner to actually work
...
We need to use the private GMainContext we created.
2021-07-13 14:55:49 +01:00
bubbleguuum
27df5cf06e
fix broken progressbar display on urxvt due to improper calculation of to_erase
...
added space before bracket
2021-02-15 15:22:47 +00:00
Richard Hughes
d1015cc2a2
Do not show Unknown [***] for every client connection
...
Ignore the initial client state change from UNKNOWN to IDLE which was being set
as part of the fix in fb36f22
.
Fixes https://github.com/fwupd/fwupd/issues/2766
2021-01-14 14:22:36 +00:00
Richard Hughes
0f89a0d2f0
Use pkttyagent to request user passwords if running without GUI
...
This change will allow it to use pkcon over remote-shells (ssh) or
to use it witout a running GUI desktop environment in the background.
Should fix https://github.com/fwupd/fwupd/issues/2429
2020-09-29 19:21:18 +01:00
Richard Hughes
395f936b72
Reset the progressbar time estimate if the percentage is invalid
2020-04-17 21:49:24 +01:00
Richard Hughes
21eaeeff8d
trivial: Fix up some typos found using codespell
2020-01-14 12:25:41 +00:00
Andreas Scherbaum
e3f1e9fa34
Replace 'scheduing' with 'scheduling'
2019-12-02 06:52:16 +00:00
Mario Limonciello
5beceda89b
trivial: Move progressbar out of libfwupdplugin
...
The intention with f0f504c740
was to
not offer this in the plugin, but when rebasing 6b0e66354b
this was forgotten to be removed.
2019-11-27 08:18:02 -06:00
Mario Limonciello
6b0e66354b
Convert libfwupdprivate to a shared library libfwupdplugin
2019-11-27 11:32:43 +00:00
Mario Limonciello
1a680f3b18
trivial: add missing gtk-doc fields for many files in src/
2019-11-26 06:31:57 +00:00
Richard Hughes
ae96a1f27f
Align the key values to the text *width* not the number of bytes
...
This fixes the output when using locales like zh_CN.utf-8
2019-09-23 15:17:28 +01:00
Mario Limonciello
719b743553
trivial: fu-progressbar: Hide backspace characters when refreshing titles
...
If running non-interactive with a composite device update then while "switching"
devices a bunch of backspace characters are output before the title.
For example:
```
010#010#010#010#010#010#010#010#010#010#010
```
2019-02-08 06:30:59 +00:00
Mario Limonciello
17c17495b9
trivial: fu-progressbar: Don't show the status at all when noninteractive
...
When running in an upstart job fwupdtool will show the following every time
```
Decompressing?
Idle?
Loading?
Idle?
<normal output/errors>
```
The steps are not useful for automatically run jobs even in the logs.
2019-02-04 10:33:43 -06:00
Mario Limonciello
9b31e6f33a
fu-progressbar: be more quiet when running non-interactive
...
If fwupdmgr or fwupdtool are scripted all the erasing of lines and
progressbars are much less useful.
2019-01-31 22:40:50 +00:00
Richard Hughes
7cd6d363e1
trivial: Correctly calculate the erase length for all locales
...
This fixes the progressbar going crazy when using fwupdmgr with zh_CN.
2018-11-30 15:56:28 +00:00
Richard Hughes
b08e7bc7aa
trivial: Set a log domain for each file
...
This allows us to do something like:
G_MESSAGES_DEBUG=FuEngine ./src/fwupd
2018-09-11 18:59:05 +01:00
Richard Hughes
bd747ded4f
trivial: Use an elipsis when showing the remaining time
2018-09-07 14:29:18 +01:00
Richard Hughes
c0c6712fcc
trivial: Display a more natural string for the time remaining
...
We can't pretend we're accurate to 10m in the precision of the float when we're
doing things like USB re-enumeration which can take several seconds. I believe
users want some indication of 'should I wait or go do something else' rather
than any precise timings.
2018-08-31 12:04:58 +01:00
Mario Limonciello
a913bcd271
fixups
2018-08-22 14:46:11 -05:00
Mario Limonciello
09774dd90b
fu-progressbar: Show a time estimate after update has started
2018-08-22 14:46:11 -05:00
Richard Hughes
cc2b6fd2be
trivial: Allow changing the progressbar title at runtime
2018-08-10 14:50:43 +01:00
Richard Hughes
02c90d8a03
Remove the unused Emacs indenting headers from all source files
...
Fixes https://github.com/hughsie/fwupd/issues/636
2018-08-09 12:48:04 +01:00
Mario Limonciello
51308e648a
Adjust all licensing to LGPL 2.1+ ( Closes : #526 )
2018-05-29 09:03:13 +01:00
Richard Hughes
f50eca4f55
trivial: Add FWUPD_STATUS_DEVICE_BUSY
...
This is when we're waiting for the device, but we don't know why.
2017-10-12 12:43:25 +01:00
Richard Hughes
87f8a4a284
Add a waiting-for-auth daemon state
...
Using IDLE for this isn't right as we're basically blocked on the user.
2017-10-02 14:50:26 +01:00
Richard Hughes
723b4ccaa6
trivial: Don't show a progressbar when then daemon is staying idle
2017-09-29 11:58:21 +01:00
Richard Hughes
eb53042c20
trivial: Use FuProgressbar in dfu-tool
2017-09-28 09:23:52 +01:00
Richard Hughes
b73ff8a346
trivial: Use FwupdStatus in the dfu plugin
2017-09-28 09:23:52 +01:00
Richard Hughes
b5b4beb472
Fix various printing issues with the progressbar
...
Specifically, fix the progressbar to:
* Print at 100% after an 'unknown' percentage task has completed
* Refresh the progressbar if being called without a main loop running
* Allow the progressbar to start with a h-offset without moving 'left'
* Don't cause high CPU load when calling fu_progressbar_update() ever few us
Also, add some unit tests to discover all the issues.
2017-09-17 08:56:05 +01:00
Richard Hughes
9a7db9df7d
Show a bouncing progress bar if the percentage remains at zero
...
Device actions like a Thunderbolt replug can take 25 seconds (!) and so it's a
good idea to show the user that the calling process is still alive.
2017-08-21 15:51:38 +01:00