Repository navigation
automation: send one key command per character in shell send (#52) - #53
Merged
Merged
Conversation
QEMU joins keys separated by `-` into a single chord, so sending a whole line left `shift` held after a shifted key: `dir C:\Users` reached the guest as `dir C:|Users` and `/` after `:` arrived as `?`. Emit one `sendkey` per character through a testable `key_commands` helper, and cover the mapping for shifted symbols and unmapped characters.
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.
Qué
neodev shell sendescribía mal las líneas con un carácter conshiftseguidode otro símbolo: se batcheaba toda la línea en un solo
sendkeycon las teclasunidas por
-, que QEMU interpreta como un acorde. Elshiftde:seguíapulsado y el
\siguiente llegaba como|(dir C:|Users), o el/como?.Ahora se emite un
sendkeypor carácter mediante un helperkey_commandstesteable; el resto del mapeo no cambia.
Pruebas
cargo test→ 64 passed, 1 ignored (nuevos tests dekey_commands: una ordenpor carácter, símbolos con shift y caracteres sin mapeo).
cargo clippy --all-targets --locked -- -D warnings.neodev shell send "dir C:\\Users"lista Administrator/Guest/NeoDOS.neodev shell send "cd C:/Users/NeoDOS"deja el prompt enC:\Users\NeoDOS>.md C:\HACKTESTse deniega (sin permisos enC:\), como debe.Versión:
0.3.1.Fixes #52