Skip to content

Bring colors to the shell console "'a la" systemd : "[...] doing action" -> "[OK] action" (green) || "[FAILED] action" (red)  #1681

@tlaurion

Description

@tlaurion

Is your feature request related to a problem? Please describe.
Heads has: warn, error and die as helpers but users are used to systemd output (liking or not systemd is not the point)
Then some !!!! and ++++ output that are echo to the console, not wrapped by any helper.
This is at best confusing to developers and a BAD UX for end users.

Describe the solution you'd like
Heads should include external helpers to unify output and use them so that the UX is uniform from firmware to OS.

Describe alternatives you've considered

  • Reinviting the wheel.
  • Continue extending prompts and messages with custom output which tendency is now to wrap with | fold in code.
  • Dismiss non-technical newcomers to heads which think that Heads UX is bad (we need to address that and start thinking of hiding most of the console output unless advanced user is ticked somehow in config settings and flashed, the default should become more user friendly really soon).

Additional context
[edit later with systemd console output on bootpatch of the OS]

  • [...] action: ideally progress would write to the same console line, overwriting status update to the user, a la "flashrom_progress" we have under flash-gui.sh processing debug output of flashrom (I know, flashrom didn't upstream their internal progress bar as of 1.3.0).
  • [OK] action: should be green and be eye reassuring to end users (I did a demo to a game designer. He said: ish. You don't have that?
  • [FAILED] action: should be red and alarming.

All the rest of the current Heads output should be hidden behind DEBUG/TRACE if desired/needed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions