stupidly enough it works correctly now, but needs to clone the word..
This commit is contained in:
parent
871a4cb7af
commit
e1e511f18c
@ -54,14 +54,14 @@ fn main() -> ! {
|
||||
if (event >> 7) & 1 == 1 {
|
||||
// interrupt has happened.
|
||||
match rx.poll() {
|
||||
Some(mut msg) => {
|
||||
Some(msg) => {
|
||||
Terminal::clear_screen();
|
||||
Terminal::print_banner();
|
||||
for i in 0..msg.words {
|
||||
Terminal::pp_println(msg.get_word(i).word, 0);
|
||||
Terminal::pp_println(msg.get_word(i).word, 10);
|
||||
Terminal::pp_println(msg.get_word(i).word, 20);
|
||||
Terminal::pp_println(msg.get_word(i).word, 30);
|
||||
Terminal::pp_logln(msg.message[i].word.clone(), 0);
|
||||
Terminal::pp_logln(msg.message[i].word.clone(), 10);
|
||||
Terminal::pp_logln(msg.message[i].word.clone(), 20);
|
||||
Terminal::pp_logln(msg.message[i].word.clone(), 30);
|
||||
}
|
||||
Terminal::user_prompt();
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user