On 04/16/19 09:24, Gerd Hoffmann wrote: > On Mon, Apr 15, 2019 at 03:10:09PM -0400, John Snow wrote: >> <CC'ing curses maintainer> >> >> On 4/13/19 5:02 AM, Joachim Durchholz wrote: >>> Hi all, >>> >>> what's the reasoning behind "We need a terminal output" in curses.c? > > curses needs a terminal. > >>> I don't really see a scenario where it's problematic if qemu emits >>> escape sequences to a pipe. > > It's not about sending escape sequences. A pipe simply doesn't support > all the tty ioctls (query terminal size, turn echo on/off, set all kinds > of terminal modes, ...).
( Indeed, it's called the "General Terminal Interface". http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap11.html ) >>> I can see another scenario when this is problematic: Unit testing code >>> that directly writes to the console. E.g. testing BIOS code, or testing >>> operating systems when using the serial port is not an option. > > seabios can work with the serial console just fine, try "qemu -nographic" > > cheers, > Gerd > >