Skip to content

[plan] Enhance accessibility detection with ACCESSIBLE environment variable #7220

@github-actions

Description

@github-actions

Objective

Add support for the ACCESSIBLE environment variable to the accessibility mode detection, following huh best practices.

Context

Currently, accessibility mode is detected via TERM=dumb and NO_COLOR. The huh library documentation recommends also checking the ACCESSIBLE environment variable for explicit accessibility mode control.

Approach

Update the isAccessibleMode() function to include ACCESSIBLE env var:

func isAccessibleMode() bool {
    return os.Getenv("ACCESSIBLE") != "" ||
           os.Getenv("TERM") == "dumb" ||
           os.Getenv("NO_COLOR") != ""
}

Files to Modify

  • Update: pkg/cli/interactive.go - Enhance isAccessibleMode() function

Documentation to Update

  • Update: Relevant documentation mentioning accessibility mode (if any)
  • Consider: Adding ACCESSIBLE to environment variable documentation

Acceptance Criteria

AI generated by Plan Command for discussion #7214

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions