aboutsummaryrefslogtreecommitdiff
path: root/src/consulter.rs
diff options
context:
space:
mode:
authortslil clingman <>2020-10-10 23:00:23 -0400
committertslil clingman <>2020-10-10 23:58:27 -0400
commit2494c42d2fbd2900bdfeebfda39b0b706a45f9fe (patch)
tree2d72ed56575bf0499f7218a94977f9da0057f90c /src/consulter.rs
parent6edf7d4cdc19ee80b50c813835b8e36b011232b4 (diff)
Thinking about GUI
Diffstat (limited to 'src/consulter.rs')
-rw-r--r--src/consulter.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/consulter.rs b/src/consulter.rs
index 78fa07d..379dfea 100644
--- a/src/consulter.rs
+++ b/src/consulter.rs
@@ -20,11 +20,11 @@ use std::io::{Error, ErrorKind, Result, Write};
use std::process::Command;
use crate::game::*;
-use crate::gui::*;
+use crate::tui::*;
pub const FILE_NAME: &str = "takwrap_ptn_consult.ptn";
-pub fn consult_next_action(game: &Game, proc: &str) -> Result<GUIResult> {
+pub fn consult_next_action(game: &Game, proc: &str) -> Result<TUIResult> {
let file = File::create(FILE_NAME)?;
write!(&file, "{}", game)?;
@@ -33,7 +33,7 @@ pub fn consult_next_action(game: &Game, proc: &str) -> Result<GUIResult> {
match String::from_utf8(output.stdout) {
Err(e) => Err(Error::new(ErrorKind::InvalidData, e)),
- Ok(raw) => Ok(GUIResult::Raw(raw.trim().to_string())),
+ Ok(raw) => Ok(TUIResult::Raw(raw.trim().to_string())),
}
}