P6+ - by Les Kneeling P6+ is a printer control program, specifically for the NEC P6+. It can be used either as a desk accessory or as a .prg depending on the name it is given. Calling it P6+.ACC makes it into a desk accessory, anything else will make it a program. The sections are: Font Clicking on the arrow buttons will cycle through the fonts available on the P6+. As the font changes the pitch will be updated to the first size available for that font. Pitch: Clicking on the arrows cycles through the pitches available for the currently selected font. The proportional fonts only have one pitch so the display will not change. Unlike the front panel of the printer the program does not show the pitches created by combination with condensed mode. Page Length: The page length can be set from 0 to 99 lines. The actual length of the page in inches will depend on the lines per inch setting. The default setting (click on the number itself) is 69. Lines per inch: Only six and eight lines per inch are available. Clicking on the arrows will toggle between the two. The default is 6. Left Margin: The left margin can be set from 0 to 80. The default is 0. Justification: The four types of justification are cycled through when the arrows are clicked. The default is left justify. The arrows mean: <-<- left justify -><- centre ->-> right justify <--> full out Tab Size: The tab size can be set from 0 to 10. The default is 10. Style: This is a panel of buttons which can all be de-selected by clicking on the background panel. Clicking on the buttons selects the appropriate style. Skip Over: When the button is selected the skip over perforation is activated. The skip is one inch. Quiet When the button is selected the printer is placed in quite mode, otherwise it is normal. UniDir When the button is selected the printer will print uniderectionally, otherwise it will print bidirectionally. All of these settings will be sent to the printer when the Set button is clicked. The remaining buttons have immediate effect. Paper Control: The up arrow moves the printing position one line up. FF performs a form feed. The down arrow moves the printing position one line down. Reset: This sends the reset command to the printer. Print a file This button brings up a file selector. choose a text file from the selector and click on OK to print it. Save The current settings will be saved in a file called P6+.SYS in the root directory of the boot disk in the case of a desk accessory, or the disk from which the program was launched. Once this file has been created, it will be automatically loaded and used next time. Set Send the current settings on the dialog to the printer. Exit Quit the program without sending the codes to the printer. I have provided a complete listing of the accessory so that you can modify it to produce a version for your own printer. The original was written in Laser C. You will probably find that if you compile the program with another compiler the automatic switchover from accessory to program will not work. I would suggest that you set the ACCESSORY variable to TRUE or FALSE instead of calling get_operation_mode().