Repository navigation
Conversation
The console client leaves ICRNL set, so Enter reaches the guest as LF. SAC accepts LF, but its CMD channel only treats CR as Enter. Convert LF back to CR before forwarding; Linux getty's ICRNL turns it back into NL. Reference: cloud-hypervisor#1770, fixed in PR #1771.
BigfootACA
approved these changes
Nov 11, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
问题
droidvm console只清了ICANON|ECHO|ISIG,ICRNL仍在,回车到 guest 时已变成 LF。Windows SAC 接受 LF,但 CMD 频道只认 CR,所以 SAC 正常、cmd里回车无效。修复
转发前把 LF 映射回 CR。Linux getty 不受影响:其 ICRNL 会把 CR 再转回 NL。
验证
参考实现
cloud-hypervisor 的同一问题(#1770)由 PR #1771 修复,做法相同:
cloud-hypervisor/cloud-hypervisor#1770
cloud-hypervisor/cloud-hypervisor#1771