mirror of
https://github.com/nsnail/spectre.console.git
synced 2025-04-16 08:52:50 +08:00

* Fixes a bug with `SelectionPrompt` and page size. * Allow `IAnsiConsoleInput` to return `null`.
28 lines
23 KiB
Plaintext
28 lines
23 KiB
Plaintext
{"version": 2, "width": 84, "height": 14, "title": "multi-selection (rich)", "env": {"TERM": "Spectre.Console"}}
|
|
[0, "o", "\u001B[?25lWhat are your \u001B[38;5;2mfavorite fruits\u001B[0m? \r\n \r\n\u001B[38;5;12m\u003E [ ] Berries\u001B[0m \r\n [ ] Blackcurrant \r\n [ ] Blueberry \r\n [ ] Cloudberry \r\n [ ] Elderberry \r\n [ ] Honeyberry \r\n [ ] Mulberry \r\n [ ] Apple \r\n [ ] Apricot \r\n \r\n\u001B[38;5;8m(Move up and down to reveal more fruits)\u001B[0m \r\n\u001B[38;5;8m(Press \u001B[0m\u001B[38;5;12m\u003Cspace\u003E\u001B[0m\u001B[38;5;8m to toggle a fruit, \u001B[0m\u001B[38;5;2m\u003Center\u003E\u001B[0m\u001B[38;5;8m to accept)\u001B[0m"]
|
|
[0, "o", "\r\u001B[13AWhat are your \u001B[38;5;2mfavorite fruits\u001B[0m? \r\n \r\n\u001B[38;5;12m\u003E [ ] Berries\u001B[0m \r\n [ ] Blackcurrant \r\n [ ] Blueberry \r\n [ ] Cloudberry \r\n [ ] Elderberry \r\n [ ] Honeyberry \r\n [ ] Mulberry \r\n [ ] Apple \r\n [ ] Apricot \r\n \r\n\u001B[38;5;8m(Move up and down to reveal more fruits)\u001B[0m \r\n\u001B[38;5;8m(Press \u001B[0m\u001B[38;5;12m\u003Cspace\u003E\u001B[0m\u001B[38;5;8m to toggle a fruit, \u001B[0m\u001B[38;5;2m\u003Center\u003E\u001B[0m\u001B[38;5;8m to accept)\u001B[0m"]
|
|
[0.25, "o", "\r\u001B[13AWhat are your \u001B[38;5;2mfavorite fruits\u001B[0m? \r\n \r\n [ ] Berries \r\n\u001B[38;5;12m \u003E [ ] Blackcurrant\u001B[0m \r\n [ ] Blueberry \r\n [ ] Cloudberry \r\n [ ] Elderberry \r\n [ ] Honeyberry \r\n [ ] Mulberry \r\n [ ] Apple \r\n [ ] Apricot \r\n \r\n\u001B[38;5;8m(Move up and down to reveal more fruits)\u001B[0m \r\n\u001B[38;5;8m(Press \u001B[0m\u001B[38;5;12m\u003Cspace\u003E\u001B[0m\u001B[38;5;8m to toggle a fruit, \u001B[0m\u001B[38;5;2m\u003Center\u003E\u001B[0m\u001B[38;5;8m to accept)\u001B[0m"]
|
|
[0.438, "o", "\r\u001B[13AWhat are your \u001B[38;5;2mfavorite fruits\u001B[0m? \r\n \r\n [ ] Berries \r\n [ ] Blackcurrant \r\n\u001B[38;5;12m \u003E [ ] Blueberry\u001B[0m \r\n [ ] Cloudberry \r\n [ ] Elderberry \r\n [ ] Honeyberry \r\n [ ] Mulberry \r\n [ ] Apple \r\n [ ] Apricot \r\n \r\n\u001B[38;5;8m(Move up and down to reveal more fruits)\u001B[0m \r\n\u001B[38;5;8m(Press \u001B[0m\u001B[38;5;12m\u003Cspace\u003E\u001B[0m\u001B[38;5;8m to toggle a fruit, \u001B[0m\u001B[38;5;2m\u003Center\u003E\u001B[0m\u001B[38;5;8m to accept)\u001B[0m"]
|
|
[0.688, "o", "\r\u001B[13AWhat are your \u001B[38;5;2mfavorite fruits\u001B[0m? \r\n \r\n [ ] Berries \r\n [ ] Blackcurrant \r\n\u001B[38;5;12m \u003E [X] Blueberry\u001B[0m \r\n [ ] Cloudberry \r\n [ ] Elderberry \r\n [ ] Honeyberry \r\n [ ] Mulberry \r\n [ ] Apple \r\n [ ] Apricot \r\n \r\n\u001B[38;5;8m(Move up and down to reveal more fruits)\u001B[0m \r\n\u001B[38;5;8m(Press \u001B[0m\u001B[38;5;12m\u003Cspace\u003E\u001B[0m\u001B[38;5;8m to toggle a fruit, \u001B[0m\u001B[38;5;2m\u003Center\u003E\u001B[0m\u001B[38;5;8m to accept)\u001B[0m"]
|
|
[1.344, "o", "\r\u001B[13AWhat are your \u001B[38;5;2mfavorite fruits\u001B[0m? \r\n \r\n [ ] Berries \r\n\u001B[38;5;12m \u003E [ ] Blackcurrant\u001B[0m \r\n [\u001B[38;5;12mX\u001B[0m] Blueberry \r\n [ ] Cloudberry \r\n [ ] Elderberry \r\n [ ] Honeyberry \r\n [ ] Mulberry \r\n [ ] Apple \r\n [ ] Apricot \r\n \r\n\u001B[38;5;8m(Move up and down to reveal more fruits)\u001B[0m \r\n\u001B[38;5;8m(Press \u001B[0m\u001B[38;5;12m\u003Cspace\u003E\u001B[0m\u001B[38;5;8m to toggle a fruit, \u001B[0m\u001B[38;5;2m\u003Center\u003E\u001B[0m\u001B[38;5;8m to accept)\u001B[0m"]
|
|
[1.531, "o", "\r\u001B[13AWhat are your \u001B[38;5;2mfavorite fruits\u001B[0m? \r\n \r\n\u001B[38;5;12m\u003E [ ] Berries\u001B[0m \r\n [ ] Blackcurrant \r\n [\u001B[38;5;12mX\u001B[0m] Blueberry \r\n [ ] Cloudberry \r\n [ ] Elderberry \r\n [ ] Honeyberry \r\n [ ] Mulberry \r\n [ ] Apple \r\n [ ] Apricot \r\n \r\n\u001B[38;5;8m(Move up and down to reveal more fruits)\u001B[0m \r\n\u001B[38;5;8m(Press \u001B[0m\u001B[38;5;12m\u003Cspace\u003E\u001B[0m\u001B[38;5;8m to toggle a fruit, \u001B[0m\u001B[38;5;2m\u003Center\u003E\u001B[0m\u001B[38;5;8m to accept)\u001B[0m"]
|
|
[1.766, "o", "\r\u001B[13AWhat are your \u001B[38;5;2mfavorite fruits\u001B[0m? \r\n \r\n\u001B[38;5;12m\u003E [\u001B[0m\u001B[38;5;8mX\u001B[0m\u001B[38;5;12m] Berries\u001B[0m \r\n [\u001B[38;5;12mX\u001B[0m] Blackcurrant \r\n [\u001B[38;5;12mX\u001B[0m] Blueberry \r\n [\u001B[38;5;12mX\u001B[0m] Cloudberry \r\n [\u001B[38;5;12mX\u001B[0m] Elderberry \r\n [\u001B[38;5;12mX\u001B[0m] Honeyberry \r\n [\u001B[38;5;12mX\u001B[0m] Mulberry \r\n [ ] Apple \r\n [ ] Apricot \r\n \r\n\u001B[38;5;8m(Move up and down to reveal more fruits)\u001B[0m \r\n\u001B[38;5;8m(Press \u001B[0m\u001B[38;5;12m\u003Cspace\u003E\u001B[0m\u001B[38;5;8m to toggle a fruit, \u001B[0m\u001B[38;5;2m\u003Center\u003E\u001B[0m\u001B[38;5;8m to accept)\u001B[0m"]
|
|
[2.422, "o", "\r\u001B[13AWhat are your \u001B[38;5;2mfavorite fruits\u001B[0m? \r\n \r\n\u001B[38;5;12m\u003E [ ] Berries\u001B[0m \r\n [ ] Blackcurrant \r\n [ ] Blueberry \r\n [ ] Cloudberry \r\n [ ] Elderberry \r\n [ ] Honeyberry \r\n [ ] Mulberry \r\n [ ] Apple \r\n [ ] Apricot \r\n \r\n\u001B[38;5;8m(Move up and down to reveal more fruits)\u001B[0m \r\n\u001B[38;5;8m(Press \u001B[0m\u001B[38;5;12m\u003Cspace\u003E\u001B[0m\u001B[38;5;8m to toggle a fruit, \u001B[0m\u001B[38;5;2m\u003Center\u003E\u001B[0m\u001B[38;5;8m to accept)\u001B[0m"]
|
|
[3.109, "o", "\r\u001B[13AWhat are your \u001B[38;5;2mfavorite fruits\u001B[0m? \r\n \r\n [ ] Berries \r\n\u001B[38;5;12m \u003E [ ] Blackcurrant\u001B[0m \r\n [ ] Blueberry \r\n [ ] Cloudberry \r\n [ ] Elderberry \r\n [ ] Honeyberry \r\n [ ] Mulberry \r\n [ ] Apple \r\n [ ] Apricot \r\n \r\n\u001B[38;5;8m(Move up and down to reveal more fruits)\u001B[0m \r\n\u001B[38;5;8m(Press \u001B[0m\u001B[38;5;12m\u003Cspace\u003E\u001B[0m\u001B[38;5;8m to toggle a fruit, \u001B[0m\u001B[38;5;2m\u003Center\u003E\u001B[0m\u001B[38;5;8m to accept)\u001B[0m"]
|
|
[3.281, "o", "\r\u001B[13AWhat are your \u001B[38;5;2mfavorite fruits\u001B[0m? \r\n \r\n [ ] Berries \r\n\u001B[38;5;12m \u003E [X] Blackcurrant\u001B[0m \r\n [ ] Blueberry \r\n [ ] Cloudberry \r\n [ ] Elderberry \r\n [ ] Honeyberry \r\n [ ] Mulberry \r\n [ ] Apple \r\n [ ] Apricot \r\n \r\n\u001B[38;5;8m(Move up and down to reveal more fruits)\u001B[0m \r\n\u001B[38;5;8m(Press \u001B[0m\u001B[38;5;12m\u003Cspace\u003E\u001B[0m\u001B[38;5;8m to toggle a fruit, \u001B[0m\u001B[38;5;2m\u003Center\u003E\u001B[0m\u001B[38;5;8m to accept)\u001B[0m"]
|
|
[3.469, "o", "\r\u001B[13AWhat are your \u001B[38;5;2mfavorite fruits\u001B[0m? \r\n \r\n [ ] Berries \r\n [\u001B[38;5;12mX\u001B[0m] Blackcurrant \r\n\u001B[38;5;12m \u003E [ ] Blueberry\u001B[0m \r\n [ ] Cloudberry \r\n [ ] Elderberry \r\n [ ] Honeyberry \r\n [ ] Mulberry \r\n [ ] Apple \r\n [ ] Apricot \r\n \r\n\u001B[38;5;8m(Move up and down to reveal more fruits)\u001B[0m \r\n\u001B[38;5;8m(Press \u001B[0m\u001B[38;5;12m\u003Cspace\u003E\u001B[0m\u001B[38;5;8m to toggle a fruit, \u001B[0m\u001B[38;5;2m\u003Center\u003E\u001B[0m\u001B[38;5;8m to accept)\u001B[0m"]
|
|
[3.672, "o", "\r\u001B[13AWhat are your \u001B[38;5;2mfavorite fruits\u001B[0m? \r\n \r\n [ ] Berries \r\n [\u001B[38;5;12mX\u001B[0m] Blackcurrant \r\n [ ] Blueberry \r\n\u001B[38;5;12m \u003E [ ] Cloudberry\u001B[0m \r\n [ ] Elderberry \r\n [ ] Honeyberry \r\n [ ] Mulberry \r\n [ ] Apple \r\n [ ] Apricot \r\n \r\n\u001B[38;5;8m(Move up and down to reveal more fruits)\u001B[0m \r\n\u001B[38;5;8m(Press \u001B[0m\u001B[38;5;12m\u003Cspace\u003E\u001B[0m\u001B[38;5;8m to toggle a fruit, \u001B[0m\u001B[38;5;2m\u003Center\u003E\u001B[0m\u001B[38;5;8m to accept)\u001B[0m"]
|
|
[3.859, "o", "\r\u001B[13AWhat are your \u001B[38;5;2mfavorite fruits\u001B[0m? \r\n \r\n [ ] Berries \r\n [\u001B[38;5;12mX\u001B[0m] Blackcurrant \r\n [ ] Blueberry \r\n [ ] Cloudberry \r\n\u001B[38;5;12m \u003E [ ] Elderberry\u001B[0m \r\n [ ] Honeyberry \r\n [ ] Mulberry \r\n [ ] Apple \r\n [ ] Apricot \r\n \r\n\u001B[38;5;8m(Move up and down to reveal more fruits)\u001B[0m \r\n\u001B[38;5;8m(Press \u001B[0m\u001B[38;5;12m\u003Cspace\u003E\u001B[0m\u001B[38;5;8m to toggle a fruit, \u001B[0m\u001B[38;5;2m\u003Center\u003E\u001B[0m\u001B[38;5;8m to accept)\u001B[0m"]
|
|
[4.031, "o", "\r\u001B[13AWhat are your \u001B[38;5;2mfavorite fruits\u001B[0m? \r\n \r\n [\u001B[38;5;12mX\u001B[0m] Blackcurrant \r\n [ ] Blueberry \r\n [ ] Cloudberry \r\n [ ] Elderberry \r\n\u001B[38;5;12m \u003E [ ] Honeyberry\u001B[0m \r\n [ ] Mulberry \r\n [ ] Apple \r\n [ ] Apricot \r\n [ ] Avocado \r\n \r\n\u001B[38;5;8m(Move up and down to reveal more fruits)\u001B[0m \r\n\u001B[38;5;8m(Press \u001B[0m\u001B[38;5;12m\u003Cspace\u003E\u001B[0m\u001B[38;5;8m to toggle a fruit, \u001B[0m\u001B[38;5;2m\u003Center\u003E\u001B[0m\u001B[38;5;8m to accept)\u001B[0m"]
|
|
[4.203, "o", "\r\u001B[13AWhat are your \u001B[38;5;2mfavorite fruits\u001B[0m? \r\n \r\n [ ] Blueberry \r\n [ ] Cloudberry \r\n [ ] Elderberry \r\n [ ] Honeyberry \r\n\u001B[38;5;12m \u003E [ ] Mulberry\u001B[0m \r\n [ ] Apple \r\n [ ] Apricot \r\n [ ] Avocado \r\n [ ] Banana \r\n \r\n\u001B[38;5;8m(Move up and down to reveal more fruits)\u001B[0m \r\n\u001B[38;5;8m(Press \u001B[0m\u001B[38;5;12m\u003Cspace\u003E\u001B[0m\u001B[38;5;8m to toggle a fruit, \u001B[0m\u001B[38;5;2m\u003Center\u003E\u001B[0m\u001B[38;5;8m to accept)\u001B[0m"]
|
|
[4.406, "o", "\r\u001B[13AWhat are your \u001B[38;5;2mfavorite fruits\u001B[0m? \r\n \r\n [ ] Blueberry \r\n [ ] Cloudberry \r\n [ ] Elderberry \r\n [ ] Honeyberry \r\n\u001B[38;5;12m \u003E [X] Mulberry\u001B[0m \r\n [ ] Apple \r\n [ ] Apricot \r\n [ ] Avocado \r\n [ ] Banana \r\n \r\n\u001B[38;5;8m(Move up and down to reveal more fruits)\u001B[0m \r\n\u001B[38;5;8m(Press \u001B[0m\u001B[38;5;12m\u003Cspace\u003E\u001B[0m\u001B[38;5;8m to toggle a fruit, \u001B[0m\u001B[38;5;2m\u003Center\u003E\u001B[0m\u001B[38;5;8m to accept)\u001B[0m"]
|
|
[4.578, "o", "\r\u001B[13AWhat are your \u001B[38;5;2mfavorite fruits\u001B[0m? \r\n \r\n [ ] Cloudberry \r\n [ ] Elderberry \r\n [ ] Honeyberry \r\n [\u001B[38;5;12mX\u001B[0m] Mulberry \r\n\u001B[38;5;12m\u003E [ ] Apple\u001B[0m \r\n [ ] Apricot \r\n [ ] Avocado \r\n [ ] Banana \r\n [ ] Cherry \r\n \r\n\u001B[38;5;8m(Move up and down to reveal more fruits)\u001B[0m \r\n\u001B[38;5;8m(Press \u001B[0m\u001B[38;5;12m\u003Cspace\u003E\u001B[0m\u001B[38;5;8m to toggle a fruit, \u001B[0m\u001B[38;5;2m\u003Center\u003E\u001B[0m\u001B[38;5;8m to accept)\u001B[0m"]
|
|
[4.813, "o", "\r\u001B[13AWhat are your \u001B[38;5;2mfavorite fruits\u001B[0m? \r\n \r\n [ ] Elderberry \r\n [ ] Honeyberry \r\n [\u001B[38;5;12mX\u001B[0m] Mulberry \r\n [ ] Apple \r\n\u001B[38;5;12m\u003E [ ] Apricot\u001B[0m \r\n [ ] Avocado \r\n [ ] Banana \r\n [ ] Cherry \r\n [ ] Cocunut \r\n \r\n\u001B[38;5;8m(Move up and down to reveal more fruits)\u001B[0m \r\n\u001B[38;5;8m(Press \u001B[0m\u001B[38;5;12m\u003Cspace\u003E\u001B[0m\u001B[38;5;8m to toggle a fruit, \u001B[0m\u001B[38;5;2m\u003Center\u003E\u001B[0m\u001B[38;5;8m to accept)\u001B[0m"]
|
|
[5.047, "o", "\r\u001B[13AWhat are your \u001B[38;5;2mfavorite fruits\u001B[0m? \r\n \r\n [ ] Honeyberry \r\n [\u001B[38;5;12mX\u001B[0m] Mulberry \r\n [ ] Apple \r\n [ ] Apricot \r\n\u001B[38;5;12m\u003E [ ] Avocado\u001B[0m \r\n [ ] Banana \r\n [ ] Cherry \r\n [ ] Cocunut \r\n [ ] Date \r\n \r\n\u001B[38;5;8m(Move up and down to reveal more fruits)\u001B[0m \r\n\u001B[38;5;8m(Press \u001B[0m\u001B[38;5;12m\u003Cspace\u003E\u001B[0m\u001B[38;5;8m to toggle a fruit, \u001B[0m\u001B[38;5;2m\u003Center\u003E\u001B[0m\u001B[38;5;8m to accept)\u001B[0m"]
|
|
[5.219, "o", "\r\u001B[13AWhat are your \u001B[38;5;2mfavorite fruits\u001B[0m? \r\n \r\n [\u001B[38;5;12mX\u001B[0m] Mulberry \r\n [ ] Apple \r\n [ ] Apricot \r\n [ ] Avocado \r\n\u001B[38;5;12m\u003E [ ] Banana\u001B[0m \r\n [ ] Cherry \r\n [ ] Cocunut \r\n [ ] Date \r\n [ ] Dragonfruit \r\n \r\n\u001B[38;5;8m(Move up and down to reveal more fruits)\u001B[0m \r\n\u001B[38;5;8m(Press \u001B[0m\u001B[38;5;12m\u003Cspace\u003E\u001B[0m\u001B[38;5;8m to toggle a fruit, \u001B[0m\u001B[38;5;2m\u003Center\u003E\u001B[0m\u001B[38;5;8m to accept)\u001B[0m"]
|
|
[5.422, "o", "\r\u001B[13AWhat are your \u001B[38;5;2mfavorite fruits\u001B[0m? \r\n \r\n [\u001B[38;5;12mX\u001B[0m] Mulberry \r\n [ ] Apple \r\n [ ] Apricot \r\n [ ] Avocado \r\n\u001B[38;5;12m\u003E [X] Banana\u001B[0m \r\n [ ] Cherry \r\n [ ] Cocunut \r\n [ ] Date \r\n [ ] Dragonfruit \r\n \r\n\u001B[38;5;8m(Move up and down to reveal more fruits)\u001B[0m \r\n\u001B[38;5;8m(Press \u001B[0m\u001B[38;5;12m\u003Cspace\u003E\u001B[0m\u001B[38;5;8m to toggle a fruit, \u001B[0m\u001B[38;5;2m\u003Center\u003E\u001B[0m\u001B[38;5;8m to accept)\u001B[0m"]
|
|
[6.094, "o", "\r\u001B[2K\u001B[1A\u001B[2K\u001B[1A\u001B[2K\u001B[1A\u001B[2K\u001B[1A\u001B[2K\u001B[1A\u001B[2K\u001B[1A\u001B[2K\u001B[1A\u001B[2K\u001B[1A\u001B[2K\u001B[1A\u001B[2K\u001B[1A\u001B[2K\u001B[1A\u001B[2K\u001B[1A\u001B[2K\u001B[1A\u001B[2K"]
|
|
[6.094, "o", "\u001B[?25h"]
|
|
[6.094, "o", "Your selected: \u001B[38;5;11mBlackcurrant,Mulberry,Banana\u001B[0m\r\n"]
|
|
|