OS: macOS Sonoma 14.4.1
gh version: 2.48.0 (installed via Homebrew)
I have the environment variables PAGER=/usr/bin/less and LESS=-iRS (but not GH_PAGER) set in my shell. Starting sometime maybe in the last month, whenever I run gh api without any output redirection, the program will start less to show the output, but the screen will show the last lines of the output rather than the start of the output, and if I then press any key, the output disappears, to be replaced by a tilde on each line (which is how less displays empty input). I think this problem is caused by mixing up stdout and stderr, but I'm unable to come up with an MVCE.
If I unset PAGER, gh api will output to stdout correctly. If I unset LESS instead, gh api still outputs to stdout without invoking less.
OS: macOS Sonoma 14.4.1
gh version: 2.48.0 (installed via Homebrew)
I have the environment variables
PAGER=/usr/bin/lessandLESS=-iRS(but notGH_PAGER) set in my shell. Starting sometime maybe in the last month, whenever I rungh apiwithout any output redirection, the program will startlessto show the output, but the screen will show the last lines of the output rather than the start of the output, and if I then press any key, the output disappears, to be replaced by a tilde on each line (which is howlessdisplays empty input). I think this problem is caused by mixing up stdout and stderr, but I'm unable to come up with an MVCE.If I unset
PAGER,gh apiwill output to stdout correctly. If I unsetLESSinstead,gh apistill outputs to stdout without invokingless.