curses interface and tweaks for 0.8.1
Hi,
since QEMU 0.8.1 is out and there have been some changes in handling video devices recently, I re-diffed the old curses/ncurses driver and made a patch against this version. While I was at it I added other improvements and dirty hacks that I find useful, all the shebang is in the file http://www.zabor.org/balrog/qemu-curses-etc.patch
The changes are:
* cleaned up the code, made the internal logic more.. logical.
* you can choose keyboard layouts with -k similarly to SDL (Fabrice Bellard requested this).
* you can switch between user interfaces using the monitor command "ui interfacenamehere", without restarting QEMU (while this command is a bit redundand, many people asked for it):
ui sdl -- switches to SDL interface,
ui curses -- curses interface,
ui cocoa -- untested,
ui vnc -- kills the interfaces and starts this new VNC server, ui dumb -- don't do this.
* added virtual consoles support in the VNC server -- works same way as with SDL as far as I can tell: Ctrl+Alt+2 switches to monitor, etc.
* you can set variable names from monitor with "variable=value" (no spaces around `='), e.g. "TERM=xterm" might be important for the curses interface and DISPLAY or SDL_VIDEODRIVER values matter for the SDL interface. If you started qemu on the X display localhost:0.0 and then went to a different machine, you can issue the following:
(qemu) DISPLAY=othermachine:5
(qemu) ui sdl
and the QEMU window should magically re-appear on the other computer's screen.
* QEMU saves monitor commands history to "~/.qemu_history" on exit and restores the history when you run a new QEMU.
* improved "sendkey" command (tab-completion for key names, sending keys by keycode number, some bugfixes). I described this in some older mail.
Regards,
Andrzej
--
Dear Outlook users: Please remove me from your address books
http://www.newsforge.com/article.pl?sid=03/08/21/143258
Hi andrzej,
could you split the changes into smaller patches ?
IMO people would really like to have e.g. improved sendkey command and monitor commands history without curses.
Quoted 6 lines · --- andrzej zaborowski
Hi,
* QEMU saves monitor commands history to "~/.qemu_history" on exit
and restores the history when you run a new QEMU.
* improved "sendkey" command (tab-completion for key names, sending
keys by keycode number, some bugfixes). I described this in some older mail.
Kind regards,
Sylvain Petreolle (aka Usurp)
--- --- --- --- --- --- --- --- --- --- --- --- ---
Listen to free Music: http://www.jamendo.com
Windows is proprietary, use free ReactOS instead : http://www.reactos.org
Hi there,
Quoted 5 lines · Sylvain Petreolle
Hi andrzej,
could you split the changes into smaller patches ?IMO people would really like to have e.g. improved sendkey command and monitor commands history without curses.
You can find these two changes in separate patches attached to this older message:
http://lists.gnu.org/archive/html/qemu-devel/2005-12/msg00266.html
(the patches might still apply because there haven't been many changes since then).
Note, however that you won't notice curses support being there if you don't use -curses in your qemu commandline. Also it should be neutral to the build as it detects if you have the needed libs and headers.
BTW, it seems my way of shutting down the VNC server is not perfect and sometimes the listening port is not closed until qemu exits and if you issue "ui vnc" a second time in one qemu session it might not want to listen on the same port again.
Quoted 11 lines
Quoted 6 lines · --- andrzej zaborowski
Hi,
* QEMU saves monitor commands history to "~/.qemu_history" on exit
and restores the history when you run a new QEMU.
* improved "sendkey" command (tab-completion for key names, sending
keys by keycode number, some bugfixes). I described this in some older mail.
Quoted 7 lines
Kind regards,
Sylvain Petreolle (aka Usurp)
--- --- --- --- --- --- --- --- --- --- --- --- ---
Listen to free Music: http://www.jamendo.com
Windows is proprietary, use free ReactOS instead : http://www.reactos.org
Regards,
Andrzej
--
balrog 2oo6
Dear Outlook users: Please remove me from your address books
http://www.newsforge.com/article.pl?sid=03/08/21/143258