qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [Qemu-trivial] [PATCH] readline: Clear screen on form f


From: Michael Tokarev
Subject: Re: [Qemu-devel] [Qemu-trivial] [PATCH] readline: Clear screen on form feed.
Date: Sun, 08 Jun 2014 18:03:45 +0400
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Icedove/24.5.0

01.06.2014 15:53, Hani Benhabiles wrote:
> Signed-off-by: Hani Benhabiles <address@hidden>
> ---
>  util/readline.c | 9 +++++++++
>  1 file changed, 9 insertions(+)
> 
> diff --git a/util/readline.c b/util/readline.c
> index 8baec55..08d07e3 100644
> --- a/util/readline.c
> +++ b/util/readline.c
> @@ -345,6 +345,12 @@ static void readline_completion(ReadLineState *rs)
>      }
>  }
>  
> +static void readline_clear_screen(ReadLineState *rs)
> +{
> +    rs->printf_func(rs->opaque, "\033[2J\033[1;1H");
> +    readline_show_prompt(rs);

That's not entirely universal escape sequence, but readline
code uses similar sequences in other places already.

Applying to -trivial, thank you!

/mjt




reply via email to

[Prev in Thread] Current Thread [Next in Thread]