home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Frozen Fish 1: Amiga
/
FrozenFish-Apr94.iso
/
bbs
/
alib
/
d7xx
/
d770
/
uedit.lha
/
Uedit
/
edt.LZH
/
edt!
next >
Wrap
Text File
|
1992-03-04
|
24KB
|
726 lines
-----------------------------------------------------------------------------
| Config! |
| Copyright (C) 1986-88 Rick Stiles. All rights reserved. |
----------------------------------------------------------------------------
Config! defines all of Uedit's default settings and commands. If you edit
Config! and want to make a new Data! file, type "Run UE -c" in CLI.
If you create a new config such as "NewConfig", you can make Uedit compile it
by typing "UE -cNewConfig" in CLI. On the "Save new Data?" question,
selecting Yes writes a new Data! file.
*****
Edit the contents of each set of angle brackets, but leave the angle-brackets
intact:
(To recompile these defaults anytime, select "Cfg defalts" in the menu.)
(Unless told otherwise, use 0 for "no" or 1 for "yes".)
<0> Make Key-Help file during this compile. (For "TEACH KEYS" in menu.)
(NOTE: If you want to create a new Key-Help facility, you should set
this flag to 1. Startup compile is much faster when it's 0, however.)
<S:Key-Help> Name of Key-Help file to create or look for. 19 chars max.
<1> Show cursor during compile of this configuration. Slower, if show.
<RAM:uejunk> Name for temporary file when one is needed. 19 chars max.
<topaz> Font name (19 chars max).
<8> Font pixel height ( >= 8).
<10> Primiti ve Mode (pmESC) terminator character. ASCII value, 5-255.
<0> User global flag A. Any integer value.
<0> User global flag B. Any integer value.
<0> Columnar display mode
<0> Cram display mode
<1> Show page-row-column
<1> Mark gadgets
<0> Interlace/bitplanes. 0-3.
<1> Show invisibles
<0> Show busies
<0> Teach keys mode
<20> Maximum files to edit. 1-100.
<0> Make icons
<0> Search case-sensitive flag
<?> Search single wildcard. Printable character.
<$> Search either-or delimiter. Printable character.
<*> Search multi wildcard. Printable character.
<~> Search all-but delimiter. Printable character.
<0> White allowed under single wildcard: 0=no, 1=space/tab, 2=any white.
<0> White allowed under multi wildcard: 0=no, 1=space/tab, 2=any white.
<75> Percent offset for submenus. 0-100 percent.
<0> RESERVED (l)
<0> RESERVED (m)
<0> Speak requester alerts
<0> Speak messages
<0> Print tabs (if 0, tabs are converted to spaces during print)
<1> Smart tabs (don't convert tabs if inside quotes)
<1> Screen: 0= Wb screen, 1= Custom screen
<0> Use printable keys for typing, disabling any commands on them.
<2> Printer selection. 0=par:, 1=ser:, 2=prt:, 3=prt: (raw).
<100> Idle-time (tenths of seconds) after which time idle cmd is run. 1-32767
<0> Hide display.
<1> Scroll type: 0 = show colors, 1 = faster
<0> Trap menus to use menu mouse button as a key
<664> Screen width in pixels (640-1064)
<224> Screen height in pixels (gets auto-doubled for LACE) (200-1064)
<0> Task priority when in tiny window (-128 to 127)
<0> Reserved (capsLock)
<0> Reserved (clickTime)
<0> User global flag C. Any integer value.
<1> User global flag D. Any integer value.
<1> Put in tabs, not spaces, when tab key pressed.
<1> Autoindent mode
<0> Overstrike mode
<1> Autobackup mode
<0> RESERVED (r)
<1> Wordwrap mode
<0> Rightjustify mode
<1> Map illegal chars (ASCII 0-4) to table values. (See table below.)
<0> RESERVED (c)
<0> User local flag A
<0> User local flag B
<4> Tab ruler to use. 0-4. (See ruler tables below.)
<77> Line-length. 1-9999.
<5> Split window size in lines. 2-100, up to max lines in window.
<0> Left margin. 0-255.
<0> top margin. 0-255.
<1> bottom margin. 0-255.
<66> lines/page. 1-255.
<10> End-of-line char. 10 = Newline, 13 = Carriage Return.
These are the 5 TAB rulers. There can be up to 32 column-entries in each tab
ruler. The highest column is 255. The lowest is 2. In Uedit, to change
tab rulers, select "Tab ruler". To see the settings, select "See ruler".
To adjust the tabs, select "Set ruler".
<7 13 19 25 31> Tab ruler 0.
<9 17 25 33 41 49> Tab ruler 1.
<11 21 31 41 51 61
71 81> Tab ruler 2.
<> Tab ruler 3.
<5 9 13 17 21 25 29
33 37 41 45 49 53 57
61 65 69 73 > Tab ruler 4.
Uedit uses ASCII characters 0-3 internally for markers. Files cannot
legally contain these characters. If the above "Map illegal chars" flag
is not set, any illegal characters (ASCII 0-3) are replaced by "@" upon
loading the file. If "Map illegal chars" is set, illegal chars are mapped
to the "safe" chars given below upon loading the file. Upon saving the
file, the chars are remapped back into their old ASCII 0-3 values:
<128> map ASCII 0
<129> map ASCII 1
<130> map ASCII 2
<131> map ASCII 3
Printable key table: DON'T TOUCH, unless you know what you are doing!
This is a translation table which converts raw keystrokes into printable
characters. (See Rom Kernal Manual, Volume 1, page 3-81.) There must be
64 in each row. Use OVERSTRIKE typing mode when modifying this, to avoid
trouble:
Normal and SHIFT keys:
Unused --> U U EUROPE--> EE U U
<`1234567890-=\ 0qwertyuiop[] 123asdfghjkl;' 456 zxcvbnm,./ .789>
<~!@#$%^&*()_+| 0QWERTYUIOP{} 123ASDFGHJKL:" 456 ZXCVBNM<>? .789>
ALT and SHIFT+ALT keys: (Put foreign letters in these 2 arrays.)
Keypad keys --> K KKKKKK KKK KKKK "
<`¹²³¢¼½¾·«»-=\ å°©®þ¤µ¡ø¶ æßð £;' ±×窺¸,./ > ..
<~!@#$%^&*()_+| Å°©®Þ¥µ¦Ø¶ ƧР£;' ¬×Ǫº¯¸,./ > .."
Colors: (values must be 0-3, corresponding to RGB color register numbers)
fg bg
((local colors for buffers))
0 normal text <1> <0>
1 cursor <1> <2>
2 hilite <1> <3>
3 cursor+hilite <3> <1>
4 inverse <0> <1>
5 cursor+inverse <0> <2>
6 hilite+inverse <3> <1>
7 cursor+hilite+inverse <0> <3>
((screen colors))
8 title bar <1> <3>
9 msg line <2> <0>
10 menus <1> <3>
11 tab ruler <1> <2>
12 requester <1> <2>
13 formfeed <1> <2>
14 spare1 <0> <1>
15 spare2 <0> <2>
RGB colors: (Range is 0-15.)
Red Green Blue
<0> <5> <10> Register 0
<15> <15> <15> Register 1
<15> <9> <0> Register 2
<0> <9> <15> Register 3
or these ...
..<11> <11> <0> Register 0
..<0> <0> <0> Register 1
..<15> <15> <15> Register 2
..<15> <8> <0> Register 3
or these ...
..<0> <5> <10> Register 0
..<15> <15> <15> Register 1
..<15> <10> <0> Register 2
..<10> <5> <5> Register 3
Gadget Names in the messge line. 19 chars max:
<Next File> Name for gadget 1
<Prev File> Name for gadget 2
<Scroll down> Name for gadget 3
<Scroll up> Name for gadget 4
*****
Everything from here onward is menu selections or commands. (See
Config!M, Config!P, Config!R, and Config!S also.)
Keep a backup copy of the original, if you change this file.
It's a good idea to include the following 2 commands first thing after the
config defaults above. That way, if a compile-error occurs during startup-
compile, you can fix the error easily using mouse-scrolling and f6.
Compile command at or following cursor
<normal-f6: if (not compile(curFile)) beepDisplay >
Place cursor or scroll if button held
<normal-buttonDown:
moveCursor(curFile,mouseLoc)
updateDisplay
mouseXY(n0,n1)
equateNum(n4,n1)
if (not mouseDown) return
while (not inputWaiting) {
trackMouse
mouseXY(n2,n3)
sub(n3,n3,n1)
div(n3,n3,5)
vscroll(n3)
updateDisplay
}
>
<startup:
menu("Files","",1,normal-f1)
menu("Next file f1","",1,normal-f1)
menu("Prev file f2","",1,normal-f2)
menu("Open G-O","",1,virtual-o)
menu("Incl file G-I","",1,virtual-i)
menu("Restore G-R","",1,virtual-r)
menu("Save G-F","",1,virtual-f)
menu("Save as... G-W","",1,virtual-w)
menu("Close G-C","",1,virtual-c)
menu("Exit G-X","",1,virtual-x)
menu("Quit G-Q","",1,virtual-q)
menu("AmigaDOS lAmi-y","",1,lAmiga-y)
menu("DOS + res. lAmi-z","",1,lAmiga-z)
menu("CD(Ch dir) lAmi-c","",1,lAmiga-c)
menu("About... ","",1,lAmiga-a)
menu("Buffers","",2,normal-f3)
menu("See buffers f3","",2,normal-f3)
menu("Edit buffer S-f3","",2,shft-f3)
menu("Free buffers A-f3","",2,alt-f3)
menu("Commands","",3,normal-f1)
menu("Configurations ","",3,normal-f6)
SUBmenu("Save data A-f6","",3,alt-f6)
SUBmenu("Load data C-f6","",3,ctl-f6)
menu("Compile ","",3,normal-f6)
SUBmenu("Compile f6","",3,normal-f6)
SUBmenu("Cfg defalts AC-f6","",3,altCtl-f6)
SUBmenu("Make command S-f6","",3,shft-f6)
menu("Learn ","",3,normal-f6)
checkedSUBmenu("Start learn C-s","",3,ctl-s,learnMode)
SUBmenu("End/Run learn C-r","",3,ctl-r)
SUBmenu("Command mult C-m","",3,ctl-m)
SUBmenu("Save learn C-5","",3,ctl-5)
SUBmenu("Load learn C-6","",3,ctl-6)
SUBmenu("Run learn # C-7","",3,ctl-7)
menu("Modes","",4,normal-f1)
menu("TEACH KEYS ","",4,normal-f1)
checkedSUBmenu("Teach keys C-help","",4,ctl-help,teachKeys)
SUBmenu("Teach one C-t","",4,ctl-t)
menu("Local modes ","",4,normal-f1)
checkedSUBmenu("OverStrike C-a","",4,ctl-a,overStrike)
checkedSUBmenu("WordWrap C-f5","",4,ctl-f5,wordWrap)
checkedSUBmenu("Right justify A-j","",4,alt-j,rightJustify)
checkedSUBmenu("AutoIndent A-f5","",4,alt-f5,autoIndent)
checkedSUBmenu("Read-only SA-f5","",4,shftAlt-f5,readOnly)
checkedSUBmenu("Changed flag L-f5","",4,lAmiga-f5,changed)
checkedSUBmenu("Use tabs AC-tab","",4,altCtl-tab,trueTabs)
checkedSUBmenu("AutoBackup f5","",4,normal-f5,autoBackup)
checkedSUBmenu("Map illegals SA-m","",4,shftAlt-m,mapChars)
checkedSUBmenu("Save on idle C-f2","",4,ctl-f2,userLocalA)
menu("Global modes ","",4,normal-f1)
checkedSUBmenu("Interlace S-esc","",4,shft-esc,lace)
checkedSUBmenu("Row/Column C-2","",4,ctl-2,rowCol)
checkedSUBmenu("Mark gadgets C-g","",4,ctl-g,markGadgets)
checkedSUBmenu("Invisibles C-v","",4,ctl-v,spooks)
checkedSUBmenu("Busies C-b","",4,ctl-b,busies)
checkedSUBmenu("Use keys A-u","",4,alt-u,useKeys)
checkedSUBmenu("Make icons AC-i","",4,altCtl-i,icons)
menu("Numbers","",5,normal-f1)
menu("Show vals S-help","",5,shft-help)
menu("Tab ruler ","",5,normal-f1)
SUBmenu("See ruler SA-tab","",5,shftAlt-tab)
SUBmenu("Set ruler SC-tab","",5,shftCtl-tab)
SUBmenu("Tab table GC-tab","",5,shftAltCtl-tab)
menu("Lt margin GC-L","",5,shftaltctl-l)
menu("Rt margin GC-R","",5,shftaltctl-r)
menu("End of line C-e","",5,ctl-e)
menu("Max files AC-f1","",5,altCtl-f1)
menu("Idle timer GC-i","",5,shftAltCtl-i)
menu("PM terminator ESC","",5,normal-esc)
menu("Name gadget C-esc","",5,ctl-esc)
menu("File size C-1","",5,ctl-1)
menu("Colors","",6,normal-f1)
menu("Colors A-help","",6,alt-help)
menu("Lace color A-esc","",6,alt-esc)
menu("Spelling","",7,normal-f1)
menu("Load speller R-1","",7,rAmiga-1)
menu("Check fwd R-2","",7,rAmiga-2)
menu("Chk&mark fwd R-3","",7,rAmiga-3)
menu("Chk & collect R-4","",7,rAmiga-4)
menu("Merge w/ dict R-5","",7,rAmiga-5)
menu("Del from dict R-6","",7,rAmiga-6)
menu("Free Speller R-8","",7,rAmiga-8)
nameBuffer(35,"Rexx Msg/Reply OUT")
nameBuffer(36,"Rexx Msg/Reply IN")
nameBuffer(37,"Copied Columnar")
nameBuffer(38,"S:Directories")
nameBuffer(42,"Help!")
nameBuffer(45,"Scratch Deletes")
nameBuffer(46,"Copied Invert")
nameBuffer(47,"Copied Hilite")
nameBuffer(48,"Replace String")
nameBuffer(49,"Search String")
>
*****
Here is a description of how buffers are used in this file. If you make
changes which involve buffers, you should follow the convention in this list:
(You can change this convention entirely, of course.)
buf55-99 = available for user commands
buf50-54 = used for temporary purposes in commands
buf49 = search string
buf48 = replace string
buf47 = copied hilite
buf46 = copied invert
buf45 = holds scratch deletes for Undo, keypad-0
buf44 = make-command buffer
buf43 = document names
buf42 = holds Help, if loaded
buf41 = used in buffer swapping command, ctl-w
buf40 = used for AmigaDOS commands
buf39 = used for result of AmigaDOS commands (if result selected)
buf38 = directory names
buf37 = copied columnar data
buf36 = ARexx msg/reply input buffer
buf35 = ARexx msg/reply output buffer
---------------------------------------------------------------------------
<defines:
define(N_0 ,n0)
define(N_1 ,n1)
define(N_2 ,n2)
define(N_3 ,n3)
define(N_4 ,n4)
define(N_5 ,n5)
define(N_6 ,n6)
define(N_7 ,n7)
define(N_8 ,n8)
define(N_9 ,n9)
define(N_10 ,n10)
define(N_11 ,n11)
define(N_12 ,n12)
define(N_13 ,n13)
define(N_14 ,n14)
define(N_15 ,n15)
define(N_16 ,n16)
define(N_17 ,n17)
define(N_18 ,n18)
define(n_19 ,n19)
define(B_0 ,buf50)
define(B_1 ,buf51)
define(B_2 ,buf52)
define(B_3 ,buf53)
define(B_4 ,buf54)
define(COLUMNAR_BUF ,buf37)
define(DIR_NAMES ,buf38)
define(SWAP_BUF ,buf41)
define(FILE_NAME ,buf43)
define(UNDO_BUF ,buf45)
define(INVERT_BUF ,buf46)
define(HILITE_BUF ,buf47)
define(REPLACE_TXT ,buf48)
define(SEARCH_STR ,buf49)
define(BUF_99 ,buf99)
define(BSTACK_99 ,buf99) .. note buf99 isn't really used
define(NSTACK_99 ,n99) .. note n99 isn't really used
define(Eat_MouseUp_Input ,624)
>
Show current values of line-length, lines/page, tab-table #, colors, etc
<shft-help:
putMsg("")
equateLoc(curfile,locA,atCursor)
moveCursor(curfile,sFile)
moveCursor(curfile,eLine)
copyChar(curfile,N_2)
moveCursor(curfile,locA)
..updateDisplay
equateNum(N_1,curFile)
text(" ",0,0,0,-2)
text("Serial number: Search wildcard :",2,0,0,0)
text("Buffer : \"\" multiWild :",3,0,0,0)
text("Size : \"\" allBut :",4,0,0,0)
text("Line length : \"\" eitherOr :",5,0,0,0)
text("Lines/page : \"\" singleWhite :",6,0,0,0)
text("Tab table : \"\" multiWhite :",7,0,0,0)
text("Left margin : Idle timer :",8,0,0,0)
text("Top margin : PM terminator :",9,0,0,0)
text("Bottom margin: Max files :",10,0,0,0)
text("End-of-line : Printer select :",11,0,0,0)
text("Color bits : capsLock :",12,0,0,0)
text("Split size :",13,0,0,0)
text("Values for this buffer",1,0,0,0)
getSerialNum(N_4)
text(N_4,2,16,8,0)
text(N_1,3,16,8,0) ..buffer number
getLocal(curFile,N_4,lineLength)
text(N_4,5,16,8,0)
getLocal(curFile,N_4,pageLines)
text(N_4,6,16,8,0)
getLocal(curFile,N_4,tabTable)
text(N_4,7,16,8,0)
getLocal(curFile,N_4,leftMargin)
text(N_4,8,16,8,0)
getLocal(curFile,N_4,topMargin)
text(N_4,9,16,8,0)
getLocal(curFile,N_4,bottomMargin)
text(N_4,10,16,8,0)
text(N_2,11,16,8,0) .. eol, copied it above
freeBuf(B_3)
getLocal(curFile,N_10,color)
toWord(B_3,N_10)
movecursor(B_3,sfile)
hexDecimal(B_3)
text(B_3,12,16,8,0)
text(splitSize,13,16,8,0)
freeBuf(B_3)
insertChar(B_3,wildCard)
text(B_3,2,56,8,0)
freeBuf(B_3)
insertChar(B_3,multiWild)
text(B_3,3,56,8,0)
freeBuf(B_3)
insertChar(B_3,allBut)
text(B_3,4,56,8,0)
freeBuf(B_3)
insertChar(B_3,eitherOr)
text(B_3,5,56,8,0)
text(singleWhite,6,56,8,0)
text(multiWhite,7,56,8,0)
text(idleTime,8,56,8,0)
text(pmESC,9,56,8,0)
getMaxFiles(N_4)
text(N_4,10,56,8,0)
text(prefPrint,11,56,8,0)
if (!eqNum(capsLock,0)) text("YES",12,56,3,0)
else text("no",12,56,8,0)
putMsg("Any key to continue")
fileSize(curFile,N_4)
text(N_4,4,16,8,0)
getKey(N_4)
putMsg("")
refreshDisplay>
Set colors
<alt-help:
inputKey(N_5)
while (nothing) {
gosub label(0)
putMsg("# of color (0-15) to change (ESC=quit):")
if (!inputNum(N_5)) {
refreshDisplay
putMsg("")
return
}
if (geNum(N_5,0) & geNum(15,N_5)) {
putMsg("Fg color value (0-3)?")
inputNum(N_7)
if (geNum(N_7,0) & geNum(3,N_7)) {
putMsg("Bg color value (0-3)?")
inputNum(N_6)
if (geNum(N_6,0) & geNum(3,N_6)) {
if (eqNum(N_6,N_7)) {
putMsg("Fg == Bg is NOT ALLOWED")
delay(10)
} else {
setColors(curFile,N_5,N_7,N_6)
setColors(" ",N_5,N_7,N_6) .. so new buf's inherit these
}
if (eqNum(N_5,8)) {
toggle(toTiny)
toggle(toTiny)
}
if (eqNum(N_5,10)) runKey(startup)
updateDisplay
}
}
}
}
label(0) ..subroutine to demonstrate current color settings
equateNum(N_3,1)
equateNum(N_5,0)
do (N_4,2,21) {
text("",N_4,18,N_3,41)
if (gtNum(N_4,3) & gtNum(21,N_4) & !eqNum(N_4,12)) {
if (gtNum(N_5,9)) text(N_5,N_4,19,N_3,0)
else text(N_5,N_4,20,N_3,0)
text("< > < >",N_4,49,N_3,0)
incNum(N_5)
}
}
equateNum(N_0,0)
do (N_4,4,20) {
if (!eqNum(N_4,12)) {
getColors(curFile,N_0,N_1,N_2)
text(N_1,N_4,50,N_3,0)
text(N_2,N_4,55,N_3,0)
incNum(N_0)
}
}
text("# ((( For Files ))) Fg Bg",3,20,N_3,0)
text("normal text", 4,23,0,0)
text("cursor", 5,23,1,0)
text("hilite", 6,23,2,0)
text("cursor + hilite", 7,23,3,0)
text("invert", 8,23,4,0)
text("invert+cursor", 9,23,5,0)
text("hilite+invert", 10,23,6,0)
text("cursor+hilite+invert", 11,23,7,0)
text(" ((( For Screen )))",12,20,N_3,0)
text("title bar", 13,23,8,0)
text("msg line", 14,23,9,0)
text("menus", 15,23,10,0)
text("tab ruler", 16,23,11,0)
text("requester", 17,23,12,0)
text("formfeed", 18,23,13,0)
text("spare1", 19,23,14,0)
text("spare2", 20,23,15,0)
>
Start this Key-Help mode - press Amiga-ESC to leave this Key-Help mode
<ctl-help: flipFlag(curFile,teachKeys) >
Refresh window (or screen in interlace), including title bar
<ctl-w: refreshDisplay >
Save all changed files automatically, then quit
<normal-closebox: getMaxFiles(n52)
decNum(n52)
do (n54,0,n52) if (getFlag(buf[n54],changed))
if (not saveFile(buf[n54])) returnFalse
quit(0) >
Switch to next document
<normal-gadget1: toggle(curFile) >
Switch to previous document
<normal-gadget2: runKey(normal-f2) >
Scroll display down
<normal-gadget3: while (mouseDown) { vScroll(downLine) updateDisplay } >
Scroll display up
<normal-gadget4: while (mouseDown) { vScroll(upLine) updateDisplay } >
Switch to next file
<normal-f1: toggle(curFile) >
Switch to previous file
<normal-f2: getMaxFiles(n53)
if (geNum(1,n53)) { editBuf(buf0) returnFalse }
decNum(n53)
equateNum(n54,curFile)
while (nothing) {
if (gtNum(n54,n53)) equateNum(n54,n53)
decNum(n54)
if (gtNum(0,n54)) equateNum(n54,n53)
if (getFileName(buf54,buf[n54])) {
editBuf(buf[n54])
returnTrue
}
} >
Load a file
<alt-f1: putMsg("Input new filename:")
freeBuf(buf43)
if (inputString(buf43)) loadFile(buf43) >
Insert file at cursor
<virtual-i: putMsg("Input filename to insert:")
freeBuf(buf43)
if (inputString(buf43)) insertFile(curFile,atCursor,buf43) >
Restore current file to original
<virtual-r: if (not askYesNo("Restore file to original?"))
returnFalse
if (getFileName(buf43,curFile))
{ freeBuf(curFile) loadFile(buf43) } >
Save file under different name
<virtual-w: putMsg("Save file as:")
freeBuf(buf43)
if (inputString(buf43)) if (setFileName(curFile,buf43))
saveFile(curFile) >
Save all changed files
<virtual-f: getMaxFiles(n53)
decNum(n53)
do(n54,0,n53)
if (getFlag(buf[n54],changed)) saveFile(buf[n54]) >
Turn on/off saving changes during idle periods
<ctl-f2: flipFlag(curFile,userLocalA)>
Close current file. If changed, ask "Save changes?"
<virtual-c: if (not isEmpty(curFile)) if (getFlag(curFile,changed))
if (askYesNo("Save changes before closing?"))
if (not saveFile(curFile)) returnFalse
freeBuf(curFile) >
Free all non-file buffers. Erases search string, directory name, etc
<alt-f3: getMaxFiles(n52)
do(n54,n52,54) freeBuf(buf[n54]) >
Save all changed files automatically, then quit
<virtual-x: getMaxFiles(n52)
decNum(n52)
do (n54,0,n52) if (getFlag(buf[n54],changed))
if (not saveFile(buf[n54])) returnFalse
quit(0) >
Ask "Save changes?", if any changes, then ask "Really quit?"
<virtual-q:
equateNum(n53,0)
getMaxFiles(n52)
decNum(n52)
do(n54,0,n52) if (getFlag(buf[n54],changed)) equateNum(n53,1)
if (eqNum(n53,1))
if (not askYesNo("Buffer(s) have been modified. Really quit?")) returnFalse
quit(0)
>
Toggle overstrike typing mode
<ctl-a: flipFlag(curFile,overstrike) >
Toggle autoindent typing mode
<alt-f5: flipFlag(curFile,autoIndent) >
Toggle wordwrap typing mode
<ctl-f5: flipFlag(curFile,wordWrap) >
Toggle "changed" status of current buffer
<lAmiga-f5: flipFlag(curFile,changed) >
Convert file to read-only status
<shftAlt-f5: flipFlag(curFile,readOnly) >
Toggle speak-messages status
<shftCtl-f5: flipFlag(curFile,speakMsgs) >
Toggle speak-alerts status
<altCtl-f5: flipFlag(curFile,speakAlerts) >
Toggle auto-backup mode
<normal-f5: flipFlag(curFile,autoBackup) >
WARNING: You can't compile this one with F6, but in startup you can
put cursor before it and ESC will compile from there forward.
Compile command at or following cursor
<normal-f6: if (not compile(curFile)) beepDisplay >
Select buffer 44 to use for scratch editing or writing commands
<shft-f6: editBuf(buf44)
putMsg("Type in command, <anykey: etc>, and press F6 to compile:") >
Find out if keys have got commands attached
<lAmiga-f6: while (getKey(n54)) {
if (inUse(n54)) putMsg("In use - Amiga-esc to abort")
else putMsg("Available - Amiga-esc to abort")
}>
Save UE config to disk. Default is Data! or last name you gave
<alt-f6:
if (askYesNo("Save data?")) {
putMsg("Input data filename or ESC:")
freeBuf(buf54)
inputString(buf54)
saveConfig(buf54)
} >
Restore UE config from disk. Default is Data! or last name you gave
<ctl-f6:
if (askYesNo("Load data?")) {
putMsg("Input data filename or ESC:")
freeBuf(buf54)
inputString(buf54)
loadConfig(buf54)
} >
Compile configuration default values at the top of Config! file
<altCtl-f6: moveCursor(curFile,sFile)
if (not compileDefaults(curFile)) beepDisplay>
Input the number of a buffer to edit
<shft-f3: putMsg("Input number of buffer to edit:")
if (inputNum(n54)) { editBuf(buf[n54]) vScroll(sFile) } >
Examine all buffers that aren't empty
<normal-f3: getMaxFiles(n52)
do (n54,n52,99) if (not isEmpty(buf[n54])) {
editBuf(buf[n54])
vScroll(sFile)
updateDisplay
putMsg("F1=continue, F2=edit this one, F3=stop:")
getKey(n53)
if (eqNum(n53,normal-f2)) { putMsg(" ") return }
if (eqNum(n53,normal-f3)) goto label(1)
}
label(1)
toggle(curFile)
putMsg(" ") >