108. Wordwise pad character snag ~~~~~~~~~~~~~~~~~~~~~~~~~~~ You cannot normally program the character "|" to appear on a red user-definable key. The "|" is taken to stand for , so "|L" is interpreted as , which is ASCII code 12 decimal and clears the screen. What you cannot do is program the keys to actually hold "|" as a separate printable character. This can be a bit of a nuisance on Wordwise, where you might want to hold a useful document heading on a red key, (or on the cursor and keys), and the "|" is needed as the default pad character to make sure a centred heading comes out correctly. You could get round this in several ways. First, you could redefine the pad character at the beginning of the document or key definition, and I often use the backslash "\", which looks like "1/2" in mode 7. Ie, you could put pc\, (pc"\" on Wordwise Plus), and then use "\" as the pad character from then on. Alternatively, you could use something like "\" on your red keys, but before you print or save the document, use Search-and-Replace to change the "\"s to "|"s. Finally, as a more permanent solution, you can define the keys(s) using "\" as the temporary pad character. When you've finished, use Disc Doctor or ADT etc. to edit the memory to change the temporary character to "|", using *MZAP B00 (or MEDIT B00 or whatever command is appropriate), and then save the definitions with *SAVE Keys B00 C00. You can reload the keys at any time with *LOAD Keys, including from the Wordwise menu, or in your disc !BOOT file. If you haven't got Disc Doctor etc., then you can achieve the same effect with the routine below, which can be typed in direct mode if you wish, rather than RUN as a program. NB: If you have a 6502 2nd Processor, then edit and save your key definitions with the Processor switched off, and put leading "F"s on the Hex addresses so that you can successfully reload them when the 2nd Processor is in use. ie. *SAVE Keys FFFF0B00 FFFF0C00. FOR m%=&B00 TO &BFF:IF ?m%=ASC("\") THEN ?m%=ASC("|"):NEXT ELSE NEXT Addendum ~~~~~~~~ The above dealt with the problem of not being able to directly program the "|" character, (which looks like two vertical parallel bars in Mode 7), onto the red keys. Normally the "|" is used to represent "Ctrl", so "|M" is equivalent to Ctrl-M, ie a CR. Dave G7FHJ has pointed out there is a very simple way round this, which I was blissfully unaware of back in 1985! All you have to do is double-up on the character. Eg if you wanted a red key to produce the actual characters "|M" instead of a CR, then try using "||M" instead.