diff options
author | bellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162> | 2004-03-17 23:17:16 +0000 |
---|---|---|
committer | bellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162> | 2004-03-17 23:17:16 +0000 |
commit | 59a983b921e8318ae8da357aacd496c3ab5bbc5b (patch) | |
tree | 229c659701526f1cfa1f47728a4d8215ccc6c3a7 /monitor.c | |
parent | 4e463d8d508d93756b9684ae030b5c412f7ea891 (diff) |
device independent VGA screen dump
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@668 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'monitor.c')
-rw-r--r-- | monitor.c | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -245,6 +245,15 @@ static void do_change(int argc, const char **argv) bdrv_open(bs, argv[2], 0); } +static void do_screen_dump(int argc, const char **argv) +{ + if (argc != 2) { + help_cmd(argv[0]); + return; + } + vga_screen_dump(argv[1]); +} + static term_cmd_t term_cmds[] = { { "help|?", do_help, "[cmd]", "show the help" }, @@ -258,6 +267,8 @@ static term_cmd_t term_cmds[] = { "[-f] device", "eject a removable media (use -f to force it)" }, { "change", do_change, "device filename", "change a removable media" }, + { "screendump", do_screen_dump, + "filename", "save screen into PPM image 'filename'" }, { NULL, NULL, }, }; |