@@ -295,7 +295,7 @@ survey.AskOne(prompt, &color, survey.WithFilter(myFilter))
295295
296296## Keeping the filter active
297297
298- By default the filter will disappear if the user selects one of the filtered elements. Once the user selects one element the filter setting is gone.
298+ By default the filter will disappear if the user selects one of the filtered elements. Once the user selects one element the filter setting is gone.
299299
300300However the user can prevent this from happening and keep the filter active for multiple selections in a e.g. MultiSelect:
301301
@@ -342,13 +342,13 @@ survey.AskOne(prompt, &color, survey.WithValidator(survey.Required))
342342` survey ` comes prepackaged with a few validators to fit common situations. Currently these
343343validators include:
344344
345- | name | valid types | description | notes |
346- | ------------ | ----------- | ----------------------------------------------------------- | ------------------------------------------------------------------------------------- |
347- | Required | any | Rejects zero values of the response type | Boolean values pass straight through since the zero value (false) is a valid response |
348- | MinLength(n) | string | Enforces that a response is at least the given length | |
349- | MaxLength(n) | string | Enforces that a response is no longer than the given length | |
350- | MaxItems(n) | [ ] OptionAnswer | Enforces that a response has no more selections of the indicated | |
351- | MinItems(n) | [ ] OptionAnswer | Enforces that a response has no less selections of the indicated | |
345+ | name | valid types | description | notes |
346+ | ------------ | -------------- | ----- ----------------------------------------------------------- | ------------------------------------------------------------------------------------- |
347+ | Required | any | Rejects zero values of the response type | Boolean values pass straight through since the zero value (false) is a valid response |
348+ | MinLength(n) | string | Enforces that a response is at least the given length | |
349+ | MaxLength(n) | string | Enforces that a response is no longer than the given length | |
350+ | MaxItems(n) | [ ] OptionAnswer | Enforces that a response has no more selections of the indicated | |
351+ | MinItems(n) | [ ] OptionAnswer | Enforces that a response has no less selections of the indicated | |
352352
353353## Help Text
354354
@@ -459,6 +459,7 @@ For some examples, you can see any of the tests in this repo.
459459## FAQ
460460
461461### What kinds of IO are supported by ` survey ` ?
462+
462463survey aims to support most terminal emulators; it expects support for ANSI escape sequences.
463464This means that reading from piped stdin or writing to piped stdout is ** not supported** ,
464465and likely to break your application in these situations. See [ #337 ] ( https://github.com/AlecAivazis/survey/pull/337#issue-581351617 )
@@ -477,4 +478,3 @@ if err == terminal.InterruptErr {
477478 panic (err)
478479}
479480```
480-
0 commit comments