Gemini Industries Printer user manual Ji*O

Models: Printer

1 128
Download 128 pages 36.64 Kb
Page 83
Image 83

..

b

I

Putting Gemini to Work

420 1:O:LOCATE 23,4:PRINT “Esc “;

430 6%=fNKEYS:IF 61:“” THEN 430

440 IF WCHR$(l3) THEN 480

450 PRINT 6s;

460 PRINT ” “;

47b s~(I)*6~lI~I+lr6Ot0 430

480

IF

112

THEN

FOR

Jli

TO

IID~~DI+S$(J~:NEXT

JrSTWHRI(27)+SRiO)

 

+CHRI(VAL(Dt)1rDW”

 

 

 

 

 

490

IF

I-2

THEN

STWHRS(27J+SS(OI+CHR$WALWfl1

 

t 1

SO0

IF

I*1

THEN

StWHR1127)+S1(0)

 

 

510

LPRINT

ST$iSTS*“‘:FOR

J=l TO I:SS(J)~““:NEX?

 

J:I*O

520

LOCATE

23,4:PRINT

 

 

 

“; :RETURN

530

LOCATE

23,2:PRINT

“CHRI

“;:STl=“”

 

 

540

G$~INKEYhIF

SW”

THEN

540

 

 

550

IF

SS=CHRS(13)

 

THEN

570

 

 

 

560

PRINT

6Q:STWTI+GS:60TO

 

540

 

 

570

LOCATE

23,2:PRINT

 

‘:LPRINT

CHRSWAL(STO)::STC=““:RETURN

Figure 54. A simple program, written in BAStC, that serves as a rudimentary word processing program.

In Figure 5-4, a very simple word processing software pro- gram is presented, written in BASIC for the IBM-PC. This program leaves some room for improvement, but after all - it’s free. You might apply it to writing short letters or other simple documents.

The display on your CRT monitor may not be anything to write home about, but at least it gives you the capability of writing home! You may also find the use of the control codes is somewhat awkward, but this program has its own menus which will make it easier for you to remember the commands. The program provides three different menus which display your options and prompt you to select specific commands to guide you in your word process- ing. After you have typed in the program and entered RUN follow- ed by a carriage return, the first menu will appear at the bottom of the screen and the cursor should be at the top left corner.

Now you can type in your text and correct any errors you may make. Because of the simplicity of this program, it does have some limitations, which will vary for the different computers. If your com- puter is an IBM-PC, you can type in 23 lines at up to 80 characters per line. Some other computers may not have the capacity to ac- cept this many characters, limiting the amount of text you can type. This program is also restricted in that errors can only be cor- rected on the present line. Once you have hit <return > you can- not go back to the previous line to revise it.

77

Page 83
Image 83
Gemini Industries Printer user manual Ji*O