Created
August 10, 2018 21:28
-
-
Save grahamc/8340c7f988446e6c559a9c17cd60ff76 to your computer and use it in GitHub Desktop.
This file contains 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
qemu-img create linux.img ${size} | |
( | |
set -x | |
sleep 1; | |
KEYS_UP=$'\e'[A | |
KEYS_DOWN=$'\e'[B | |
KEYS_RIGHT=$'\e'[C | |
KEYS_LEFT=$'\e'[D | |
echo -n $KEYS_DOWN | |
sleep 0; | |
echo -n $KEYS_DOWN | |
echo "" | |
sleep 0 | |
echo -n "x" | |
sleep 0 | |
echo $'\t' | |
sleep 2 | |
echo -n " " | |
)| qemu-system-x86_64 ${pkgs.lib.escapeShellArgs qemuOpts} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment