From bdef97247477955c26806f0eccb0fce9c1ecbeee Mon Sep 17 00:00:00 2001 From: Gerd Hoffmann Date: Tue, 27 May 2014 09:32:36 +0200 Subject: console: add kbd_put_string_console Signed-off-by: Gerd Hoffmann --- ui/console.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'ui') 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); -- cgit v1.2.3-55-g7522