[net.micro.apple] 40 to 80 to 40 cols SOLUTION!

archer@hsi.UUCP (Yrrag Rehcra) (10/07/86)

munch, munch <<IS LINE WITH YOUR MESSAGE ***


Many thanks to 

	ihnp4!ucbvax!c160-az@zooey.berkeley.edu (Donald Tsang)
	noao!hao!hplabs!tektronix!reed!kamath (Sean Kamath)

(in case they didn't get my response) whom e-mailed me their advice to my
40/80/40 column query (where I didn't know the correct intstruction to
deactivate the 80 column text card from **within** an Applesoft BASIC program).

The best solution follows, and coincidentally this topic was covered in
the September issue of Nibble magazine (the first time I'd ever read Nibble,
and hereby recommend it to any Apple II user).

Assume the  current state of your Apple 80 column text card is that it is
inactive, the screen is in 40 column mode, INVERSE and FLASH statements work
normally.  The following statements in effect turn on your 80 column text card
and sets the mode from 40 to 80 columns.  INVERSE statements work as normal,
but be forewarned that FLASH will produce garbage in ordinary INVERSE format:

	100 PRINT CHR$(4); "PR#3"
	110 PRINT CHR$(18)

After this you can print a wide list of data.  Optionally, of course, it may
be best to call HOME immediately afterwards before printing out in 80 column
mode.  And, before deactivating the 80 column card and returning to 40 column
mode, call HOME again.  (OK, OK... enough jokes about E.T. here...)

To deactivate the 80 column text card and return to 40 column mode, the
following statements are necessary:

	200 PRINT CHR$(21)
	210 PRINT CHR$(4); "PR#0"



All in all, it is pretty simple really, but unless you bought an 80 column
text card as an accessory (it comes with IIc 's), the code above is rarely
documented.  Of course, everyone tells you to ESC-CTRL-Q to deactivate the
card, but that is from the keyboard only!

Hope this was a useful discussion to some other than myself!

-- 

		Garry Archer Esq.		ihnp4!hsi!archer
		Health Systems International
		New Haven, CT  06511
		USA