Repository navigation
DietPi-Globals | Tuning processing messages - #1365
Conversation
|
Okay, I am beginning to understand.
|
|
Many thanks, looks good 👍 Merged for testing. |
|
Okay, I am beginning to understand.
|
|
Many thanks, looks good 👍 Merged for testing. |
Just copying the method of other installation scripts lead to a complicated solution. "\r" is the command to move "cursor" position to beginning of line, thus just adding "\r" at the end of every processing message (leading -n also necessary) does the job.
Now every processing message will be overwritten by any other kind of output. In best cases it should be some ok or error from error handler, but if there are some other command outputs in between this is also okay and shows user what is going on/that something is going on.
If there is information we want users to keep/review, then use
G_DIETPI-NOTIFY 2 ...for [Info].Btw: Don't we want preparation script to use
G_DIETPI-NOTIFY 3 ...for the installation step info? At the moment it uses info messages, thus leading [Info] string appears at the beginning of header+separation lines 😆.