backend_stdio/backend-stdio.rs
1// Copyright (C) 2019 Robin Krahl <robin.krahl@ireas.org>
2// SPDX-License-Identifier: MIT
3
4use dialog::backends;
5use dialog::DialogBox;
6
7fn main() -> dialog::Result<()> {
8 let backend = backends::Stdio::new();
9
10 dialog::Message::new("This is a message.")
11 .title("And this is a title:")
12 .show_with(&backend)
13}