From 2494c42d2fbd2900bdfeebfda39b0b706a45f9fe Mon Sep 17 00:00:00 2001 From: tslil clingman <> Date: Sat, 10 Oct 2020 23:00:23 -0400 Subject: Thinking about GUI --- src/consulter.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/consulter.rs') 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 { +pub fn consult_next_action(game: &Game, proc: &str) -> Result { let file = File::create(FILE_NAME)?; write!(&file, "{}", game)?; @@ -33,7 +33,7 @@ pub fn consult_next_action(game: &Game, proc: &str) -> Result { 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())), } } -- cgit v1.3.1