Peter and Ged, thank you very much for sharing your experiences.
I tried ^H, DEL before sending the email, they both don't work.
NuttX with ns16550 driver works fine with QEMU riscv, the problem happens with NuttX with pl011 driver and QEMU arm only. If the QEMU side has no differences, then it may be NuttX guest side issue.
From:"Peter Maydell"< peter.maydell@linaro.org >;
Date:2024/10/14 18:23
To:"G.W. Haywood"< qemu@jubileegroup.co.uk >;
CC:"qemu-discuss"< qemu-discuss@nongnu.org >;
Subject:Re: qemu-system-arm -nographic question
On Mon, 14 Oct 2024 at 11:12, G.W. Haywood
wrote:
>
> Hi there,
>
> On Mon, 14 Oct 2024, yfliu2008 wrote:
>
> > When using "qemu-system-arm -M virt -nographic" using QEMU v6.2 on
> > Ubuntu 22.04, it seems the "Backspace" key doesn't work, are
> > there any solutions?
>
> Bear in mind that most keyboards are programmable, and one man's
> backspace is another man's DEL or CTRL-H which is what I'd try first.
Right. '-nographic' is just sending the host terminal input
to the guest serial port. Backspace works for me, so the
problem is likely either (a) the guest config or (b) the
host config (and my first guess would be (a) here).
Unfortunately keyboard handling has a lot of different layers of
software between your keypress and something actually happening,
and with a VM setup there are now two copies of these layers, so
it's not easy to say where exactly the problem might be. There
used to be Linux HOWTO documents purely on the questions of
backspace and delete and how to configure things :-)
-- PMM