Skip to content

automation: send one key command per character in shell send (#52) - #53

Merged
alexis900 merged 1 commit into
mainfrom
fix/shell-send-key-commands-52
Nov 24, 2026
Merged

alexis900 merged 1 commit into
mainfrom
fix/shell-send-key-commands-52

Conversation

@alexis900

Copy link
Copy Markdown
Contributor

Qué

neodev shell send escribía mal las líneas con un carácter con shift seguido
de otro símbolo: se batcheaba toda la línea en un solo sendkey con las teclas
unidas por -, que QEMU interpreta como un acorde. El shift de : seguía
pulsado y el \ siguiente llegaba como | (dir C:|Users), o el / como ?.

Ahora se emite un sendkey por carácter mediante un helper key_commands
testeable; el resto del mapeo no cambia.

Pruebas

  • cargo test → 64 passed, 1 ignored (nuevos tests de key_commands: una orden
    por carácter, símbolos con shift y caracteres sin mapeo).
  • cargo clippy --all-targets --locked -- -D warnings.
  • Verificación end-to-end contra NeoDOS v0.53.0:
    • neodev shell send "dir C:\\Users" lista Administrator/Guest/NeoDOS.
    • neodev shell send "cd C:/Users/NeoDOS" deja el prompt en
      C:\Users\NeoDOS>.
    • md C:\HACKTEST se deniega (sin permisos en C:\), como debe.

Versión: 0.3.1.

Fixes #52

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.
@alexis900
alexis900 merged commit 5305b8b into main Nov 24, 2026
3 checks passed
@alexis900
alexis900 deleted the fix/shell-send-key-commands-52 branch November 24, 2026 22:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

automation: shell send loses characters after shifted keys (backslash becomes pipe)

1 participant