Robelle Solutions Technology 5.8 QEDIT Quick Reference Guide
Pubblicità
Pubblicità
QEDIT™ 5.8
Full-screen Editor for HP e3000 and HP-UX
Quick Reference Guide
Qedit's Function Keys
Key Label
F1
Upd-Next
Visual
Function
Update page, then show next page or enter Visual from Line mode
F2
F3
F4
F5
F6
F7
Roll Up
Screen
Findup
String
Find
String
Back
One Page
Forward
One Page
Do ===>
Listredo
Move ahead 6 lines in the file
{adjust number with Set Vis Roll}
Search backward for current string
{define "string" via a command}
Search forward for current string
{"string" is shown in status line}
Display previous page of the file
{Set Visual adjusts page size}
Display next page of the file
{adjust page size with Set Visual}
Execute command at home line or show Redo stack in Line mode
F8
Exit Exit from Visual to Line mode or
Exit from Qedit
Function keys work in Visual mode and in Line mode
Robelle Solutions Technology Inc.
7360 – 137 Street, Suite 372
Surrey, B.C. Canada V3W 1A3
Phone: (604) 501-2001
Fax: (604) 501-2003
Support: (800) 453-8970
E-mail: [email protected]
Web: www.robelle.com
Copyright 1985-2008 Robelle Solutions Technology Inc.
1
Visual Mode for HP Terminals
Type "visual" or press F1 to enter Visual from Line mode. Use the terminal keys to edit. Press Enter to save:
HP terminal
Reflection
Enter key (not the Return key)
Enter key on numeric keypad (or "+" on numeric keypad, or Shift-F10)
QCTerm F12 hpterm Enter key on numeric keypad
Screen Layout
Although the number of text lines can be varied with Set Visual Above and
Below, the screen always contains the following elements:
===>
Okay 1691.75 WFILE.DOC.TACCT "verify"(u)
-1 procedure abc;
* begin
+1 integer def;
+2 double xyz;
// ....+....10...+....20...+....30...+....40...+
Home line
Status line
Text lines
Template
Type commands and strings here (===>)
Shows current line, file, string, status/hint
"!" means line is wider than screen
"?" means nonprinting characters
"//" must not be erased
Commands at the Home Line
Type commands after "===>" and press Enter or F7.
~
[
] nn.nn
"xx"
^"xx"
+nnn
-nnn
Help screen
Go back to page just accessed
Go to start of file
Go to end of file
Go to line nn.nn
Search ahead for "xx"
Search back for "xx"
Go ahead nnn lines
Go back nnn lines
<n
>n
Go back n pages (n = 1 to 9)
Go ahead n pages (n = 1 to 9)
/ Exit back to Line mode
. Reset
.xx
=calc
%ext
Reset exclude lines
Any calculator command
Set Extprog command
Qedit,
Cut-and-Paste Indicators
To define and process a block of lines, use tags in the two blank columns at the left edge of the screen. Qedit keeps a copy of MM, CC, DD, RR and JJ blocks in the Hold0 file. To cancel a pending tag, put a period (.) in the home line (===>) and press F7.
LEGEND: MPE version only HP-UX version only
2
A0
B0
ZZ
HH
HJ
AH
BH
Rn
DD
CC
MM
A
B
Begin and end of delete block
Begin and end of copy block
Begin and end of move block
Insert after this line (or use F)
Insert before this line (or use P)
Insert Hold0 file after this line (or use F0)
Insert Hold0 file before this line (or use P0)
Begin and end of marked block
Begin and end of block written to Hold file
Begin and end of block appended to Hold file
Insert Hold file after this line (or use FH)
Insert Hold file before this line (or use PH)
Replicate this line n times
Rn
JJ
VV
GG
Replicate block delimited by RR, n times
Begin and end of justify block
Divide lines at "~" or append blank line
Join lines together
XX Exclude lines from display
D C M Z H V G Process only one line instead of a block
Visual Emulation on HP-UX
Starting from HP-UX 11.0, HP stopped supporting block-mode operations on HP terminals. This means regular Visual mode does not work on these versions anymore. If Qedit/UX is running on HP-UX 11.0 or higher, you can use block-mode emulation by enabling Set Visual Blockemulation On.
Screen Mode for VT Terminals
On VT terminals, type "visual" to enter Screen mode from Line mode.
Keypad:
7
Home
8
Cursor
Up
9
Previous
Page
4
Cursor
Left
1
End
0
Insert
5
Move by
Words
2
Cursor
Down
6
Cursor
Right
3
Next
Page
.
Remove
Cursor Keys:
Insert Toggle insert/overwrite mode
Remove Delete
Find Home
Select End
Home
End
Move to beginning of line
Move to end of line
Home Home Move to beginning of file
End End Move to end of file
LEGEND: MPE version only
3
HP-UX version only
Control Keys:
^A Find again
^B Page back
^C Copy
^D Delete line
^E Exit
^F Find string
^G Goto line
^H Backspace
^I
^J
^K
^L Mark block
^M Return
^N Insert line
^O Options
^P Page forward
^Q
^S
^T
^U Undo
^V Paste
^W
^X Cut
^Y
^Z
^R Search and replace string
Qedit Commands
This guide describes, in alphabetical order, the commands that Qedit understands at the line prompt ( / or qux/ ), the Visual home line (===>), the
Visual "Next command?" prompt, and the "More?" prompt of ListJumping.
A command shown with a colon (:) is an MPE-style command. You enter one per line, must spell the full word, can omit the leading colon, use the semicolon (;) for keywords, and enter an asterisk (*) to pass the currently open file to the command.
A command shown with an exclamation mark (!) is a HP-UX or POSIX shell command. You enter one per line, must spell the full word, and can omit the leading exclam. Asterisk is not used in shell commands to indicate
the currently open file, because asterisk is an important substitution character in HP-UX and POSIX, usually indicating all the files in the
current directory.
A command shown without a colon or exclam is a Qedit command. You can enter several commands per line, each separated by ";" and commands can be abbreviated to the leading substring shown in capital letters (e.g.,
AP is the shortest abbreviation of APpend).
Command Options
Q Quiet
T Template MT, LT
Shortcuts in Qedit
\
^
Back one line
Findup
<CR> Ahead one line
* Current line or workfile
] Last lines
, Redo
,, Listredo
+5 *+5
-5
=
*-5
Calculator
? Help listf No colon needed
CO Compile CM
AC Awaken son grep No exclam needed x/.y
,. Do
CAps Short form (CL = CLose)
$ find;m Combine cmds with ";"
% x.y
Previous external file
External program
#1234 NM spool file
KI Kill son
Place Comments in Braces {} at the End of a Line:
change "xxxx"arbiter" @ {fix password}
:ACtivate [ program [ ,entrypoint ] ]
Wake up a held program. (Default: program = last)
LEGEND: MPE version only HP-UX version only
4
:activate suprtool
Add [ line ]
Add new lines at or after line. (Default: line = *) add 56 {use "//" to stop adding} addj 100.1 {J = justified = with same indentation}
Add line string
Add one new line and fill it with string. add 5 "new line"
Add line = file [ ,UNN ] [ rangelist ]
Add rangelist lines from a file at or after line. (Default: entire file) add 53 = exmplcd.source add 23.1 = /src/libr 205/215
(JOIN)
Add line = rangelist
Copy rangelist to line; original lines are not purged. add 5.1 = 10/25 {copy} add last=hold0 {repeat last copy}
Add line < rangelist
Move rangelist to line; lines in original position are moved. add 50 < 11/22 {move}
(COPY)
(MOVE)
APpend "string" [ rangelist ]
Append string to the end of each line in the rangelist. (Default: rangelist =
* line) append ";" 3/7
BAckward
(Shortcut: F5 key)
Starts "browsing" the current file by displaying one page backward.
Before [ start [ /stop ] ] | [ string ] | [ ALL | @ ]
Redo previous commands. See Line Modify Codes on page 14.
b {modify last command} b 5/10 {repeat several commands} bj {Listredo}
:Beginfile filename
Create temp file and fill with lines until :Endfile.
:beginfile infile
:dbname.group.account
:set-name
:endfile
Change "string"newstring" [ rangelist ]
Replace string with newstring. Use three quotes for brevity, or four quotes to specify a (window) for string. (Default: rangelist = * line) change "sum"(smart) "sums" all
LEGEND: MPE version only HP-UX version only
5
cq"sum"sums"@ {q = don't show each change} cj "a"b" 5/ {j = verify changes} ct "CUST"SUPP" @ {t = change COBX tags} set decimal on { allow decimal notation} ch ‘9 “ “ @ { change tab to space }
Change col [ /col ] [ (window) ] "string" [ rangelist ]
Replace a column range with string or insert string in front of a column.
(Default: rangelist = * line) change 3/3 "|" all c 7/10 "" 10/20 {shift left 4 columns} c 7 " " 10/20 {shift right 1 column}
CLose
Close the current workfile and remove the file name from the list of recently accessed files. close
COLcopy src1 [ /src2 ] dest1 [ /dest2 ] [ rangelist ]
Copies a column range to a destination column range. If destination is a single column, source range is inserted. (Default: rangelist = * line) col 3/5 20 all {inserts col 3/5 at column 20} col 7/10 20/30 10 {copies col 7/10 to columns 20/30}
COLMove src1 [ /src2 ] dest1 [ /dest2 ] [ rangelist ]
Moves a column range to a destination column range. If destination is a single column, source range is inserted. (Default: rangelist = * line) colm 3/5 20 all {inserts col 3/5 at column 20} colm 7/10 20/30 10 {moves col 7/10 to columns 20/30}
Delete [ rangelist ]
Delete lines. (Default: rangelist = * line) d 10/20 {use Ctrl-Y to undo last delete} dj 5/8 {J = confirm deletions}
DEStroy [ filename ]
Purge a file with user verify. (Default: current workfile) destroy temp des * {current file}
:DISPLAY [ message ]
Print a message on $stdlist.
:display Now we run Suprtool
DIvide [ (columnlist) ] [ rangelist ]
Split lines into two or more. (Default: blank line after *) div (11 21) {split line at column 11 and 21}
:DO [ start [ /stop ] ] | [ string ] | [ ALL | @ ]
Repeat previous commands without modifying them. (Shortcut = ,)
LEGEND: MPE version only HP-UX version only
6
do -2 {repeat next-to-last command} do list {repeat last List}
:Editerror filename [ VISUAL | NEXT | PREV ]
Go into Visual for first error. Press F4 for next error, F3 for previous, and
F8 to exit Visual.
:Endfile
Marks the end of a :Beginfile sequence.
Exit
(Shortcut: F8 key)
Shut the current workfile and exit Qedit. :Run Qedit with Parm=64 or –v to verify exit. exit {or press the F8 key}
Find [ string1 [ OR string2 … ] | stringrange ] [ line ]
(Shortcut: F4 key)
Search ahead for any of one or more strings, starting at line. If stringrange is specified, the start and end lines are saved in ZZ. (Default: string1 = last, line = *+1) find "xxx" find "this" or "that" or "the other" find "proc"/"end_proc"
FINDUp [ string ] [ line ]
(Shortcut: F3 key)
Search back for string. (Default: string = last, line = *-1) findup "xxx"
^"xxx" {^ is also a shortcut}
FORM [ $lp | $lpa | $lpb ] [ file ]
Display self-describing information from current or external file, on screen or printer.
FOrward
(Shortcut: F6 key)
Starts "browsing" the current file by displaying one page forward.
GARbage
Recover lost space in workfile. gar
Glue [ (columnlist) ] [ rangelist ]
Join two or more lines. (Default: join *+1 to *) glue 5/10 {join pairs} gluej {insert 1 space} glueq (11, 21) {join next 2 lines to column 11 and 21}
Help [ command ] [ ,keyword ]
Provide on-line Help for Qedit. Keywords: Intro, News, Terms. help {start at top level} help set,list {comma required}
LEGEND: MPE version only HP-UX version only
7
helpq change {quick summary}
HOld [ filename ] [ rangelist ]
Save lines in Hold file. HoldJ appends. (Default: filename = *, rangelist =
@) holdq 15/75 {no listing} holdj 80/90 {append to Hold file} hold testjob {copy entire file}
Justify [ option ] [ keyword … ] [ rangelist ]
Format lines of text. Options: Left, Right, Center, Format, Both, Null.
Keywords: Margin column, Two ON|OFF (two spaces after . ? or !),
Indent spaces (indentation for list of points), Withindent (activate configured indentation). (Default: Set Justify assigns defaults) j center 500 {center line 500} j left 5/10 {left justify lines in rangelist}
Keep [ file ] [ ,option... ] [ rangelist ]
Save the workfile in an editor Keep file. Options: Temp, UNN, Yes (purge old), No (no purge), Xeq (assign xeq access), Released (:Release file),
Ifdirty (only if changes made), LF (insert Newline characters), NOLF (no insert Newlines), and Nolabels . t sample;keep {one full cycle} k r2,y {purge existing file if it exists} keep abc,temp,unn,yes keep ./abc,xeq {save with xeq access}
:Kill [ @ | program [ ,entrypoint ] ]
Terminate a held process. (Default: recent)
:kill @ {all processes}
List [ $option... ] [ file [ ,UNN ] ] [ rangelist ]
Display lines from current or external file, on screen or printer. Options:
$lp, $lpa, $lpb, $record (attached printer), $device, $duplex, $page, $lines,
$even, $odd, $hex, $octal, $decimal, $char, $dbl, $shift, $rightby,
$columns, $include, $use, $copy, $pre, $post, $skip, $noskip, $length .
ListJ means browse one screen at a time. (Defaults: see Set List on page
list 5/10 list "xxxx" {string match} list cx {view a file} list $lp all {send to a printer} list $hex $char cx {view file cx in hex and char mode}
:
LISTREDO [ [ start [ / stop ] ] | [ string ] | [ ALL | @ ] ]
[ ;ABS | ;REL | ;UNN ]
[ ;OUT=file ]
Display previous commands. (Default: last 20; Shortcut: ,,) listredo change {all Change commands} listredo all;unn;out=myfile
LEGEND: MPE version only HP-UX version only
8
LISTUndo
Display commands that you can undo, starting with the most recent command. listundo ls
Execute the ls command. ls -a
LSort range | stringrange [ KEYS keylist ... ]
Sort a range of lines (entire line is key). Key is starting column and length, or column range. lsort 10/33 {ascending order} lsort "Abrams"/"Zucker" lsort all keys 3,5 {column 3 through 7} lsort zz keys 3/5 {column 3 through 5} lsort 20/] keys 1 10 20 5 desc
MErge modfile [ (rangelist) ]
Merge a modfile into the current workfile. (Default: entire modfile) merge mods
Modify [ rangelist ]
Edit characters within lines. Also split, splice, delete lines. See Line
Modify Codes on page 14 and Set Modify on page 16. (Default: rangelist =
*) m 5/10 m "custrec"
New [ file [ ,lang ]
[ (size) ]
]
Create a new workfile with the current format and open it. Default is an extra scratch file. (Default: Set Work) new {create an extra scratch file} new qwork {create an empty file named qwork} new fred,data (25000)
Open file [ ,BROWSE | DEFER | NODEFER ]
Open an existing workfile for editing or browsing. Close the current workfile first. (Default: Qeditscr, * = previous) o qwork open * {switch back to other file} open ? {select a recently used file} open *-2 {open a recently used file}
:PAUSE [ seconds | message ]
Print prompt message and wait for user to press Return; or pause for n
seconds.
:pause Press Return to continue
:pause 60
LEGEND: MPE version only HP-UX version only
9
:PREP [ uslfile ] [ ,prog ] [ keyword [ value ]...]
Converts USL object code into a MPE/V program file. Keywords are:
rlfile
CAP caplist PMAP
QMAP LP
PATCH words ZERODB
FPMAP NOFPMAP
YES NO
NOSYM CHECKSUM
(Default: $oldpass, $newpass; Set Rl, Set Maxdata)
Proc [
procedure |
DOWN | UP ]
[ S | P | G | PP | PG ]
[ rangelist ]
Call a user procedure and pass lines to it. S = system SL; P = pub; G = group; PP = program's pub; PG = program's group.
Down and Up are built-in. (Default: procedure = previous, rangelist = none). See Set Shift on
page 17 and Set Editinput Extend on page 15.
p down 5/10 {change lines 5/10 to lowercase}
Q [ "string" ]
Print a string on the terminal. (Default: print blank line) q "Enter New Lines";add {prompt/add}
:QHELP helpfile [ ,keyword …]
Enter Help system on a specific Robelle helpfile. qhelp robelle.help.robelle
:
REDO [ start [ /stop ] ] | [ string ] | [ ALL | @ ]
Redo previous commands, using D, R, I, and U to edit. (Shortcut: ,) redo {modify last command} redo -2/ {redo last 2 commands}
:REFLECT pc-command
Execute a command on your PC via Reflection.
:reflect dir a:
RENumber [ startline [ / stopline ] ] [ maxincr ]
Renumber all or part of the workfile. (Default: entire file, starting from line
1.0) renum {first line is changed to 1.0} renum 50/60 {renumber 50 through 60}
Replace [ $HOLD ] [ rangelist ]
Replace lines from terminal or Hold file. (Default: rangelist = *) replace $hold 100/105
:RUN [ prog ] [ ,entry ] [ keyword [ value ]...]
Runs a program without leaving Qedit. Keywords are:
LEGEND: MPE version only HP-UX version only
10
G|P|S
PARM value DEBUG
LMAP [NO]HOLD
NOPRIV NOCB
file
STDLIST file PRI
QINPUT filename NOSTOP
(Default: $oldpass, Set Lib)
Implied RUN
If you type a program name, Qedit looks for it in the logon group, Pub group, and Pub.Sys (or Hppath list). Only Info and Parm are supported in implied run.
Set keyword [ value …]
Changes Qedit's configuration. See the Configuration section on page 15.
SHut [ filename ]
Close the current workfile or save it with a new filename. (Default: same file name) shut {close file; keep same file name} sh rept23 {rename file}
SPell [ rangelist ]
Check spelling in lines. (Default: rangelist = *; see Set Spell on page 17)
spell @ spellj 100/200 {with modify}
Text file [ ,option ]
Copy a file into the current workfile (if empty) or into Qeditscr or a random scratch file . Specify TJ or the New option to Text into an extra scratch file.
Specify TQ or the UNN option for files that have digits in their last 8 columns (or first 6 for Cobol). These options override Qedit's defaults: UNN, SetIncr, Labels, SaveTabs, Browse, Yes, No, Length . They can be combined with the following keywords that override the automatic language detection: Cob, Cobx, SPL, FTN, Pas, RPG, Job, Text, Data,
Cobfree, HTML, XML, QSL, Java. text myfile {copy into qeditscr} text fred,unn {treat as unnumbered file} text read,pas {treat as Pascal} text longfile,length 80
Text newfile [ ,format ] [ (size) ]= file [ ,option ]
Create a new workfile and copy another file into it. See above for options.
(Default: same type) The formats override Qedit's workfile defaults: Data,
Wide. text ext.c {copy into the default scratch file} text wf,data=ext.c {copy file ext into file wf}
UNdo [ ALL | REDO ]
Reverse result of last text-modifying command. Undo All returns to last
Text or Open state; Undo Redo cancels the last Undo operation.
LEGEND: MPE version only HP-UX version only
11
UP
Start "browsing" the current file one page at a time.
(Shortcut: F2 key)
Use file [ rangelist ]
Execute all or part of a file of commands. Nesting is okay. * means the current workfile or the last workfile opened. useq findc {Q = don't print commands} use * {execute current workfile} use compile "qfx." {part of a file}
Verify
[ LP ]
[ @ | ALL ] [ keyword... ]
Show status. Keywords: ALias, SET option, EXIt, LAStfile, Open, PROC,
PROG, RUn, STRing, VErsion, Z, ZZ. (Default: show nondefault options) v open {see list of files you have edited}
VIsual [ line | "string" ]
(Shortcut: F1 key)
Switch to full-screen editing. See Visual Mode section on page 2.
(Default: line = *) vi 50 {enter Visual mode at line 50}
Words "string"
Look up words in the spell dictionary. words "right wroung CAse" words "prefix@ soundex!"
:XLTRIM fileset
Trim excess disc space from disc files on MPE/iX.
:xltrim @.source.develop
Zave [ = [ commands ] ]
Store or recall a line of commands. (Default: execute the commands in the
Z line) z=list */last {define Z} z {invoke Z}
ZZ [ [ line [ / line ] | stringrange ] | OFF ]
Mark a range of lines for later reference. Mark the range in a single ZZ command, or in two ZZ commands. zz 5/10 {define the range} c "prog"program" zz {then use it}
File Names
Wherever Qedit expects a file name, you can use the $file= keyword followed by the actual name enclosed in quotes. This is very useful when file names contain special characters that might be incorrectly interpreted by Qedit. text $file="This.is-a-special_filename"
LEGEND: MPE version only HP-UX version only
12
Windows, Patterns, and Regular Expressions
A window in parentheses may follow a string to define how it matches, e.g., list "qedit" (1/40 up)
Qedit supports the following expressions in a window: columns
Smart | NOSmart Inside another word
Upshift | NOUpshift Ignore the case
Match | NOMatch True = not found
Pattern | NOPattern String is a pattern
Regexp | NORegexp String is a regular expression
A Qedit pattern is similar to a regular expression, but uses MPE Listfstyle wildcard characters. E.g., list "@cost@fixed@" (pattern)
Qedit supports the following wildcards in patterns:
@
#
?
~
&
^ !
Zero or more characters of any type
Exactly one numeric character (0 to 9)
Exactly one alpha (A to Z, a to z) or numeric
Zero or more blank characters
Escape character (defines next character as a literal)
Reserved for future use
Qedit supports the following metacharacters in regular expressions:
*
+
[
.
anchor
$ End-of-line
Matches any character
? Optional
Matches zero or more of the preceding character
Matches one or more of the preceding character
Start a character class
]
^
End a character class
If first character in character class, negate class start end
Qedit recognizes the following escaped characters in regular expressions:
\b Backspace
\e
\f Form
\n
ASCII escape character (ESC)
Newline (line feed)
\r Carriage
\s Space
\t Horizontal
\DDD
\xDDD
1-3 octal digits representing a character's ASCII value
1-3 hex digits representing a character's ASCII value
\^C
\1\2
Control code (e.g., Control-G (^G) is the bell character)
Subpattern (in replace string only)
Strings
Characters enclosed in single quotes or double quotes are a string (e.g.,
"abcd"). Other string delimiters are : \ ~ and |. MPE also includes ! & _ ? # and >.
You can change this list with Set StringDelimiters. Some characters are not usable at the Visual mode home line. Set Decimal On enables
ASCII codes (e.g., '07 = bell character). Verify String shows the last string;
List "" reuses the string.
LEGEND: MPE version only HP-UX version only
13
Lines, Ranges, and Rangelists
A line defines a position in the file:
[ or First
] or Last
* nn.nn line + count line – count
First line of file
Last line of file
Current line of file
Any line number: 4, 100, 1.1
Relative position forward: * + 10
Relative position backward: Last - 10
A range can be an entire file (@ or ALL), a single line, a line range (e.g.,
10/20), or the block of lines marked by ZZ: list all {entire file} list 5 {only line 5} list 5/10 {lines 5 through 10} list *-5/ {from 5 lines back to end of file} list zz {see ZZ command and cut-and-paste}
A range can also be the lines containing one or more strings, or a block of lines bounded by a beginning string and an ending string: list "bob" {all lines that contain "bob"} list "bob" zz {only search ZZ lines for "bob"} list "bob" or "ken"{lines containing either string} list "start-proc" / "end-proc"
A rangelist is a list of ranges (not of the string variety): list 501 617 zz list 2/3 7/9
COBOL Copylib Members
To access a Copylib member, put its name in parentheses, as in List (base).
To look in another Copylib, append the file to the member, as in Text
(base) baselib. To see the member names in a Copylib, use a pattern such as List (@).
Line Modify Codes
Qedit has these three choices for interacting with the Modify command:
Set Modify Robelle (default). Printing characters replace, and control keys edit (e.g., Delete = Control-D = ^D).
^A Append ^I Tab
^B Insert
^^ Insert
^D Delete
^L Append
^O Overwrite
^V Divide
^G Goof ^T Stop
^A^D Delete at end, then add end ^A^V New lines ^T^D Delete
Set Modify Qzmodify. This WYSIWYG choice gives you the Robelle
Modify functions, plus the following:
^E Erase
^J Justify
^Q Help
^U Move to previous tab
^K New ^X Redraw
^Fc Next "c"
^Sc Previous
^Pn- Back n lines
^Fnc
^Pn+
Find n th th
"c"
previous "c"
Ahead n lines
^W^C Compress ^W? Show decimal char value
LEGEND: MPE version only HP-UX version only
14
^W^D Delete word
^W^L Ruled "line"
^W^N Toggle "num"
^W^P Put any char
^Wc^D Delete to "c"
^W^S^D Change line to lowercase
^W^S^U Change line to uppercase
^W$cc Put a hexadecimal char
Set Modify HP. This is like MPE/iX Redo.
I
D
Insert
Delete
>
>R
Append (>D = delete)
Replace at end
R Replace U Undo
C\x\y Change D> Clear rest of line
Configuration: Set Command
The Set command configures Qedit. Combine options for the same keyword in the same Set command, but use different Set commands for different keywords. E.g., set check delete on justify on {good} set decimal on visual bell '222 {error} set decimal on; set visual bell '222 {good}
Set commands
Keyword Option Value Initial
ACcount
acctname
same as Qedit program location
ALias "aliasname" [To
"aliasdefinition" |
OFF]
"aliasdefinition" |
OFF]
ALias Ignorecase ON | OFF
ALias Reset
ALias Trace ON | OFF
ON
OFF
AUTOCOnt
CHeck
CHeck
CHeck
DEcimal ON | OFF
DL size {132 – 10000
EDitinput
EDitinput
EDitinput
Asian
Command
Data words}
ON | OFF
ON | OFF
ON | OFF
EDitinput
EXPandtabs
Delete
Justify
Hold
Extend
EXTEntsize
EXtprog
ON | OFF
ON | OFF
ON | OFF
Yes | No | Ask
ON | OFF
ON | OFF
file [ parm ] [
COM ON | OFF ]
filename
FOrtran
HFS
Hints
Halfbright
Qzmod
HPpath
ON | OFF
ON | OFF
ON | OFF
ON | OFF
OFF
OFF
OFF
Ask
OFF
132
ON
OFF
OFF
ON
OFF in same location as
Qedit
OFF
OFF
ON
ON
Increment pub.sys
INTeractive
Justify
linenum {0.001 -
100.0}
ON | OFF
Null | Left | Right
| Center | Format |
Both
Null
LEGEND: MPE version only HP-UX version only
15
Set commands
Keyword Option Value Initial
Justify Indent columns {2 –
8171}
8172}
Justify Start "charlist" {justify restart}
Justify Stop "charlist" {justify break}
Justify
Keep
Keep
Keep
Keep
Keep
Two
Ascii
Bytestream
Cctl
ON | OFF
ON | OFF
ON | OFF
ON | OFF
Checktimestamp ON | OFF
Cobfree ON | OFF
OFF
ON
OFF
OFF
ON
OFF
0
Keep Label nn
Keep LF ON | OFF
Keep
Keep
Limit
Num
[ Free | Save |
Percent pp | Plus
nn ]
ON | OFF
0
OFF
ON
Keep
Language
Variable ON | OFF
Job | Text | Data |
Cob | Cobx [ All ]
| Cobfree | Pas |
Ftn | Spl | Rpg |
Html | XML |
Java | QSL
LEFt [
LEngth
nn
OFF
SPL
LIb
LIMits Colonreq
G | P | S
ON | OFF
LIMits Hold nn
LIMits Proc n
LIMits
LIMits
LISt
Run
Sys
Double
ON | OFF
ON | OFF
ON | OFF first column
S
OFF
10
4
ON
ON
OFF
LISt
LISt
Endstop
Even
ON | OFF
ON | OFF
OFF
OFF
60
LISt LJ nn {lines/screen} 23
LISt
LISt
LISt
LISt
LISt
Name
NEarest
NUm
Odd
Page
LISt
LISt
Record
Title
MAxdata
ON | OFF
ON | OFF
ON | OFF
ON | OFF
ON | OFF
LISt PCL nn {see PCL
LISt QJ codes on page
ON | OFF
ON | OFF
ON | OFF
nn
ON
OFF
ON
OFF
OFF
0
OFF
OFF
ON
Modify
| TAEOFF ] |
Robelle
HPModify |
Robelle
Modify
Modify
Open
(function ^letter
…)
Prompt ON | OFF
Checktimestamp ON | OFF
ON
OFF
Open Defer ON | OFF OFF
LEGEND: MPE version only HP-UX version only
16
Set commands
Keyword Option Value Initial
PATtern
Priority
PROmpt
REDo
OLD | NEW
CS | DS | ES
"string" /
NEW logon priority
or qux/
RIght same as Length
0 skip "xx", 3 = skip 'xx', 4 = skip both}
SHift Up n {as above} 0
{don't check these lines}
"char"
{hyphenation character}
SPell Only "string"
{only check these lines}
SPell STop {release
STAtistics
STRingdelimiters
Suspend
Tabs
Tabs
Tabs HP dictionaries}
ON | OFF
"delimiter list" |
POSIX
ON | OFF
^char {which character}
NULL | STOP
count | column
column ...
ON | OFF
OFF
|\~{}[]_@?!#>%:'"
% : ' "
^I
ON
STOP 8 or STOP 10
TEXt
TEXt
TOtals
UDC
Cobolfixed
Exclusive
ON | OFF
ON | OFF
ON | OFF
ON | OFF | file
[LOCK]
80
OFF
OFF
ON
OFF
Varsub
UNdo
ON | OFF
ON | OFF
VIsual Above n {0 – 9 lines
VIsual ATtachmate above current line}
ON | OFF
OFF
0
OFF
VIsual BELL 'nnn | "char" none
VIsual BElow nn {0 – 99 lines 19 below current line}
VIsual BLockemulation ON | OFF OFF
10000 VIsual BUf nn {2000 – 30000 characters}
VIsual CArry n {0 – 9 lines}
VIsual
VIsual
VIsual
CLEardisplay
Cutcurrent
EDitonopen
ON | OFF
ON | OFF
ON | OFF
1
ON
ON
ON
VIsual ESC 'nnn | "char" none
VIsual FIeld 'nnn | "char" ~
VIsual
VIsual
HALfbright
Hidetags
ON | OFF
ON | OFF
OFF
OFF
VIsual
VIsual
VIsual
VIsual
VIsual
HOme
HOStprompt
Ignorelf
Inschar
Label
ON | OFF
ON | OFF
ON | OFF
ON | OFF
ON | OFF
ON
OFF
OFF
OFF
ON
LEGEND: MPE version only HP-UX version only
17
Set commands
Keyword Option Value Initial
VIsual
VIsual
VIsual
VIsual
LInemode
MArginfixed
MSG
Renum
ON | OFF
ON | OFF
ON | OFF
ON | OFF
OFF
ON
ON
VIsual ROll nn {1 – 10 lines per F2}
VIsual Save ON | OFF | 1 |
FAST
6
OFF
VIsual SCReen ON | OFF
VIsual SI 'nnn | "char" none
VIsual SO 'nnn | "char" none re-identify terminal}
VIsual TAB 'nnn | "char" none
VIsual TAE ON | OFF OFF
VIsual
VIsual
Widen
Wordwrap
[EXCEPT 7]
80 | 76 | OFF
ON | OFF
Visual XX start[/end]
WArnings
WHichcomp
WHichcomp
WHichcomp
WHichcomp
Cobol
Pascal
Fortran
In
ON | OFF
68 | 74 | 85
V | R {R =
Pascal/Robelle}
66 | 77
Sys | Robelle
80
OFF
ON none
V
66
Robelle
Window (options)
{See Windows on
WOrk Block nn {lines/block} 8
WOrk Jumbo ON | OFF ON
WOrk
WOrk
WOrk Size nn {lines/file}
WOrk
Labels
Random
Temp
ON | OFF
ON | OFF
ON | OFF
Work Trailingspaces
WRaparound
ON | OFF
nn | ON | OFF
X ["xx"] dateform
["yy"]
{dateform = ddmmmyy | ccyymmdd | yymmdd | mmddyy | ddmmyy |
DATE}
X
X
Global
List
ON | OFF
ON | OFF
X LOcal ON | OFF
X Null
OFF
OFF
3200
ON
OFF or ON
ON none
OFF
ON
OFF
X
YNone
Tab ON | OFF
ON | OFF
Zip characters
{representing
First, Last, All, left shift, right shift, automodify}
OFF
OFF
[]@{}
PCL code (+1000 =
ASCII, +2000 = A4)
Letter-size (cols/lines) A4 paper (cols/lines)
LEGEND: MPE version only HP-UX version only
18
0 default font
1 Landscape - tiny
80 x <Set List Line>
175 x 60 188 x 58
2 Landscape - Courier 100 x 45
3 Standard Courier 80 x 60
110 x 43
77 x 64
4 Portrait - tiny 132 x 80
5 Courier A4 "tight" 80 x 60
6 Landscape - legaltiny
223 x 60
128 x 85
80 x 60
223 x 60
10 Landscape - 2 columns
87 x 60 x 2
11 Legal - 2 columns 110 x 60 x 2
95 x 58 x 2
110 x 60 x 2
=Calculator Commands
=5*50 {multiply}
=? {Help on calculator}
%External Commands (e.g., MPEX)
set ext mpex.pub.vesoft {configure}
%listf @.pub,access {MPEX command}
MPE/iX NM Compilers
Use the Qcompxl.Qeditjob stream to adjust your NM compilers to read
Qedit files in either MPE or Qedit. Then use these commands to invoke the compilers, using * to compile the currently-open file: cob74xl * cob85xl * ccxl * pasxl * ftnxl *
MPE V Compilers
Use the generic COMPILE command to invoke the MPE/V compiler associated with the language of the file being compiled:
COMPILE file, usl, list, mast, new [ ;info "string" ]
Or use language-specific compiler commands, which take the same parameters as the generic command: spl * {* = current file} pascal 300/414.5 {compile a range of lines} fortran * {see Set Whichcomp} ftn * {FORTRAN 77} cobolii * {COBOL 74} cobol * {see Set Whichcomp} rpg filename,,lp {LP means dev = lp}
PowerHouse
PowerHouse can read Qedit files and then suspend itself. See
* filename
Qdesign: qd
LEGEND: MPE version only HP-UX version only
19
JCWs/Variables to Configure Qedit
On MPE you can set Qedit's environment by setting JCWs before starting
Qedit.
On HP-UX you can set Qedit's environment by exporting and setting environment variables before starting Qedit. If you set RCRTMODEL to 2,
Qedit autodetects your terminal type.
RCRTMODEL – Model of HP terminal
0 haven't checked yet
1 not an HP terminal
2 autodetect
1234 HPterm-type emulators
2645 no labels
2392 etc.
7009 700/92 or 700/94
RPCVERSION – Which terminal emulator? (0 = haven't checked yet, 1 = not an emulator) wXyyy, where w=
X=
0 Display width can be expanded
1 Display width cannot be expanded
2 132-column VGA in Reflection
0 DOS Reflection
1 Macintosh Reflection
2 Windows Reflection
5 QCTerm emulator yyy= Version number (420 = 4.20)
RCRTWIDTH – Usually 80, but can vary from 81 to 512.
RCRTSTRAPSGH – Override G/H straps
G H
0 no no
1 no yes
2 yes no
3 yes yes (no handshake, X.25)
RLABELDEFAULT – Function keys to show when not in visual mode care
1 No labels on terminal 5 F1-F8 labels user
3 Show
QEDITMGRTRACE – 1 means trace configuration files
QEDITCOUNT – Number of lines processed by the last command. (You don't set this, Qedit does.)
ROBELLE – Override Qedit's default location.
How to Run Qedit on MPE
:run qedit.pub.robelle [;info=] [;parm=]
Use "Info=filename" to specify file to edit, or commands to execute, depending on Parm. Combine options by adding the corresponding Parm values. Qedit first uses Qeditmgr.Pub in Sys and Robelle.
Parm= Meaning
Qeditmgr.Pub.logonaccount
2 Execute
4 Execute
8
32
64
Repeat Info= string on every activate
Do not suspend on Exit
Verify Exit with user
LEGEND: MPE version only HP-UX version only
20
128
256
512
Execute only Info= string
Suspend with Basicentry and Info= file
Quit after editing the Info= file
Info= Meaning
filename New file to edit
-c cmd
-p n
Initial command string
Parm= value qedit "-p 64 myfile" qedit "-p 512 -c 'set mod hp'" qedit newfile
Basicentry: Dedicated Qedit on MPE
The Basicentry entry point does an automatic Text and Keep of a file. For an old or new Keep file:
:file edttext=abc
:run qedit.pub.robelle,basicentry
For an old or new Qedit file:
:file edttext=abc;code=111
:run qedit.pub.robelle,basicentry
UDCs and Command Files on MPE
Qedit looks for command files according to Hppath, and for UDCs according to the Set Udc command (Default: no UDCs). Such User
Commands are like those in MPE/iX, including parameters and logic. I/O redirection of User Commands on MPE/iX requires the file Qloadxl.Pub.
Robelle. To execute a Qedit command, put a slash (/) in front of it. To pass the current file as a parameter, use an asterisk (*). (For the last external file, use "$.") See @.Catalog.Robelle for many useful UDCs.
File Names Built into Qedit on MPE
Files Description
Qeditmgr.Pub.Sys Configuration
Qeditmgr.Pub.Robelle Configuration
Qeditmgr[.Pub] file
Optional configuration files
Qedhint.Help.Robelle Hint
Qzmodhlp.Help.Robelle file
Qzmodify help file
Qloadxl.Pub.Robelle Run-time
Qmap.Pub.Robelle Prep...;qmap
Cobol.Q.Robelle
Qedlist
Copies of CM compilers
=$stdlist, rec = -80
Qedcrt =Visual
Qedredo
Hold
Hold0 qscreen
Redo command stack
Explicit Hold file
Implicit Hold file
Copy of Visual mode screen
Lp
Lpa
File Lp; dev = lp
File Lpa; dev = lp
Lpb File Lpb; dev = lp
$record
How to Run Qedit on HP-UX
qedit [–options] [filename]
LEGEND: MPE version only HP-UX version only
21
Qedit determines which directory it is running in and uses that information as the path to its support and configuration files. Set the ROBELLE environment variable to override. Qedit automatically uses
/opt/robelle/qeditmgr and $home/.qeditmgr.
Option Meaning
-c
-s Single
-v
Initial command string file
Verify Exit with user
File Names Built into Qedit on HP-UX
Files Description
file configuration
/opt/robelle/help/qedit Help
/var/tmp/qhold.99999 Explicit Hold file
/var/tmp/qhold.99999.0 Implicit Hold file scratchfiles qscreen Copy of Visual mode screen
/var/tmp/ can be overridden by the TMPDIR environment variable.
LEGEND: MPE version only HP-UX version only
22
Scarica
Pubblicità