[vlc-devel] [PATCH] Restore ncurses colors on exit

Rafaël Carré funman at videolan.org
Sun Dec 29 23:02:45 CET 2013


Hello,

On 12/29/13 19:33, Marc Aldorasi wrote:
> If the terminal colors are not manually restored they will not change
> back when vlc exits, causing other applications to use the wrong colors

Patch applied, thank you very much!

> ---
>  modules/gui/ncurses.c | 17 +++++++++++++++--
>  1 file changed, 15 insertions(+), 2 deletions(-)
> 
> diff --git a/modules/gui/ncurses.c b/modules/gui/ncurses.c
> index bd59a60..f5a742b 100644
> --- a/modules/gui/ncurses.c
> +++ b/modules/gui/ncurses.c
> @@ -185,6 +185,11 @@ struct intf_sys_t
>      bool            color;
>      bool            exit;
> 
> +    /* rgb values for the color yellow */
> +    short           yellow_r;
> +    short           yellow_g;
> +    short           yellow_b;
> +
>      int             box_type;
>      int             box_y;            // start of box content
>      int             box_height;
> @@ -529,8 +534,10 @@ static void FindIndex(intf_sys_t *sys, playlist_t
> *p_playlist)

Please check your mail for next patch, I had to edit the patches because
a couple of lines were wrapped.



More information about the vlc-devel mailing list