← 返回命令列表

Linux command

gh-accessibility 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Show accessibility guidance and settings

gh accessibility

Open the GitHub Accessibility site in the browser

gh accessibility --web

Enable accessible 4-bit color palette

gh config set accessible_colors enabled

Enable accessible prompter for screen readers

gh config set accessible_prompter enabled

Disable motion-based spinners in favor of text indicators

gh config set spinner disabled

说明

gh accessibility displays guidance on GitHub CLI's accessibility experiences and how to enable them. It is aliased as gh a11y. The command describes four areas of accessibility support: Accessible colors — enables a 4-bit ANSI color palette with increased contrast based on terminal background (dark or light). This allows users to customize colors through their terminal preferences. Enable with `gh config set accessible_colors enabled` or the `GH_ACCESSIBLE_COLORS` environment variable. Label colors — displays issue and pull request label colors using their custom RGB hex values in terminals with true color support. Enable with `gh config set color_labels enabled` or the `GH_COLOR_LABELS` environment variable. Accessible prompter — replaces cursor-manipulating interactive prompts with non-interactive equivalents that work correctly with speech synthesizers and braille displays. Enable with `gh config set accessible_prompter enabled` or the `GH_ACCESSIBLE_PROMPTER` environment variable. Text-based spinners — replaces animated spinner characters with plain text progress indicators, removing motion that may cause discomfort or be misread by screen readers. Enable with `gh config set spinner disabled` or the `GH_SPINNER_DISABLED` environment variable.

参数

-w, --web
Open the GitHub Accessibility site in the default web browser.
--help
Show help for command.

FAQ

What is the gh-accessibility command used for?

gh accessibility displays guidance on GitHub CLI's accessibility experiences and how to enable them. It is aliased as gh a11y. The command describes four areas of accessibility support: Accessible colors — enables a 4-bit ANSI color palette with increased contrast based on terminal background (dark or light). This allows users to customize colors through their terminal preferences. Enable with `gh config set accessible_colors enabled` or the `GH_ACCESSIBLE_COLORS` environment variable. Label colors — displays issue and pull request label colors using their custom RGB hex values in terminals with true color support. Enable with `gh config set color_labels enabled` or the `GH_COLOR_LABELS` environment variable. Accessible prompter — replaces cursor-manipulating interactive prompts with non-interactive equivalents that work correctly with speech synthesizers and braille displays. Enable with `gh config set accessible_prompter enabled` or the `GH_ACCESSIBLE_PROMPTER` environment variable. Text-based spinners — replaces animated spinner characters with plain text progress indicators, removing motion that may cause discomfort or be misread by screen readers. Enable with `gh config set spinner disabled` or the `GH_SPINNER_DISABLED` environment variable.

How do I run a basic gh-accessibility example?

Run `gh accessibility` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -w, --web do in gh-accessibility?

Open the GitHub Accessibility site in the default web browser.