; Default resource file "$HOME/.pirc" for the UNIX PI editor.
; Comment lines start with ';' or '#'.
; No leading white space on any line!
; The first three characters of a variable name are significant.
; Text can be edited.
;
;  ====================== FAVORITE SETUP CHANGES =======================
;
select.emulation=2;   None==0, Emacs==1, WordStar==2, WordPerfect==3. (2=default)
backup.toggle=2;      Backup OFF (0) or ~/PIbackups (1) or ./PIbackups (2)
auto.indent.toggle=0; Toggle auto-indent word wrap (1=on,0=off). (1)
word.wrap.toggle=0;   Toggle word wrap at right margin (1=on,0=off). (1)
hang.indent.toggle=0; Toggle hanging indent mode (1=on,0=off)  (0)
xmouse.toggle=1;      X-windows mouse for xterm. 0=off, 1=on.
;                     Press Left-mouse to set cursor, SHIFT-drag-mouse
;                     to copy and SHIFT-right-mouse to paste.
;
; ======================== STARTUP and EXIT =======================
;
action.on.startup=1; Menu on initial startup (1) or UnTitled (0).
suspend.on.exit=1;  Suspend PI on SAVE THEN EXIT ctrl-KX. MSDOS (0)
;
; ========================= SETUP SIZE LIMITS =========================
;
xms.maximum.blocks=1024; Block maximum msdos xms (512) or unix (1024)
block.buffer.size=16; Block size msdos [2k->10k] (4) or unix [2k->32k] (16)
string.reserve.blocks=6; Blocks reserved msdos for internal line copying (6)
max.macro.size=256;   Size in chars of a macro recording buffer (256=normal).
available.macros=25;  Number of macro slots. See MACNUM in v10.c (25=normal).
info.max.size=40;     Number of files editor will load at one time (40)
killed.line.max=1000;  Maximum killed lines that will be saved (100=normal).
line.max.chars=384;   Maximum allowed line length (160=normal).
most.lines.count=40;  Most lines per screen >= 1+(row-max-index) (40=normal).
;
;
bit.strip.toggle=0;   Toggle stripping of 128-bit on input file (1=on,0=off).
detab.toggle=1;       Toggle auto-detab of input during scrolling (1=on,0=off).
fold.case.toggle=1;   Toggle case-insensitive search mode (1=on,0=off).
insert.toggle=1;      Toggle insert mode (1=on,0=off).
status.line.toggle=1; Print status line during edit (2=all,1=no numbers,0=off).
screen.tab.stop=8;    Screen tab stop increment for TAB key (8=normal).
file.detab.stop=8;    Tab stop increment for detabbing a file (8=default).
import.type=3;        Import text line delimiter code (1=MSDOS,2=MAC,3=UNIX).
export.type=3;        Export text line delimiter code (1=MSDOS,2=MAC,3=UNIX).
drawing.style=1;      Default line/box drawing style (1 to 5,1=default).
tab.insert.mode=0;    Tab key inserts spaces and/or TAB (1=on,0=off)
return.insert.crlf=0; EMACS-like split on RETURN (1=on,0=off)
right.margin=72;      Right margin for word wrap and centering (72=normal).
; Don't change these....
search.token.lf=-128; Token in search string used for begin or end line
cga.noretrace.video=1; Set noretrace mode for CGA video (1=mono/ega/vga).
;
; ======================  COLOR INFO for IBM-PC =======================
;
; dark colors: BLACK=0, BLUE=1, GREEN=2, CYAN=3, RED=4, MAGENTA=5,
;              BROWN=6, LIGHTGRAY=7
; light colors: DARKGRAY=8, LIGHTBLUE=9, LIGHTGREEN=10, LIGHTCYAN=11,
;               LIGHTRED=12, LIGHTMAGENTA=13, YELLOW=14, WHITE=15
; Example: foreground=BLACK, background=LIGHTCYAN uses attribute 48
;          because (foreground+(background)*16) - 128 = 48.
;          Warning: Attributes are in the range 0 to 127.
;                   Add 128 to an attribute to make it blink.
; MSDOS uses special codes:
;other.attributes=(7=mono,48=color)
;title.attribute=(31=boldface,15=mono).
;window.attribute=(19=blue /w yellow text,7=mono).
;border.attribute=(31=boldface,15=mono).
;
; Unix variables are completely different:
other.attributes=7;   Screen attribute for edit screens (7=normal)
title.attribute=128;  Window title attribute flag (128=boldface).
window.attribute=7;   Window text attribute flag (7=normal text).
border.attribute=128; Window border attribute flag (112=reverse video).
box.characterset=0;   Box border char set (0=Text,1=vga1,2=vga2,3=iso1,4=iso2)
;
; =============== UNIX Color info for ANSI terminals ==================
;
; Colors are 0-7: 0=black, 1=red, 2=green, 3=brown, 4=blue, 5=magenta,
;                 6=cyan, 7=white.
; Foreground: 30-37, background 40-47.
ansi-mode-unix=1;      Set ANSI terminal mode (unix only, 0=off, 1=on)
tfg-text-fg-color=30;  Foreground text color 30-37 ANSI mode (0=default)
tbg-text-bg-color=46;  Background text color 40-47 ANSI mode (0=default)
mfg-menu-fg-color=37;  Foreground menu color 30-37 ANSI mode
mbg-menu-bg-color=44;  Background menu color 40-47 ANSI mode
;
; ========================== Printer Setup ==========================
;
printer.number=0;     set printer 0-6:prn,com1,com2,com3,lpt1,lpt2,lpt3
lpp.printer=55;       lines printed per page, 55 normal (printer)
left.spaces.printer=0; number of spaces printed before line (printer)
top.lines.printer=5;  number of blank lines at top (printer)
bot.lines.printer=5;  number of blank lines at bottom (printer)
formfeed.printer=1;   use formfeed between pages, 1=on,0=off (printer)
;
; The abort key interrupts macros and stops type-aheads (editor halt).
abort.editor.char=21;  Bailout/abort key is normally ctrl-U (21 decimal)
;
; Next two handled by TERMCAP - changes declare you an expert! (Win3)
row.max.index=23;     Rows numbered 0..ROWMAX (ROWMAX=23 is normal).
col.max.index=79;     Columns numbered 0..COLMAX (COLMAX=79 is normal).
;
; ==================== MSDOS MOUSE and CURSOR ===================
;
; Normal settings MSDOS: 0,0,1,13
;
horizontal.mouse.sens=0; Mouse sensitivity. Normal=8, Mouse Off=0.
vertical.mouse.sens=0;   Mouse sensitivity. Normal=16, Mouse Off=0.
chigh.cursor.shape=1;  Set IBM cursor to vga (1) or cga (6) or mono (12).
clow.cursor.shape=13;  Set IBM cursor to vga (13) or cga (7) or mono (13)
;
; ======================= HTML Browser Default ======================
;
; Win95/98/2000:               Unix:
; browser=netscape.exe          browser=netscape
; browser=iexplorer.exe         browser=netscape&   [launch in background]
;                               browser=lynx
 browser=netscape&
