summaryrefslogtreecommitdiffstats
path: root/examples/tictactoe.rs
diff options
context:
space:
mode:
authorPierre-Henri Symoneaux <phsym@users.noreply.github.com>2019-08-26 22:00:25 +0200
committerGitHub <noreply@github.com>2019-08-26 22:00:25 +0200
commit6bb234c979f8153f8ee8eede5cbb9a1ae2658f23 (patch)
tree3240b3ffdd53f569627d63484030bba6f15b3dd2 /examples/tictactoe.rs
parentbdfb15081cf5e44934a08941f18a6eaba8275e1e (diff)
parent2040ec8190518db84d1651c596950488750ab567 (diff)
Merge pull request #114 from phsym/printstd-nopanic
Remove panic in print_tty and return a Result
Diffstat (limited to 'examples/tictactoe.rs')
-rw-r--r--examples/tictactoe.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/tictactoe.rs b/examples/tictactoe.rs
index 0ff7207..0c299f9 100644
--- a/examples/tictactoe.rs
+++ b/examples/tictactoe.rs
@@ -14,7 +14,7 @@ fn main() {
[EMPTY, EMPTY, EMPTY],
[EMPTY, EMPTY, EMPTY]
];
- let mut height = table.printstd();
+ let mut height = table.print_tty(false).unwrap();
let stdin = io::stdin();
let mut stdout = io::stdout();
let mut current = CROSS;
@@ -53,7 +53,7 @@ fn main() {
terminal.cursor_up().unwrap();
terminal.delete_line().unwrap();
}
- height = table.printstd();
+ height = table.print_tty(false).unwrap();
if check(&table) {
return;
}