Content-type: text/html; charset=UTF-8 Man page of SET

SET

Section: PD Piglet Users Manual (1P)
Updated: PD Piglet Users Manual
Index Return to Main Contents
 

NAME

SET - Set environment variables  

SYNOPSIS

SET [:P] [:E] [:M]

SET [<variable> [<value]]  

DESCRIPTION

Piglet inheirits any environment variables exported by the parent shell. In addition, new variables can be created as private variables by using the SET command. If called with no arguments, SET will print out the list of all currently defined variables preceeding each one with either [E] for exported variables, [P] for private variables, or [M] for macro definitions. The :P, :E and :M options limit the listing to only private variables, exported variables, or macro definitions, respectively. With just one argument, SET will print the value of the variable named by the argument. With two arguments, SET will set the variable named by the first argument to the value of the second argument.

If a UNIX command is run by typing its name at the command prompt or as an argument to the SHELL command, then its enviroment will be initialized to include all of Piglet's exported variables.

 

VARIABLES USED BY PIGLET

PATH dir1<:dir2><:dir3>...
The PATH variable is used by the SHELL command to search for UNIX commands. It is initialized by the calling shell, but can be queried and modified within Piglet to customize the search path. When entering a new PATH the argument to SET will need to be quoted to protect the ":" delimiters from being interpreted as Piglet options.
PIG_PATH dir1<:dir2><:dir3>...
The search path used for loading all of Piglet's auxiliary files such as NOTEDATA, TEXTDATA, MENUDATA, PROCDATA, etc. Defaults to "./cells:.:./.pigrc:~/.pigrc:/usr/local/lib/piglet:/usr/lib/piglet"
PIG_FONT_SIZE <size> ; default is 10.0
The default font size used for both note and text if not otherwise overridden with :F option.
PIG_FONT_SLANT <degrees> ; default is 0.0
The default italic font slant (from -45.0 to +45.0) used for both note and text if not otherwise overridden with :Z option.
PIG_GRID <dx> [<dy> [<dxs> [<dys> [<xorig> [<yorig>]]]]]
From one to six floats used to set the grid deltax, deltay, xskip, yskip, and x and y origins. Any parameters left off will remain set to the default grid specification of "10 10 1 1 0 0".
PIG_GRID_COLOR <num> ; default is 3
Used to set the default grid color when editing new cells.
PIG_MENUDATA_FILE <filename> ; default is MENUDATA_V
Sets the name used for loading the Menu definition file.
PIG_NOTEDATA_FILE <filename> ; default is NOTEDATA.F
Sets the name used for loading the stroke definition file for NOTEs.
PIG_TEXTDATA_FILE <filename> ; default is TEXTDATA.F
Sets the name used for loading the stroke definition file for TEXT.
PIG_PROCDATA_FILE <filename> ; default is PROCDATA.P
Sets the name used for loading the process layer definition.
PIG_SPLASH_REP <cellname> ; default is piglogo
Sets the name of the cell used for the initial splash screen during startup. The cell should already exist in PIG_PATH.
PIG_X11MENU_FONT <X11fontname> ; default is 10x20
Sets the name of the X11 font to be used for the menu and on-screen coordinate annotation. Piglet will try to load the font named by this environment variable (if set). If the name font is not available, Piglet will then attempt to fallback to "10x20", "9x15" and then "fixed". The X11 "xlsfonts" command can be used to give you a list of fonts available on your system.
 

EXAMPLES

ksh> PIG_SPLASH_REP=mylogo pig
Change Piglet's splash screen to use mylogo for this run only.
ksh> export PIG_SPLASH_REP=mylogo; pig
Change Piglet's splash screen for all future runs from this shell.
MAIN> SET PIG_GRID 20 20
Inside Piglet, change the default grid for new cells to be 20 units spacing in both x and y, leaving skip and offsets unchanged.
MAIN> SET PIG_GRID 10 10 1 1 5 5
Inside Piglet, change the default grid for new cells to be 10 units spacing in both x and y, skip of 1 and origin of the grid at 5,5.
MAIN> SET
List all environment variables
MAIN> SET :P
List only Piglet's private environment variables. (Note, if any of Piglet's normally private variables have been overridden by the parent shell, then they will appear as exported variables and must be viewed with the :E option).
 

SEE ALSO

piglet(1p) add_arc(1p) add_circle(1p) add_instance(1p) add_line(1p) add_note(1p) add_oval(1p) add_polygon(1p) add_rectangle(1p) add_text(1p) archive(1p) area(1p) background(1p) bye(1p) change(1p) copy(1p) date(1p) define(1p) delete(1p) display(1p) distance(1p) dump(1p) echo(1p) edit(1p) equate(1p) exit(1p) files(1p) fsize(1p) grid(1p) group(1p) help(1p) identify(1p) input(1p) interrupt(1p) layer(1p) level(1p) list(1p) lock(1p) macro(1p) menu(1p) move(1p) plot(1p) point(1p) process(1p) purge(1p) quit(1p) redo(1p) retrieve(1p) save(1p) search(1p) set(1p) shell(1p) show(1p) smash(1p) split(1p) step(1p) stretch(1p) trace(1p) tslant(1p) undo(1p) units(1p) version(1p) window(1p) wrap(1p) memory(1p) time(1p)  

AUTHOR

Rick Walker (walker AT omnisterra DOT com)

The PD Piglet homepage is at http://www.omnisterra.com/walker/linux/piglet/intro.htm.


 

Index

NAME
SYNOPSIS
DESCRIPTION
VARIABLES USED BY PIGLET
EXAMPLES
SEE ALSO
AUTHOR

This document was created by man2html, using the manual pages.
Time: 23:02:03 GMT, May 05, 2026