• Keine Ergebnisse gefunden

Setting Terminal Proti/es

Im Dokument APPLICATION PROGRAMMER HANDBOOK (Seite 24-31)

The CP-6 system accommodates a number of terminal types (i.e, Diablo 1550, Honeywell VIP 7802, etc.) Use the IBEX DISPLAY PROFILE command to obtain a listing of the available ~rofile types.

Immediately after logging on, you should set your terminal profile to tell the CP-6 system what terminal you are using. After logging on successfully, and receiving the IBEX prompt, use the PROFILE command:

!PROFILE DBL1620

This sets the profile for a Diablo 1620.

!PROFILE VIP7801

sets the profile for a Honeywell VIP 7801.

If you use the same terminal every time you log on (or the same terminal type) you can use the permanent form of the PROFILE command:

!PROFILE VIP7801(PERM)

Now every time you log on to the same account, your profile will be

automatically set. You can also make the PROFILE command part of a setup file, which will be executed every time you log on:

!BUILD SETUPS EDIT B03 HERE

*END

1.000 !PROFILE DBL1620 2.000

To execute the above file every time you log on, use the SETUP command:

!SETUP !XEQ SETUPS

You have now instructed the CP-6 system to execute the file SETUPS every time you log on. This will remain in effect until cleared by the SETUP command, i.e., !SETUP RESET. Of course your setup file may be expanded to perform added functions in addition to setting your profile:

!EDIT SETUPS EDIT B03 HERE

*IN 2

2.000 !DONT ECHO 3.000 !PLATEN W=80

4.000 !TABS 3,11,19,27,37,49,57,63 5.000

You have added some new instructions to your setup file, and now request to see the entire file:

CE55-01 MODULE 2-1

Setting Terminal Profiles

Page 9

*TY 1-99

1.000 !PROFILE DBL1620 2.000 ! DONT ECHO

3.000 !PLATEN W=80

4.000 !TABS 3,11,19,27,49,63

* EOF hit after 4.000

The above setup fiLe wiLL set your terminaL profiLe, inhibit the printing of commands from your setup fiLe at your terminaL, set the pLaten width, and preset tabs at your terminaL each time you Log on.

CESS-01 MODULE 2-1

Setting TerminaL ProfiLes

Pag e 10

AfODULE2-2 Cursor/Printh •• d Positioning

When editing or building a file, a quick and easy way to control the

cursor/printhead positioning is to use the many control sequences available on the CP-6 system. While it' is not necessary to memorize all of the escape and control sequences, you should familiarize yourself with some of the more useful controls. The HELP file is a handy tool to list the different

sequences and their definitions. To access the HELP File, type the following after the exclamation point (!) prompt:

!HELP ESCAPE SEQUENCES

Moving the Cursor

Following are some examples to show you how to use a few of the different control and escape keys. The underscore ( ) denotes the placement of the cursor position.

ESCAPE N

To move the cursor to the end of an input line the <ESC> N sequence is used.

1.000 The rain in_Spain falls

To move the cursor to the end of the line simply type

<ESC> N. The cursor moves to the following position and you can resume typing:

1.000 The rain in Spain falls

CE55-01 MODULE 2-2

Cursor/Printhead Positioning

Page 11

ESCAPE V - Moving to Character 'N'

<ESC> V are the first two characters of a three character sequence. The third character In' is the criteria for the search of the input record. If In' is not found, no action is taken.

Consider the foLLowing exampLe with the cursor at the end of the Line:

1.000 I have one smaLe skiLL which Type <ESC> Ve

The curSOr searches the record and stops at 'e'.

1.000 I have one smaL~ skiLL which

Then type' L' and your mistake is fixed.

1.000 I have one smaLL skiLL which

Tab Stops

Input (TAB) stops are set differentLy on the computer than on a typewriter.

Instead of manuaLLy setting the tabuLation stops, you use a "TABS" command. Up to 32 tabs can be set in a sequence. Tabs can be set after the exclamation point ( ! ) prompt or after the asterisk (*) prompt in EDIT.

• Tabs set after the excLamation point prompt (!) remain effective untiL you log off or untiL you turn the command off with the TABS {OINOIOFF}

command.

ExampLe:

!TABS 10,20,30,40

means set the tab stops at 10, 20, 30, and 40.

• Tabs set after the asterisk prompt (*) in EDIT remain effective until you end the editing session or issue the TABS OFF command.

CE55-01 MODULE 2-2

Cursor/Printhead Positioning

Page 12

ESCAPE I

If your terminal does not have a "TAB" key you have the option of moving the cursor to the next input stop with the <CNTL> I or the <ESC> I sequences.

CONTROL R • Forward Positioning

The <CNTl> R sequence is the opposite of backspacing; it moves the cursor one space to the right without altering any skipped characters.

Example:

1.000 I have one small skill which

By holding down <CNTl> and depressing R three times your terminal will display the following:

1.000 I have one small skill which

CONTROL H . Backspacing

The <BS> key moves the cursor one space to the left. If your terminal does not have a BACKSPACE key simply type <CNTl> H and the cursor will backspace.

Example:

1.000 The rain in sp~in

Hold down <CNTL> and type H twice and the cursor will move accordingly:

1.000 The rain in ~pain

CESS-01 MODULE 2-2

Cursor/Printhead Positioning

Page 13

ESCAPE <RET> -Position to Beginning of Record

After typing a Line and finding that it is not right you can return to the beginning of a Line by typing <ESC><RET>.

ExampLe:

1.000 ! don't like this

Type <ESC><RET>

1.000 I don't Like this

CESS-01

and begin typing the line over.

MODULE 2-2

Cursor/Printhead Positioning

Pag e 14

AfODULE2-3

Im Dokument APPLICATION PROGRAMMER HANDBOOK (Seite 24-31)