mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-18 08:52:45 +00:00
fixup cram-console for xous-ipc 0.10
This commit is contained in:
parent
553f98f7f2
commit
7ea1400843
1 changed files with 7 additions and 9 deletions
|
|
@ -127,8 +127,7 @@ impl Repl {
|
||||||
if let Some(res) =
|
if let Some(res) =
|
||||||
self.env.dispatch(Some(&mut String::from(&local)), None).expect("command dispatch failed")
|
self.env.dispatch(Some(&mut String::from(&local)), None).expect("command dispatch failed")
|
||||||
{
|
{
|
||||||
let output_history =
|
let output_history = History { text: String::from(res.as_str()), is_input: false };
|
||||||
History { text: String::from(res.as_str().unwrap_or("UTF-8 Error")), is_input: false };
|
|
||||||
self.circular_push(output_history);
|
self.circular_push(output_history);
|
||||||
} else {
|
} else {
|
||||||
dirty = false;
|
dirty = false;
|
||||||
|
|
@ -136,8 +135,7 @@ impl Repl {
|
||||||
} else if let Some(msg) = &self.msg {
|
} else if let Some(msg) = &self.msg {
|
||||||
log::trace!("processing callback msg: {:?}", msg);
|
log::trace!("processing callback msg: {:?}", msg);
|
||||||
if let Some(res) = self.env.dispatch(None, Some(msg)).expect("callback failed") {
|
if let Some(res) = self.env.dispatch(None, Some(msg)).expect("callback failed") {
|
||||||
let output_history =
|
let output_history = History { text: String::from(res.as_str()), is_input: false };
|
||||||
History { text: String::from(res.as_str().unwrap_or("UTF-8 Error")), is_input: false };
|
|
||||||
self.circular_push(output_history);
|
self.circular_push(output_history);
|
||||||
} else {
|
} else {
|
||||||
dirty = false;
|
dirty = false;
|
||||||
|
|
@ -164,11 +162,11 @@ impl Repl {
|
||||||
self.gam
|
self.gam
|
||||||
.draw_rectangle(
|
.draw_rectangle(
|
||||||
self.content,
|
self.content,
|
||||||
Rectangle::new_with_style(
|
Rectangle::new_with_style(Point::new(0, 0), self.screensize, DrawStyle {
|
||||||
Point::new(0, 0),
|
fill_color: Some(PixelColor::Light),
|
||||||
self.screensize,
|
stroke_color: None,
|
||||||
DrawStyle { fill_color: Some(PixelColor::Light), stroke_color: None, stroke_width: 0 },
|
stroke_width: 0,
|
||||||
),
|
}),
|
||||||
)
|
)
|
||||||
.expect("can't clear content area");
|
.expect("can't clear content area");
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue