mirror of
https://github.com/AmbiML/sparrow-kata-full.git
synced 2025-08-31 13:06:15 +00:00
Merge "Remove the Kanji prompt character and add a printf when the repl starts up so we can see it in the Renode log."
GitOrigin-RevId: cd401621c05352bbdd10a70fbf788c58bc2efa10
This commit is contained in:
committed by
Sam Leffler
parent
a859632f85
commit
d602aa29d5
@@ -43,10 +43,10 @@ impl From<fmt::Error> for CommandError {
|
||||
|
||||
/// Read-eval-print loop for the DebugConsole command line interface.
|
||||
pub fn repl(output: &mut dyn io::Write, input: &mut dyn io::Read) -> ! {
|
||||
let mut line_reader = LineReader::new();
|
||||
let _ = write!(output, "DebugConsole::repl()\n");
|
||||
let mut line_reader = LineReader::new();
|
||||
loop {
|
||||
// The PROMPT is the Kanji character for the word "form", or "kata."
|
||||
const PROMPT: &str = "形> ";
|
||||
const PROMPT: &str = "KATA_PROMPT> ";
|
||||
let _ = output.write_str(PROMPT);
|
||||
match line_reader.read_line(output, input) {
|
||||
Ok(cmdline) => dispatch_command(cmdline, output),
|
||||
|
Reference in New Issue
Block a user