summaryrefslogtreecommitdiff
path: root/ui
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2014-05-27 09:32:36 +0200
committerGerd Hoffmann <kraxel@redhat.com>2014-06-02 16:28:58 +0200
commitbdef97247477955c26806f0eccb0fce9c1ecbeee (patch)
tree43d499b9f6aaf0e8cd665816b8e978f6320ea361 /ui
parent50ef4679232369b531d5265ebe92550f98a75ea6 (diff)
console: add kbd_put_string_console
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'ui')
-rw-r--r--ui/console.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/ui/console.c b/ui/console.c
index b99312c014..2ce55a69d0 100644
--- a/ui/console.c
+++ b/ui/console.c
@@ -1133,6 +1133,15 @@ bool kbd_put_qcode_console(QemuConsole *s, int qcode)
return true;
}
+void kbd_put_string_console(QemuConsole *s, const char *str, int len)
+{
+ int i;
+
+ for (i = 0; i < len && str[i]; i++) {
+ kbd_put_keysym_console(s, str[i]);
+ }
+}
+
void kbd_put_keysym(int keysym)
{
kbd_put_keysym_console(active_console, keysym);