File: [local] / OpenXM_contrib / pari / misc / Attic / gprc.dft (download)
Revision 1.1.1.1 (vendor branch), Sun Jan 9 17:35:30 2000 UTC (24 years, 7 months ago) by maekawa
Branch: PARI_GP
CVS Tags: maekawa-ipv6, VERSION_2_0_17_BETA, RELEASE_20000124, RELEASE_1_2_3, RELEASE_1_2_2_KNOPPIX_b, RELEASE_1_2_2_KNOPPIX, RELEASE_1_2_2, RELEASE_1_2_1, RELEASE_1_1_3, RELEASE_1_1_2 Changes since 1.1: +0 -0
lines
Import PARI/GP 2.0.17 beta.
|
/* .gprc (c) K.B. version 2.14 (11 June 1999)
*
* SAMPLE GP INIT FILE.
*
* Customize (by uncommenting and modifying the relevant lines) and put in
* $HOME/.gprc (or $GPRC) or /etc/gprc. Syntax explained at the end. */
\\ read "lib/gpalias"
/* Read lib/gpalias BEFORE gp prompts you for commands.
* The file contains some standard abbreviations (correct the path!!!) */
\\ secure = 1
/* Disable commands system() and extern(). These commands are dangerous
* since they allow scripts to execute arbitrary Unix commands */
\\ compatible = 0
/* CAUTION: scripts written in the old (1.x) syntax WILL NOT WORK AS BEFORE.
* If compatible>1, the OLD functions are the ONLY ONES known to gp, save
* for default() itself */
\\ path = ".:~:~/gpdir"
/* List of directories where gp will look for scripts (separated by ':',
* use "\:" to insert a real ":"). The ~ notation may not be available on
* your system */
prompt = "(%R) \e[1mgp\e[m > "
#if READL prompt = "(%R) \e[1mgp\e[m > "
#if EMACS prompt = "? "
/* Set gp prompt. % is used for macros related to the time of day [back to
* the shell prompt, try "man strftime"]. Example: %R = time of day in the
* form HH:MM. Characters can be escaped UNIX-style using '\', e.g \e = <ESC>
*
* Above, the first escape sequence sets a bold font, the second restores
* the original (so we get a bold "gp"), and we prefix by the time of day
*
* CAUTION1: If you have escape sequences in your prompt (as above) and use
* readline, you will get display bugs. With a recent enough readline, you
* can work around those by bracing non-visible characters between ^A/^B
* pairs (see manual), like this:
*
* #if READL prompt = "(%R) \e[1mgp\e[m > "
* ^^_____^^ brace the "set bold" sequence \e[1m
*
* CAUTION2: If you plan to use gp under emacs, do not tamper with the prompt
* variable UNLESS you also set correctly the gp-prompt-pattern regexp in
* your .emacs. For instance, if to use:
*
* #if EMACS prompt = "(%R) gp > "
*
* add the following two lines in your .emacs:
*
* (setq gp-prompt-pattern
* (concat "^([0-9][0-9]:[0-9][0-9]) gp > [\C-j\t ]*\\|" gp-prompt-pattern))
*/
\\ clear background:
\\ #ifnot EMACS colors = "9, 5, no, no, 4, 1, 2"
\\ dark background:
\\ #ifnot EMACS colors = "9, 1, no, no, 6, 1, 2"
/* If your terminal supports color. These are suggested values that don't
* look too bad with the colormap provided with the distribution (under
* emacs you have to customize colors using the Menu Bar). */
\\ Extended help options (don't interact well with emacs):
\\ Don't use TeX + xdvi, but outputs formatted help in GP window:
\\ #ifnot EMACS help = "/usr/local/bin/gphelp -detex"
\\ Same, using colors:
\\ #ifnot EMACS help = "/usr/local/bin/gphelp -detex -ch 4 -cb 0 -cu 2"
\\ Stack size : 10MB.
\\ parisize = 10 000 000
\\ Biggest precomputed prime
\\ primelimit = 1 000 000
\\ Set timer on
\\ timer = 1
\\ Set logfile name and enable logging.
\\ Uncommenting the next two lines produces a different logfile each day:
\\ logfile = "~/tmp/pari-%d.%m"
\\ log = 1
\\ Output for postscript-producing gp commands.
\\ psfile = "~/tmp/pari.ps"
\\***************************** FORMAT : ***************************
\\ Lines starting with '\\' and between '/*' '*/' pairs are comments
\\ Blank lines are ignored
\\ Line starting with #if KEYWORD is read iff KEYWORD is TRUE
\\ Currently recognized keywords:
\\ EMACS are we running under emacs?
\\ READL is readline available?
\\
\\ This file should be put in $HOME/.gprc or /etc/gprc and contain:
\\ * references to gp scripts that are to be run BEFORE the first gp prompt.
\\
\\ Syntax: read "filename" (quotes are mandatory. ~ syntax allowed)
\\
\\ * variable definitions (so-called "environment variables" in the sequel)
\\
\\ Definitions are overruled by command line switches. For instance
\\ invoking gp -s 100 will set environment variable stacksize to 100 (not
\\ a very bright thing to do by the way), regardless of what is in .gprc
\\
\\ Syntax: variable name = value
\\
\\ Environment variables which are not set here assume default values in gp.
\\ Can be changed under GP using default(), or keyboard shortcuts (see ?\).