aboutsummaryrefslogtreecommitdiff
path: root/monitor.c
diff options
context:
space:
mode:
Diffstat (limited to 'monitor.c')
-rw-r--r--monitor.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/monitor.c b/monitor.c
index 633b898921..195a0b0071 100644
--- a/monitor.c
+++ b/monitor.c
@@ -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, },
};