mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2025-01-08 22:05:20 +00:00
vmm: vm: Replace \n newline character with \r
This allows the CMD prompt under SAC to be used without affecting getty on Linux. Fixes: #1770 Signed-off-by: Rob Bradford <robert.bradford@intel.com>
This commit is contained in:
parent
4ef97d8ddb
commit
5a0d3277c8
@ -1361,6 +1361,11 @@ impl Vm {
|
|||||||
.read_raw(&mut out)
|
.read_raw(&mut out)
|
||||||
.map_err(Error::Console)?;
|
.map_err(Error::Console)?;
|
||||||
|
|
||||||
|
// Replace "\n" with "\r" to deal with Windows SAC (#1170)
|
||||||
|
if count == 1 && out[0] == 0x0a {
|
||||||
|
out[0] = 0x0d;
|
||||||
|
}
|
||||||
|
|
||||||
if self
|
if self
|
||||||
.device_manager
|
.device_manager
|
||||||
.lock()
|
.lock()
|
||||||
|
Loading…
Reference in New Issue
Block a user