Skip to content
This repository has been archived by the owner on Apr 19, 2024. It is now read-only.

Please respect TERM=dumb ? #191

Closed
zenspider opened this issue May 1, 2019 · 1 comment
Closed

Please respect TERM=dumb ? #191

zenspider opened this issue May 1, 2019 · 1 comment

Comments

@zenspider
Copy link

zenspider commented May 1, 2019

Came here from git-town/git-town#1201

This might be out of scope for the goals of your project...

Menuing on git town config setup (which uses survey) expects full VT-xx/xterm support, which is not available when TERM=dumb or TERM=emacs (for example). Either os.GetEnv("TERM") should be queried and decisions made based on that or actual term capability should be queried.

I think it would be pretty easy to provide vanilla stdin reads for normal single-select prompts and might get a bit messier for multi-selection prompts (tho I could see reading until a blank response or some-such).

@zenspider
Copy link
Author

Meh. So done.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant