home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Black Box 4
/
BlackBox.cdr
/
editors
/
hsevlsfx.exe
/
EDINTRO.HYP
< prev
next >
Wrap
Text File
|
1992-02-15
|
44KB
|
1,457 lines
.INDEX
.HEADER
~hi~M ~TwF~TKile ~PMFile~Kf~E ~M ~TwG~TKoto ~PMGoto~Kg~E ~M ~TwS~TKearch ~PMSearch~Ks~E ~M ~TwO~TKther ~PMOther~Ko~E ~M ~TwA~TKdd ~PMAdd~Ka~E ~M ~TwE~TKdit ~PMEdit~Ke~E ~M ~TwM~TKaint ~PMMaintenance~Km~E ~M ~TwH~TKelp ~PMHelp~Kh~E Hyper Notebook
~hi╔══╧═════╧═══════╧════════╧══════╧══════╧══════╧═══════╧════════════════════╗
~ji~M ~TwF~TKile ~PMFile~Kf~E ~M ~TwG~TKoto ~PMGoto~Kg~E ~M ~TwS~TKearch ~PMSearch~Ks~E ~M ~TwO~TKther ~PMOther~Ko~E ~M ~TwH~TKelp ~PMHelp~Kh~E HyperShell Notebook (VIEW only)
~ji╔══╧══════╧══════╧════════╧═══════╧═════════════════════════════════════════╗
╚╡~DU ~Tw $1 - $2 ~h/~C72~DV<*>~DU~Z~C76~DT╞╝
.REMARK
Menubar style hyperfile template
Copyright (c) 1990 N.G.Taylor
.
.CHECK +fa
Check both menu types
.
.MENU File
Notebook |NNotebook
Type file |T?File name
───────────|
Command |D?Command line
DOS shell |d
───────────|
?iSave to TMP|#S
?iExit (save)|#X
Quit |Q
.
.MENU Search
Title search |A@S?Search string
Search Text F6|A@X?Search string
Pick and search |SPicksrch
────────────────|
Add to search |O*64;MSearch
Refine search |O*63;MSearch
────────────────|
Matched flag ± |ZL/
────────────────|
Next matching |F+1
List matching l|A@C1
Unmatched list |A@C2
?i────────────────|
?iGlobal items |#V@Y?Search string
?iItems (Local) |#V@y?Search string
.
.MENU Goto
Contents list F2|A@C
From current |A@C3$1
Starting with |A@C0?Starting with
───────────────── |
Next frame n|F+
Matching frame m|F+1
Previous frame p|F-
Home frame |b1
───────────────── |
Backtrack one b|B
Unwind backtrack F4|b@B
Revisit frame |A@b
───────────────── |
View noted ref F5|A@R
.
.MENU Other
?iLocal notes |n@p1 Notes
?iGlobal notes|N@P1 Notes
Calculator |SCalculator
?iPrint frame |SPrint Frame
?iSet colours |Scolours
Error text |Sperror
Action F8|A?What action
.
.MENU Help
Selecting |NSelecting
Key mappings |NKey mappings
Funct. keys |NFkeys
Menu bar |NMenu bar
Information i|NInfo
Colour key |NKey
Paged lists |MPaged Help
Editing mode |MEditing
.
.MENU Paged Help
Control Keys |NPaged control keys
Paged lists |NPaged lists
Selecting |NSelecting
.
.CHECK -fax
.
.MENU Scheme
Action ref |A
Menu Choice |C
Title |D
Frame ref |F
Menu heading|H
Note heading|J
Note text |K
Menu ref |M
Note ref |N
Menu seln |O
Pop message |P
Invisible |Q
Request |R
Script ref |S
Frame text |T
.
.MENU Error text
1 - Operation cancelled
2 - No selection from menu
3 - End of file
4 - Cant open file
5 - File not open
6 - File open
7 - File changed
8 - At start of backtrack
9 - Divide by 0
10 - Value not expected
11 - Value expected
12 - Undefined opcode
13 - Unmatched parenthesis
14 - Syntax error
15 - Script not available
16 - Menu not available
17 - Note not available
18 - Frame not available
19 - Key not defined
20 - Invalid key code
21 - Local ref can't be noted
22 - Not at reference
23 - Key not mapped
24 - No action or disabled
25 - Invalid action code
26 - No command
27 - Env var not present
28 - Invalid dynamic menu
29 - Line too wide for screen
30 - String too long
31 - Too many lines in frame
32 - Max script reached
33 - Maximum menu size reached
.
.NOTE Notebook
The Notebook Hyperfile is
an electronic notebook
which you can use for your
own data.
.
.NOTE Paged lists
Type contents of file
Search titles or texts
Detailed directory list
Contents list
Backtrack list
Noted references list
~hi Global/Local item lists
~hi Check scans
.
.NOTE Paged control keys
F1 or ? - This help
F2 or # - Page number (*T)
F3 or PgUp - Previous page
F4 or Home - Start of list/file
F5 - Find next (*T)
F6 or / - Search file (*T)
F8 or End - End of file (*T)
F9 - Quit (*T Suspend list)
F10 - Quit (*T Quit list)
Return - Select (*T Suspend)
(*T - Type file control keys)
.
.NOTE Info
- $9 -
Frame: $1
Title: $2
File : $3
Date : $4
Time : $5
~ABacktrack ~O2 ~PO2A;NInfo~E with $6 entries
~AAutoref ~O4 ~PO4A;NInfo~E
Error status $? ~C32~AClear~PYah;NInfo~E
.
.NOTE Menu bar
The menus on the menu bar can be selected using their initial
letters. With a menu on display, the options can be selected with
the initial letter of the option. The available facilities are
shown below (the names of the options differ in the menus).
~TwF~TKile ~TwG~TKoto ~TwS~TKearch ~TwO~TKther ~TwA~TKdd ~TwE~TKdit ~TwM~TKaint ~TwH~TKelp
DOS Contents Titles Local Frame Current View Selecting
Type Backtrack Text Global Global Frame Rename Keys
Exit Next List notes Local Global Check Menubar
Quit Previous Next Calc File Local Delete Information
Command Revisit Pick Error File Undelete Colour key
Local Action Header Move Editing
Global Colours Footer Print
.
.NOTE Key mappings
The following key mappings
are always provided:-
q Quit HyperShell
n Next frame
p Previous frame
b Backtrack one step
m Next matching frame
.
.NOTE Key
A ~Mmenu~PNKey~E gives a menu.
A ~Nnote~PNKey~E displays a note.
A ~Freference~PNKey~E allows a
new frame to be selected.
An ~Aaction~PNKey~E does some
other action.
An ~Iinput field~PNKey~E permits some
value to be entered.
.
.NOTE Notepad
The notepad allows you to store a
reference that you may want to use
later. The INS key adds the reference
pointed at to the notepad, or the
current frame if not pointing at any.
The DEL key deletes a reference.
The NOTEPAD option on the main menu
allows you to select from the notepad
and delete unwanted references.
.
.NOTE Selecting
Use the cursor keys or the TAB and
SHIFT/TAB keys to move to a reference
Press RETURN to select the reference.
Press ESCAPE for the control menu, or
to cancel a menu, note or list.
When using a mouse, move mouse to
position cursor to select a reference,
Press LEFT mouse button to select.
Press RIGHT mouse button for the
control menu or to cancel a menu,
note, or list.
See Also:- ~NFunction keys~PNFkeys~E
.
.NOTE Colour
Select $\ground colour
~F~BW~TKBlack~PK~E~BK ~F~TBBlue~PB~E ~F~TGGreen~PG~E ~F~TCCyan~PC~E
~F~TRRed~PR~E ~F~TMMagenta~PM~E ~F~TYBrown~PY~E ~F~TWWhite~PW~E
~F~BW~TkGrey~Pk~E~BK ~F~TbBlue~Pb~E ~F~TgGreen~Pg~E ~F~TcCyan~Pc~E
~F~TrRed~Pr~E ~F~TmMagenta~Pm~E ~F~TyYellow~Py~E ~F~TwWhite~Pw~E
Choose bright for blink
on backgrounds
.
.NOTE Fkeys
F1 Help F2 Full Contents
F3 Backtrack F4 Select back
F5 Notepad F6 Search text
F7 Type file F8 Do action
F9 DOS Shell F10 Quit Program
See also: ~NKey mappings~E
.
.CHECK +fa
.
.SCRIPT Colours
-- Configure colours
Y?Press escape to abort at any time. (Return to continue)
pChoose Item to change colour of
V[@MScheme
V{@NColour(Fore)
V]@NColour(Back)
O$[${$]
-- Now add to set colours script
#BG999$,sO$[${$]$,X
#ESSET COLOURS
y
.
.SCRIPT Calculator
Ve?Enter expression (x = last result $x)
Vx=$e
pExpr $e = $x
.
.CHECK +fax
.
.SCRIPT perror
p@MError text($?)|Error %s
.
.SCRIPT Picksrch
pPick a word with the mouse
P;Ve&P;abq
A@X$e
.
.SCRIPT SETUP
O#
O16
O*11
KF1MHelp
KM1HELP
KH4SMENBAR
KH3Paged Help
K#nF+
K#pF-
K#bB
K#qQ
K#iNinfo
K#lA@C1
Vsfirst
VZ$d?
VrY?Press escape to abort at any time. (Return to continue)
ZVnext=~L23~C5~APress space to continue~PF+~K ~E
+SET COLOURS
.
.SCRIPT SET COLOURS
OUwK
OVrk
OKKW
.
.SCRIPT MENBAR
ZX1;ZY1
.
.REMARK
Editing items
.
.MENU Edit
Current frame|#EF$1
Frame |SEDIT(C)
Global Item |SEDIT(I)
Local Item |SEDIT(i)
Text file |SEDIT(l*.*)
Header |#EU
Edit Footer |#EV
.
.MENU Add
Frame |SADD(C)
Global Item |SADD(I)
Local Item |SADD(i)
Text file |SADD(l*.*)
.
.MENU Maintenance
View item |SMAINT(V)
Rename item |SRENAME
Title change |STITLE CHANGE
Delete item |SMAINT(D)
Whats deleted|#V@Z
Undelete item|SUNDEL
Move item |SMOVE
Print item |SMAINT(P)
Check item |SMAINT(C)
Full Check |A@MCHECK
.
.MENU APPEND
Global item |i@I
Local item |i@i
Frame |i@C
Referenced item |i@R
Text file |f@d*.*
Note file |f@d*.NTE
Menu file |f@d*.MNU
Script file |f@d*.HSF
BLOAD screen |t@d*.PIC
BLOAD with attrs|w@d*.PIC
.
.MENU CHECK
Frames |#V@U
Global Items |#V@V
Local Items |#V@v
.
.MENU CONVERSION
Convert line to uppercase |cu
Convert line to lowercase |cl
Strip spaces in line |cs
Convert word to uppercase |bLBeLBpcu;BdEDb
Convert word to lowercase |bLBeLBpcl;BdEDb
.
.MENU H_EDHELP
?vKeys |hNVIEW KEYS
\vKeys |hNEDIT KEYS
\vControl Keys |hNEDIT CTLKEYS
\vFunction Keys|hNEDIT FUNKEYS
\vEditing |h@MEditing
\vPrimitives |hNEDIT CODES
\vGraphics Map |s@NGRAPHIC CHARS
.
.MENU INSERT REF
Global item ref |s~;s@I;s~E
Local item ref |s~;s@i;s~E
Frame reference |s~;s@C;s~E
Referenced item |s~;s@R;s~E
Input field |s~I;s?text;s~W;s?width;s~P;s?pattern;s~E
.
.MENU EDIT TYPE
Frame |C
Global Item |I
Local Item |i
Search Items|Y?search for
Text file |l*.*
.
.MENU GLOBAL ITEM
Note |N
Menu |M
Script |S
Remark |R
Print |P
Check |C
Text file |T
Header |U
Footer |V
.
.MENU LOCAL ITEM
Note |n
Menu |m
Script |s
Remark |r
Print |p
Check |c
.
.MENU H_EDMENU
?vHelp |hNVIEW KEYS
\vHelp |x@MH_EDHELP
\vAppend item |x@MAPPEND
\vInsert ref |x@MINSERT REF
\vConversions |x@MCONVERSION
\vMark line |.
\vCut from mark |-
\vPaste lines |+
\vInsert string |s?String
\vDo function |x?Function
Toggle Verbatim |H
Quit |Q
\vExit |X
.
.SCRIPT ADD
-- Parameter shows type of item to add
v\;aeq
VÇ$\
vÇC;jeFRAME
-- Items of various descriptions
pSelect item type
vÇI;jcGLOBS
LLOCS
Vü@MLOCAL ITEM
JNAME
-- Global items
LGLOBS
Vü@MGLOBAL ITEM
-- If Header or footer just bare add
ZI"üU"e!"üV"e;JCONTROL
LNAME
Vé?Item name
Vâ&N1$Ç;vâl;jeTEXT
#BAfter which item
Vä@$Ç
JCOMMON
-- And now for frames
LFRAME
Vé?Frame name
Và?Frame Title
VüF
#BAfter which frame
Vä@C
-- Common processing
LCOMMON
#A$ü$é~$ä
vÇC;anq
-- Add title
#TF$é~$à
q
-- Text file
LTEXT
Vâ&N1$é;vâT;anVéT$é
#A$é
q
-- Control item
LCONTROL
#A$ü
.
.SCRIPT EDIT
-- Stash parameter
VÇ$\
-- Set function and name
VäE
VàEdit
+DOFUN
.
.SCRIPT MAINT
-- Stash parameter
Vä$\
-- Get function name
Và@MVED[$ä]
p$à what type
VÇ@MEDIT TYPE
abq
+DOFUN
.
.SCRIPT DOFUN
-- Item selection
#BSelect item to $à
Vé@$Ç
abq
-- See if print
väP;jnDOTHEFUN
O51
Y?Ready Printer (ESC to cancel)
LDOTHEFUN
#$ä$é
q
.
.MENU VED
V|View
E|Edit
D|Delete
C|Check
P|Print
.
.SCRIPT MOVE
VÇ@MEDIT TYPE
#BSelect item to move
Vå@$Ç
#BMove to after which item
Vä@$Ç
#M$å~$ä
#BPress any key to continue
Y@$Ç
.
.SCRIPT RENAME
VÇ@MEDIT TYPE
abq
#BSelect item to rename
Vå@$Ç
abq
Vç&S2$å
Vä?Rename '$ç' as what/$ç
abq
#R$å~$ä
-- ???? Need to handle TITLE for frames as well
Y@$Ç
.
.SCRIPT TITLE CHANGE
-- Title change
#BSelect frame to change title of
Vé@C
abq
-- Get old title
Vä&S2$é
Vä&T$ä
-- Get new one
Vä?New title/$ä
#T$é~$ä
q
.
.SCRIPT UNDEL
Vé@Z
abq
pWhat list to undelete to
VÇ@MEDIT TYPE
abq
vÇC;jeFRAME
-- Items
#BInsert after which item
Vä@$Ç
JCOMMON
-- Frame
LFRAME
#BInsert after which frame
Vä@C
-- Common
LCOMMON
#U$é~$ä
.
.SCRIPT Print Frame
L?Ready Printer ! (ESC to cancel)
O51;#PF$1
.
.SCRIPT H_SETUP
q
.
.NOTE EDIT KEYS
Enter - Insert new line / break current line
Backspace - Delete previous character
Escape or Right Mouse - Edit menu
LEFT Mouse - Position cursor / use scrollbar
Cursor Up,Down,Left,Right - Prev line, Next line, Prev char, Next char
Home, End - Beginning of line, End of line
Ctrl Home, Ctrl End - Go to start of word, end of word
Page Up, Page Down - Previous page, Next page
Ctrl PgUp, Ctrl PgDn - Go to start, end of buffer
Insert - Toggle Insert mode
Delete - Delete next character
Ctrl Left, Ctrl Right - Delete to start, end of line
.
.NOTE EDIT CTLKEYS
^A,^B - open new line After current, Before current
^E - Enter EDIT command
^F - reformat paragraph
^J - Join current line to next line
^K - Kill (delete) current line
^L,^R - Set temporary Left margin, Right margin
^N - Write edit buffer to file EDITBUFF.SAV
^O - Toggle margins (clear temporary margins)
^Q - Quote verbatim character (next char typed)
^T,^G - Toggle cursor Tracking, Flag interpretation
^U - Undelete line
^V - Verify (check) buffer
^W - Wipe reference flags
^X,^D - Mark start for inline cut, delete inline
^Y - paste in line
^Z - duplicate character from mouse position
.
.NOTE EDIT FUNKEYS
UNSHIFTED SHIFT (flag as) CONTROL (insert) ALTERNATE
F1 - Help menu Frame step F1 Frame reference Frame autoref
F2 - Refresh Frame ref F2 Global item ref Global note autoref
F3 - Macro (check) Global note F3 Local item ref Local note autoref
F4 - Swap with mark Local note F4 Append Frame Search/replace
F5 - Mark for cut Global menu F5 App Global item Search again
F6 - Cut from mark Local menu F6 App Local item Search for string
F7 - Paste lines Global Script F7 App File text Copy to kill buffer
F8 - Symbol shift Local Script F8 App Screen file Paste kill buffer
F9 - QUIT edit Action F9 App Screen (att) DOS Exit
F10 - Save & exit Input field F10 App EDITBUFF.SAV Write PASTE buffer
.
.NOTE GRAPHIC CHARS
GRAPHICS CHARACTERS SHOWING MAPPINGS AVAILABLE IN SYMBOL SHIFT
`abcdefghijklmnopqrstuvwxyz+,./{}| 3 4 5 6 7 8 9 = ; : @ < >
αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·½¼«»√²ⁿ │ ┤ ╡ ╢ ╖ ╕ ╣ ╜ ╗ ║ └ ╝ ╛
A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
┴ ┬ ├ ─ ┼ ╞ ╟ ╚ ╔ ╩ ╦ ╠ ═ ╬ ╧ ╨ ╤ ╥ ╙ ╘ ╒ ╓ ╫ ╪ ┘ ┌
┌─┬─┐ ZDBD? ╔═╦═╗ IMKM; ░ 0 U â ä à å Ä Å á
├─┼─┤ CDED4 ╠═╬═╣ LMNM9 ▒ 1 N Ç ç
│ │ │ 3 3 3 ║ ║ ║ : : : ▓ 2 - é ê ë è É
└─┴─┘ @DADY ╚═╩═╝ HMJM< █ [ M ï î ì í
A ¢ £ ¥ ₧ ƒ ⌐ ¬ ¡
╒═╤═╕ UMQM8 ╓─╥─╖ VDRD7 ▌ ] P ô ö ò Ö ó
│ │ │ 3 3 3 ║ ║ ║ : : : ▐ ^ P ü û ù Ü ú
╞═╪═╡ FMXM5 ╟─╫─╢ GDWD6 ▀ _ E æ Æ
╘═╧═╛ TMOM> ╙─╨─╜ SDPD= ▄ \ D ÿ ñ Ñ ª º ¿
You may select any character directly, by use of the HOME key
.
.NOTE EDIT CODES
</> Previous char/Next char R Refresh screen
B/b Beginning of line/word E/e End of line/word
N/n Next page/line P/p Prev page/line
. Mark start line - Cut from start line
+ Paste cut lines D/d Delete current/prev char
Z/z Delete to start/end of line K Delete current line
U Undelete line J Join lines
L Insert newline char O/o open line before/after
=c actual character 'c' V Verbatim character
T Insert TAB character cxxx convert line using xxx
xsspec Execute function string ssspec Insert string
A/a Autoref global/local F Autoref from frame list
W wipe current reference flags hnspec Popup note
ffspec Append file iispec Append item
tfspec Append text screen wfspec Append screen with attributes
C Toggle cursor tracking H Toggle flag interp
I Toggle Insert/Overwrite S Toggle symbol shift
M Toggle margins l/r Set temp left/right margin
X Exit edit with save Q Quit edit
.
.NOTE VIEW KEYS
VIEW MODE KEYS
F1 HELP
F2 REFRESH SCREEN
F9 or F0 QUIT ITEM EDIT
.
.MENU Editing
Edit mode |NEdit Mode
View mode |NView Mode
Text display |NText Display
Moving around |NMoving around
Inserting text|NInserting text
Deleting text |NDeleting text
Set margins |NMargins
Formatting |NFormatting
Referencing |NReferencing
Copy / Import |NCopying and Importing
Global search |NSearching and replacing
Key functions |NKey functions
.
.NOTE View Mode
VIEW mode is a variation of ~Nedit mode~E, which
works in the same way, only does not permit
the item to be saved, except to a disk file.
View mode is indicated on the bottom line,
and by the bottom line being a different
colour to when in edit mode.
If you press Function key 9 in View mode,
you will exit to the frame display directly.
If you accidentally press Function key 10,
the edit buffer will be saved to the buffer
save file called EDITBUFF.SAV, and you will
remain in view mode.
.
.NOTE Edit mode
The edit mode provides a full screen editor,
which permits the insertion, deletion and
reformatting of text.
[k] ~NEDIT KEYS~Kk~E [c] ~NEDIT CTLKEYS~Kc~E [f] ~NEDIT FUNKEYS~Kf~E
The edits you make in edit mode do not have any
effect until they are saved. You can optionally
QUIT out of edit mode if you do not wish to
save the edited item.
See also: ~NVIEW mode~E
.
.NOTE Text display
The text is displayed in the top 22 lines of the
screen, flush with the left edge of the screen.
For display items, highlighting and formatting will
be performed. For other items, the text will be
shown in its raw form. All items can be toggled to
the other state at any time using Function key 4.
The display can be redrawn using the F2 key.
The bottom line of the display shows the type and
name of the item being edited, the current page and
line number and the number of pages. It also shows
the modes and any warnings about the current item.
.
.NOTE Moving around
The cursor keys are used to move around the text,
and permit character, word, line and page movement
in both directions. If a mouse is attached to the
system, the mouse cursor can be used to position
the text cursor, using the left mouse button.
If the text is over a page full, a scrollbar is
shown indicating the current position in the item.
The up and down arrows at top and bottom of the
scrollbar can be used to move up and down a screen
at a time, like the PgUp and PgDn keys.
.
.NOTE Inserting text
Text is inserted at the current cursor position by typing
characters. An OVERWRITE mode may be toggled-in to allow
existing text to be overwritten. The current insertion mode
is indicated by the cursor shape, as in the string edit
mode of the reader, a block signifying insert mode and an
underscore signifying overwrite mode.
The RETURN (or NEWLINE) key is used to start a new line or
to split a line if the cursor is positioned within it.
The TAB key inserts a tab character in the current position,
and uses this to tab to the next tab position.
Special symbols, with codes above decimal 175, are entered
by use of a special `symbol shift' which is toggled using
Function Key 8. When the symbol shift is in effect, all
characters entered have decimal 128 added to their codes
before being inserted, also all characters between 128 and
175 have 128 subtracted from their codes.
.
.NOTE Margins
Text auto-wraps at column 80, unless a right margin has been
specified, in which case it wraps at the specified column.
Both global margin settings and temporary margins can be used.
To toggle the global margins on or off, press the Ctrl-O key.
Temporary left and right margins are brought into effect using
the Ctrl-L and Ctrl-R keys respectively. To set a left margin,
start a fresh line, enter spaces etc in the left margin, then
press Ctrl-L. The spaces etc will then be entered whenever a
new line is started. To set a right margin, simply press
Ctrl-R when the text cursor is at the position where the
right margin should be.
.
.NOTE Formatting
To format existing paragraphs to the current ~Nmargins~E, position the
text cursor immediately before, or inside, the paragraph and
press Ctrl-F. This should stop at the end of the paragraph, but
may not if the line after the paragraph contains formatting
flags or inconsistent spaces and tabs.
The reformatting allows for references contained in the text, but
cannot allow for special formatting or hidden text flags, so it
should be used with care.
It is a good idea to save your edits before undertaking any
formatting in case it goes wrong.
.
.NOTE Deleting text
Text is deleted in a number of ways. Single characters and line
breaks can be deleted either side of the cursor using the DELETE
(or BACKSPACE) key and the cursor pad DEL key.
The current line can be deleted using the Ctrl-K key. The deleted
line can be re-inserted, at the same or a different location,
using the Ctrl-U key.
Ranges of lines can be deleted by selecting one end with Function
key 5, then positioning at the other end of the inclusive range
and pressing Function key 6. The deleted lines can be inserted
elsewhere using Function key 7.
As a range of deleted lines are retained until another item is
edited, text can be moved between items, using the paste buffer.
.
.NOTE Copying and importing
Text can be copied from another item into the end of
the current item, and you can move the required text
where you want it. The Ctrl shifted Function keys
provide a range of item types, as follows:-
Ctrl F4 - Frame selected from contents
Ctrl F5 - Global item selected from list
Ctrl F6 - Local item selected from list
Ctrl F7 - Text file
Ctrl F8 - Captured text screen
Ctrl F9 - Text screen with attributes
The append text screen functions allow text screens
captured from other programs to be imported to the edit
buffer. The `with attributes' interprets the screen
attributes and inserts formatting flags to give the
text the correct colours.
.
.NOTE Referencing
Reference flags can be inserted in a number of ways.
1. The flag characters can be typed directly into the text at
the required point. If a line has an incomplete reference in it,
the editor will flash a `~~' character at the end of the line.
2. Flagging words using the shifted ~NFunction keys~PNKey Functions~E.
3. Adding cross references by selecting the item to be
referenced from a list. The Control shifted ~NFunction keys~PNKey functions~E
provide the three main item lists.
4. Automatic referencing is available on the Alt shifted
~NFunction keys~PNKey functions~E.
The reference flags can be removed from a string by placing
the text cursor in the reference and pressing Ctrl-W.
The references for an item can be checked by pressing Ctrl-V.
.
.NOTE Searching and replacing
A search can be made for a string in the edit buffer.
This is done by pressing Alt shifted F6. This prompts
for a string, then searches forwards in the buffer
for that string.
To search again for the same string, the Alt shifted
F5 key may be pressed.
One operation which is often necessary is to replace
all occurrences of one string with another. The Alt
shifted F4 key provides a simple search and replace
function.
.
.NOTE Key functions
Function key 1 - Help - Displays a help menu
Function key 2 - Refresh - Redraws the screen display
Function key 3 - Check buffer - Verifies references exist
and that the number and size of lines do not exceed a limit.
Function key 4 - Swap - causes the current position in the
edit buffer to be swapped with the `marked' line (see below)
Function key 5 - Mark - Sets a `mark' at the current
position which is used by other functions (cut, swap).
Function key 6 - Cut - Cuts all lines from and including the
`mark' line to the current line, placing them into a paste buffer.
Function key 7 - Paste - Inserts the lines in the paste buffer
before the current line.
Function key 8 - Symbol shift - Toggles symbol shift
mode. This is used for entering symbol characters.
Function key 9 - Quit - This abandons the changes made to the item
and retains the original state of the item.
Function key 10 - Save and exit - Applies the changes made during
the edit, and returns to the frame display.
Alt shifted F9 - DOS Escape - this allows small tasks to be
performed such as copying a text file.
.
.REMARK
--------------------------- FRAME SECTION ----------------------------------
.
.FRAME Notebook
.TITLE What it provides
Welcome to the HyperShell Integrated Development Environment.
This example is an interactive introduction to using the IDE
and to editing and producing your own hypertext material.
[1] ~FOverview~K1~E Of Notebook hyperfile
[2] ~FTutorial~K2~E On using the Integrated Development Environment
If you intend to work through the tutorial, please ensure that
you have made a copy of this file in case you accidentally lose
part of it.
[9] ~FQuit~PQ~K9~E From IDE, without saving changes
.
.FRAME Overview
.TITLE Overview
This section gives a brief overview of the facilities given
in the Notebook hyperfile.
The notebook hyperfile can be used as the basis for your
own free format text databases, as it includes readily
available facilities for a number of general purposes,
such as the search facilities. A hyperfile produced using
this can then immediately be used with the reader program,
and will configure itself to exclude the editing options.
Whilst this hyperfile has pulldown menus to assist with the
production and maintenance of material, the IDE can be used
in a number of ways, and the functions provided by these
pulldown menus can be supplied in other forms.
Firstly, the various pulldown menus are explained.
$(next)
.
.FRAME Menubar
.TITLE Menubar
The pulldown menus on the menu bar provide the following facilities:-
╔ File operations - Save, quit etc
║ ╔ Navigation - next, previous etc
║ ║ ╔ Searches, refinement and matching lists
║ ║ ║ ╔ Miscellaneous - calcultor, error messages etc
║ ║ ║ ║ ╔ Add frames and items
║ ║ ║ ║ ║ ╔ Edit frames and items
║ ║ ║ ║ ║ ║ ╔ View, rename, delete etc
║ ║ ║ ║ ║ ║ ║ ╔ Help notes
║ ║ ║ ║ ║ ║ ║ ║
║ ║ ║ ║ ║ ║ ║ ║
1 ╩ 2 ╩ 3 ╩ 4 ╩ 5 ╩ 6 ╩ 7 ╩ 8 ╩
~M ~TwF~TKile ~PFFile~K1~E ~M ~TwG~TKoto ~PFGoto~K2~E ~M ~TwS~TKearch ~PFSearch~K3~E ~M ~TwO~TKther ~PFOther~K4~E ~M ~TwA~TKdd ~PFAdd~K5~E ~M ~TwE~TKdit ~PFEdit~K6~E ~M ~TwM~TKaint ~PFMaint~K7~E ~M ~TwH~TKelp ~PFHelp~K8~E Hyper Notebook
╔══╧═════╧═══════╧════════╧══════╧══════╧══════╧═══════╧════════════════════╗
╚╡~DU ~Tw frame name - frame title ~C72~DV<*>~DU~Z~C76~DT╞╝
Select the number by the menu to obtain more information about it
.
.FRAME File
.TITLE File operations
Option Function
Notebook A note about the notebook
Type file Type a text file
───────────
Command Do a DOS command (eg. a DIR listing)
DOS shell Temporary exit to DOS (allowing later return)
───────────
Save to TMP Save to temporary file
Exit (save) Save edits and exit
Quit Quit without saving
$(next)
.
.FRAME Goto
.TITLE Navigation, contents lists etc.
~i4 Option Function
Contents list Full contents list
From current Starting from the current frame
Starting with Frame name starting with the entered string
──────────────
Next frame Next frame
Matching frame Next matching frame
Previous frame Previous frame
Home frame First frame in hyperfile
──────────────
Backtrack one Step back one frame
Unwind backtrack Step back directly to a previous frame
Revisit frame Revisit a frame without winding back
──────────────
View noted ref Noted reference selection
$(next)
.
.FRAME Search
.TITLE Location of information
~i4 Option Function
Title search Search titles for string
Search Text Search titles and text of frames
Pick and search Allow selection of word for search using mouse
────────────────
Add to search Further search to add extra frames
Refine search Refine current matching frame list
────────────────
Matched flag ± Toggle match flag on current frame
────────────────
Next matching Next matching frame
List matching Contents list of matched frames
Unmatched list List unmatched frames only
────────────────
Global items List of global items
Items (Local) List of local items
$(next)
.
.FRAME Other
.TITLE Miscellaneous
~i4 Option Function
Local notes Menu of local notes
Global notes Menu of global notes
Calculator Simple calculator
Print frame Print current frame
Set colours Set colour scheme
Error text Display text of last error
Action Perform action
$(next)
.
.FRAME Add
.TITLE Creating new items
~i4
Option Function
Frame Add a new frame
Global Item Add a global item such as a note
Local Item Add a local item such as a note
Text file Create a text file
$(next)
.
.FRAME Edit
.TITLE Maintain items
~i4 Option Function
Current frame Edit the current frame
Frame Edit a frame selected from a contents list
Global Item Edit a global item selected from a list
Local Item Edit a local item selected from a list
Text file Edit a text file
Header Edit the header text
Edit Footer Edit the footer text
$(next)
.
.FRAME Maint
.TITLE Miscellaneous editing
~i4
Option Function
View item Enter view mode for item
Rename item Change name of frame or item
Title change Change title of frame
Delete item Delete frame or item
Whats deleted See whats on the deleted list
Undelete item Recall deleted item
Move item Move frame or item in list
Print item Print frame or item
Check item Check frame or item
Full Check Do check scan of frames or items
$(next)
.
.FRAME Help
.TITLE Using the notepad
~i4
Option Function
Selecting Navigation
Key mappings Default key mappings
Funct. keys Function key mappings
Menu bar Using the menu bar
Information Current status information
Colour key Colours of references
Paged lists Help menu for paged mode
Editing mode Help menu for editing operations
$(next)
.
.FRAME Using the editor
.TITLE Modifying text
~i4 The ~Nedit mode~E is a built-in full screen editor used for
creating and modifying text. It is itself configurable, as the
functions mapped to the control keys can be changed to suit
individual preferences. This example uses the default mappings.
The edit mode allows frames, notes, scripts and other items to
be edited. When the editing is complete, you can exit from edit
mode, whereupon the changes are immediately available, or quit
from the edit mode to retain the previous item contents. The
set of changes made within a IDE session can then globally be
applied to the hyperfile, or discarded by quitting. There are
therefore two levels of saving to be considered. There is a more
advanced form of incremental file modification which is not
covered here, but is described in the full documentation.
$(next)
.
.FRAME Try it out
.TITLE Lets do some editing
Well, the best way of learning about something is to jump
straight in and try it out.
The next few frames show you how to do the basic editing
operations.
You can then try the other facilities provided by the pulldown
menus on the ~FMenubar~E. Remember that the ~FFile~E menu can be used
to either abandon the changes you have made, or to save them.
You could work through the various options one at a time so
that you understand what they do.
After you have added a few frames of your own, with references
of different kinds, why not run the 'full check' from the maint
menu against the frames to see if there are any problems. The
Ctrl-V key combination can be used in edit mode to check out
the item currently being edited.
$(next)
.
.FRAME Tutorial
.TITLE using the editing facilities
Here are some exercises to allow you to learn how to use
the integrated environment.
[1] ~FEditing~P#EFExample frame~K1~E - Using the ~Nedit mode~E
The edit mode is used for creating and modifying frames,
notes, scripts and other HyperShell items.
[2] ~FAdding a frame~K2~E - Expanding the hyperfile.
A frame is the named set of text about a particular topic
normally displayed by HyperShell. This frame, called 'tutorial'
is an example.
[3] ~FAdding a note~K3~E - and its reference
A ~nNote~E is a temporary popup block of supporting information.
$(next)
.
.NOTE Note
The note is a useful way of
giving brief explanations of
technical terms.
It can be used for help text
or for simple single field
data entry boxes.
Name: ~I~W15~PpHello %s~E~Q
.
.FRAME Adding a frame
.TITLE Creating a new frame of text
~i4 We will now add a new frame in the notebook hyperfile.
To do this, just press 'a' (for ~FAdd~E) then 'f' (for Frame).
The 'a' key selects the Add menu, and the 'f' key selects
the frame option of that menu.
After you press these, you will be prompted for the name
of the frame. This can be a short name of up to 20 characters.
You will then be prompted for a title, which can be a longer
description of the frame - up to 35 or so characters.
You will then be asked where the frame is to be positioned
in the hyperfile, and you can ~Nselect~PNSelecting~E the frame after which
the new one should be inserted.
You will then enter ~Nedit mode~E, within which you can enter
the text for the frame.
Do this now, and when you are in edit mode, press F1 for help.
.
.FRAME Adding a note
.TITLE Adding a popup note item
~i4 To add a global note, the procedure is similar to adding a
frame. Press 'a' (for ~FAdd~E) then 'g' (for Global) and 'n'
(for Note).
After you press these, you will be prompted for the name
of the note. This can be a short name of up to 20 characters.
You will then be asked where the note is to be positioned
in the list of global items, and you can ~Nselect~PNSelecting~E the item
after which the new one should be inserted.
You will then enter ~Nedit mode~E, within which you can enter
the text for the note.
The note text should be kept to roughly rectangular shape.
When displayed, it will be surrounded by a box of the
correct size.
Lets look at references now:-
$(next)
.
.FRAME References
.TITLE Links and actions
~i4
References are links from the displayed text to other items
of text, such as frames and popup notes, to various ~Factions~E
such as running another program, and for the entry of data.
A frame reference is encoded in the text as:-
~~FFrame name~~E,
which displays as:-
~FFrame Name~PpThis normally displays a frame~E
The highlighting indicates that the reference can be selected.
Now lets see how to add a reference~E to link in the note we
created above.
$(next)
.
.FRAME Adding a reference
.TITLE Linking frames and notes
~i4
Now we will add a ~Freference~PFreferences~E from the frame to the note.
Press 'E'dit 'F'rame and select the frame you added.
Move to a position in the frame where you want the reference
to the note adding.
Then press ESCape to pop the edit menu up and select the
Insert Ref option - then the Global Item option - then the
note which you added earlier.
Press F10 to save the edited frame, then move to the frame
using the contents list (Function key 2).
You should then be able to select the highlighted reference.
Next, lets learn about ~Fvariables~E.
$(next)
.
.FRAME Variables
.TITLE Containers for information
~i4
Variables are an extremely useful feature of HyperShell.
[1] ~FVariable tokens~K1~E
Explains what variables are, and how to use them.
[2] ~FVariable assignment~K2~E
Explains about storing information in variables.
$(next)
.
.FRAME Variable tokens
.TITLE Using variables to hold information
~i4 A variable is a named container for information such as a text
string or a number. HyperShell treats variables as substitution
strings, as in other 'shell' programs. What this means is that
when an instance of a variable token is placed in text or in an
action string, it is replaced by the value of the variable.
So, if variable L has a value of 'Larch' ~Fassigned~PFVariable assignment~E to it, the string:-
Number 1, the $$L
would appear in text display as
Number 1, the Larch
The variable token is the $$ symbol, followed by the variable name.
For 'named' variables, ie. those with a name longer than one letter,
the name is provided within parentheses:- The $$(tree)
$(next)
.
.FRAME Variable assignment
.TITLE Giving a value to a variable
~i4 A variable can have a value assigned to it using the action 'V':-
VFPineapple
This puts the string 'Pineapple' in variable F. If you assign a
different value to a variable, this replaces the previous value.
A named variable uses the action 'ZV' for a simple assignment:-
ZVFruit=Banana
The variable 'Fruit' has the string 'Banana' loaded in it.
There are a set of 'system' variables, maintained by HyperShell,
which cannot have values assigned to them, but provide such
information as the current frame name, the date, etc. eg.
Date($$4) = $4, Title($$2) = $2
$(next)
.
.FRAME Variable examples
.TITLE using variables
~i4
So, why not assign a variable and expand it. The variable named
'x' has its token coded in this box -> [$x].
This will probably be empty, as it does not yet have a value.
Press F8, then enter the action string:-
VxExcalibur
Then press END to refresh the frame display, and the value
should be displayed in the box.
Also, press F8 and enter the action string:-
ZVname=Your Name;y
Your name is $(name)
$(next)
.
.FRAME Actions
.TITLE HyperShell commands
~i4 HyperShell commands are known as actions. The action is coded in
HyperShell as an action code (of one or two characters), followed
by parameters.
The action code tells HyperShell what to do, and the parameters
give further information about the command. For example, the
action:-
NDeciduous trees
Displays a note called 'Deciduous trees'.
The parameter can be a 'literal' string, as in the above example,
or the result of some other operation, known as an ~Faction modifier~E.
The parameter can also be provided using a ~Fvariable token~PFvariable tokens~E.
$(next)
.
.FRAME action modifier
.TITLE providing a parameter for an action
~i4
An action modifier is similar to a 'function' in a programming
language. It is something which provides a string as a result.
For example, the prompted input action modifier is coded as
the ? character followed by a prompt:-
N?Which note
The '?Which note' string causes a prompt to be issued, and then
accepts a string typed by the user, which forms the result of the
function. So, if the user typed 'Meadow flowers', the note called
Meadow flowers would be displayed.
There are a number of different types of action modifier. One of
these, the ~Fdynamic menu~E can itself have its parameters supplied
from a further action modifier.
$(next)
.
.FRAME dynamic menu
.TITLE instant selection lists
~i4 The dynamic menu is a 'dynamic' list of options presented to
the user for selection. These are 'dynamic' because they are
produced when you issue the command, rather than you having
to code them explicitly. For instance, the dynamic menu:-
T@d*.TXT
Will display a file selection list of those files in the current
directory with an extension of 'TXT'. When a file name is selected,
it will be returned as the result of the action modifier, providing
the parameter to the 'T' action, which displays the selected file.
A dynamic menu can have a further ~Faction modifier~E coded to
supply its parameter:-
@D?Wildcard file specification
This allows the user to decide which set of files to select from.
$(next)
.
.FRAME Example actions
.TITLE and action modifiers
Try pressing F8 and entering each of these action strings:-
~AVx?Name~PZL3~E Select this for more detail
~h3 ^ ^------ '?' = prompt for input, using 'Name' as prompt
~h3 |-------- 'V' = Load variable (x) with string entered by user
Asks for a name, then loads it into variable 'x'.
~AT@d*.HIX~PZL4~E Select this for more detail
~h4 ^ ^------ '@d' = menu of files matching wildcard *.HIX
~h4 |-------- 'T' = display selected file
Allows selection of a .HIX file, which it then displays.
~AP&L$$x~PZL5~E Select this for more detail
~h5 ^^ ^----- '$$x' = contents of variable 'x'
~h5 ||------- '&L' = length of following string (= length of variable)
~h5 |-------- 'P' = Pop up message showing result (length)
Pops up a number which is the length of the name entered above.
~AA@C~PZL6~E Select this for more detail
~h6 ^^------- '@C' = Paged contents list allowing selection of frame
~h6 |-------- 'A' = Do result as action (result will be Fframename or null)
The contents list selection action. (This is what F2 does)
$(next)
.
.FRAME Features
.TITLE of Note Book editor
* Editing of frames, notes and other control items.
* Item level and file level checking of syntax and cross references.
* Frame and item text output direct to printer or to a file.
* Menus for selection of items, searches and check scans.
.
.FRAME Example frame
.TITLE For editing
You are now in EDIT MODE (assuming you got here from the TUTORIAL
frame - if you didn't, you are probably not in edit mode, so ignore
the rest of this frame and go ~Fsomewhere else~PFTutorial~E).
Press F1 for editing help. Try moving the cursor around the screen
using the cursor keys, and typing new text in. Also try using the
DEL key to delete text. Then look at the help notes to find some
other text editing commands. Try deleting this block of text.
Try pressing the ESCape key for the edit menu, and then select
'Insert ref; from it, then 'Frame ref'. Select a frame from the
list and its reference will be inserted in the text. If you look
at the bottom line, you will see the reference flags around the
reference you inserted. This is a reference as well -> ~FTutorial~E
To exit back to the tutorial frame, press Function key 9.
This will throw away the changes that you made to the frame.
To save the changes and exit, which is what you will normally
do after editing, press F10 instead.
.