Karim Belabas on Fri, 06 Mar 2015 21:35:19 +0100


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

Re: gphelp: Don't print escape code in raw mode


* Jeroen Demeyer [2015-02-27 10:43]:
> When running gphelp -raw, there should be no escape code at the end, see
> patch.

Applied to master. Thanks !

    K.B.

> commit d1af862d04e27179b518a92fe110d59b48c9205f
> Author: Jeroen Demeyer <jdemeyer@cage.ugent.be>
> Date:   Fri Feb 27 10:42:27 2015 +0100
> 
>     Do not print escape code in raw mode
> 
> diff --git a/doc/gphelp.in b/doc/gphelp.in
> index 48ee43c..889fb5c 100755
> --- a/doc/gphelp.in
> +++ b/doc/gphelp.in
> @@ -72,7 +72,7 @@ cleanexit();
>  # Procedures
>  #
>  sub cleanexit {
> -  print "\e[0m" unless $to_pod;
> +  print "\e[0m" unless $raw or $to_pod;
>    exit 0;
>  }
--
Karim Belabas, IMB (UMR 5251)  Tel: (+33) (0)5 40 00 26 17
Universite de Bordeaux         Fax: (+33) (0)5 40 00 69 50
351, cours de la Liberation    http://www.math.u-bordeaux.fr/~kbelabas/
F-33405 Talence (France)       http://pari.math.u-bordeaux.fr/  [PARI/GP]
`