requestty/termion-snapshots/float__helpers__validate_on_key-8.snap
Lutetium-Vanadium 1d5fadad23 Add the validate_on_key option
`validate_on_key` is a function that can be supplied by the library user
to show the input in red if the it doesn't pass some validation. It
works for the input, int, float and password prompts.

Implements #5.
2021-12-27 17:35:46 +08:00

28 lines
1.5 KiB
Plaintext
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
source: tests/helpers/mod.rs
expression: self.backend
---
┌──────────────────────────────────────────────────┐
? message  2 │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
└──────────────────────────────────────────────────┘