Re:Re: qemu-system-arm -nographic question
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. Regards, yf Original From:"Peter Maydell"< peter.mayd...@linaro.org >; Date:2024/10/14 18:23 To:"G.W. Haywood"< q...@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
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
qemu-system-arm -nographic question
Dear community, 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? Thanks! yf
Re: qemu-system-arm -nographic question
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. If that fails I'd try to check what - if anything - my keyboard was actually sending to the application when I hit the backspace key. https://en.wikipedia.org/wiki/Backspace -- 73, Ged.
Re: qemu-system-arm -nographic question
Hi there, On Mon, 14 Oct 2024, Peter Maydell wrote: On Mon, 14 Oct 2024 at 11:12, G.W. Haywood wrote: 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. ... Unfortunately keyboard handling has a lot of different layers of software between your keypress and something actually happening, ... It occurred to me after I posted that I could have mentioned one of my anecdotes from about twenty years ago. A good customer bought a new computer but he wanted to keep his old keyboard - some weird Microsoft thing - because he'd got used to its extra buttons and used them a lot with CAD and what-not. Trouble was they didn't all work. By the time I'd got them all working I'd figured out that there were SEVEN layers of software between the keyboard and his applications and they all had their own, different and sometimes conflicting, ideas about what to do with the extra keys. Backspace isn't usually a huge problem but it is one of the more common ones. For a laugh it might be worth looking at 'man stty' too. -- 73, Ged.