;
; ======================= MSDOS Bios KEY REMAP ======================
;
; MSDOS: Mapping of GREY keys on IBM 101 keyboard via bios keycode
; Grey plus==0x4e2b==20011, Grey ast==0x372a==14122, Grey ent==0xe00d==57357
; "Alt ="==0x8300==33536 (ENTER key), "Ctrl _"==0x0c1f==3103  (MENU key)
; To restore a key, use its keycode, e.g., uncomment one of these:
plus.grey.keycode=20011;     Grey plus mapped to itself (20011)
asterisk.grey.keycode=14122; Grey asterisk mapped to itself (14122)
;enter.grey.keycode=57357;    Grey enter mapped to itself (57357)
; The defaults from compile time are:
;plus.grey.keycode=33536;     Grey plus mapped to "Alt =" (33536)
;asterisk.grey.keycode=3103;  Grey asterisk mapped to "Ctrl _" (3103)
;enter.grey.keycode=33536;    Grey enter mapped to "Alt =" (33536)
;
; ====================== Cycle Tables for accented chars =============
;
;czech keys. The array is 66 chars long. First is space \40.
;            The 33 pairs are toggled by the F12 key or ctrl-\.
;            To see the set correctly load MSDOS 5.0 code page 852!
;31000
; foreign=\40\363a\240e\202i\241o\242u\243y\354c\237d\324n
; foreign=\345r\375s\347t\234z\247A\265E\220I\326O\340U\351Y
; foreign=\355C\254D\322N\325R\374S\346T\233Z\246\243\205\205u
; foreign=\202\330\330e\220\267\267E
;
; ============================  KEY MAPS ===========================
;
; The keymap changes from the default plus macro keys are to be entered
; below. Global changes should be made in the system file PI.SET using
; the editor built-in "Keymap Editor" on the TOOLS menu.
;
; A local change comes from copying PI.SET to the connected directory.
; PI.SET is read during PI startup. Dynamic local changes in the keymap
; can be made from PI-MACRO.KEY, which is also read on startup, from the
; connected directory. Startup macros and key definitions can be in
; both files. PI.SET is read first, then PI-MACRO.KEY. Permanent
; local changes are made by manually moving text from PI-MACRO.KEY
; into the file PI.SET. All changes made in the KEYMAP EDITOR go directly
; into PI.SET. The file PI-MACRO.KEY is considered a temp file, but it
; is useful for temporarily loading some macros.
;
; All remarks here apply as well to unix, where the file names change to
; ".\PI.SET" <--> "./.pirc" and ".\PI-MACRO.KEY" <--> "./pi-macro.key".
;
15001 * Latex * [MACROKEY+1]
 macro=^K^S\E\Elatex ^K^F^O^R
 key=\E1
 tool=Latex on current file
15002 * View dvi *  [MACROKEY+2]
 macro=\E\Exdvi ^K^F^H^H^H^H &^O^R
 key=\E2
 tool=Xdvi on current file
15003 * Print dvi * [MACROKEY+3]
 macro=\E\Elpr ^K^F^H^H^H.dvi^O^R
 key=\E3
15004 * ispell *  [MACROKEY+4]
 macro=\E\Eispell ^K^F^O^R
 key=\E4
15005 Date line [MACROKEY+1]
 key=\Ed
 macro=^Q^Pdate^M
 tool=Date insert
15006 Xterm font "fixed" [MACROKEY+1]
 macro=^O^Qecho -e "\\033]50;fixed\\7"^M
 tool=Xterm setfont "fixed"
; ========= End of original PI.SET source ======================
