Skip to content

Add configuration parameter to turn off or change the type of border decorations on error messages and possibly other content like the table mode key in config.nu #10120

@edhowland

Description

@edhowland

Related problem

While it is possible to set table border decorations in config.nu, you can't
also set them for error messages. One problem with this inadequacy is for
screen reader users. When presented with an error message, the screen reader
insists on enunciating each and every box drawing character. Information
is buried in the audio stream somewhere and it is very hard to distinguish
it from the rest of the noise.

Even though you can control some verbosity with the VoiceOver screen reader,
there doesn't seem to be any way to turn off Unicode or other symbols like box drawing characters.
Even if that were possible, it would be beneficial to be able to capture
raw text from error messages for other purposes like making documentation.

Perhaps a table in $env.config like: errors: { mode: none }
Other theme items can also be present.

Describe the solution you'd like

Add a new key called 'errors' to $env.config with a record with a key called 'mode' with values matching those in the table.mode list.

Describe alternatives you've considered

No response

Additional context and details

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    A:accessibilityAn issue to make Nushell more accessible to anyonecategory:enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions