Properly newline in console command_prompt
This commit is contained in:
parent
c75da94619
commit
0f6e37a29b
|
@ -110,7 +110,7 @@ impl Console {
|
||||||
input = self.getc();
|
input = self.getc();
|
||||||
|
|
||||||
if input == '\n' {
|
if input == '\n' {
|
||||||
self.putc('\n');
|
self.puts("\n"); // do \r\n output
|
||||||
return &buf[..i];
|
return &buf[..i];
|
||||||
} else {
|
} else {
|
||||||
if i < buf.len() {
|
if i < buf.len() {
|
||||||
|
|
Loading…
Reference in New Issue