Re: Bug#976808: with "-display gtk" arrow keys are received as just ^[ on ttyAMA0
On 13/12/2020 12:05, Ryutaroh Matsumoto wrote:
> I verified that the reported symptom does NOT occur with
> qemu-system-x86_64 and ttyS0 serial console running on an amd64 host.
> This symptom seems unique to arm(64).
I had misunderstood you and was trying with -nographic earlier :) .
Found an easier way to reproduce:
qemu-system-aarch64 \
-display gtk -enable-kvm -machine virt -cpu host -m 1G -smp 2 \
-kernel /boot/vmlinuz -initrd /boot/initrd.img \
-append "break console=ttyAMA0"
Then, run cat on the initramfs shell and see arrow keys result in ^[ .
For x86_64, it's console=ttyS0 and ^[[A etc. as you also found out.
Reply to: