S K E T C H Screen Editor for Graphics Kaypros Version 1.0 by Eric Mausolf Seattle, Wa. I wrote this program in order to sketch out how I might want a display screen in a program to look before I had to sit down and write code. I use SKETCH to fiddle with the graphics until I get the screen looking how I want it to look. I then copy down the coordinates of what I see on the screen in order to recreate it in a program. Having to write down coordinates isn't very convenient, but at least it beats the trial and error of writing code and running it to see what happens. Of course, this program can also be used as a deluxe Etch-a-Sketch. SKETCH has two primary methods of operation. While in Erase or Draw modes, you can erase or draw lines by moving a pixel-sized cursor around the screen with the arrow keys, or use some of the special drawing commands available in these two modes. In Write mode, you can write regular characters on the screen. These characters can be set to any combination of the video attri- butes available on graphics-capable Kaypros (blinking, underlined, etc.). COORDINATES: Coordinates of the cursor are shown on the status line. In Erase or Draw modes, the coordinates shown are the vertical and hori- zontal coordinates according to the system built into the Kaypro hardware. They are the coordinates sent out directly to the Kaypro terminal to draw pixels or lines.In Write mode, the coordinates shown are the X and Y coordinates as they are referenced by Turbo Pascal (top left corner is (1,1)). This system allows coordinates to be quickly copied down so the graphics can be quickly translated into program code (in Turbo at any rate). If you want to see sample graphics access procedures, look at the source list for this program. DRAW AND ERASE MODES: These modes draw and erase pixels and lines. The following commands are used under both of these modes. Under Draw Mode, the commands draw lines and pixels. Under Erase Mode, the commands erase lines and pixels. NOTE that the commands that require the user to enter coordinates will not accept coordinates that are not on the screen, and you must enter legal coordinates before the program will proceed. The commands (all one letter) available are: Shifts to Erase Mode. Shifts to Draw Mode. Shifts to Write Mode (detailed below). Memorizes the current position of the cursor. Returns cursor to the position previously memorized. Draws or Erases (depending on Mode) a line to the memorized position. Jumps the cursor to the position you are prompted to supply.

Plots (draws or erases) a line to the coordinates you supply. Draws or erases a circle at a radius you specify from the cursor. Clears the screen (gives you a New screen). Quit to system. WRITE MODE: This mode allows you to write regular characters along with the graphics created in Draw and Erase modes. These characters can be set to any combination of the video attributes available on the Kaypro. All commands in Write mode are preceeded by pressing the escape key. Thus, pressing B would cause all further characters pressed to blink on the screen. Commands are cumulative, so that pressing U along with B would characters to be printed as both blinking and under- lined. This means that if you want to go back to just blinking, you have to press N to set the attributes back to normal, and then press B to re-engage the blinking attribute. The cursor can be freely moved about the screen with the arrow keys. To erase, you can either back over characters with the DEL key or overwrite them with spaces. NOTE: The commands available in Erase and Draw modes are NOT available in Write mode. To access these commands (including Quit and New Screen) you must go back to Erase or Draw mode by pressing the escape key twice. Go back to Write Mode by pressing W. The commands available in Write Mode are: plus: Print characters dim (half-intensity). Print characters blinking. Print characters underlined. Print characters in inverse (White) video. Print characters in dim inverse (Gray) video. Go to Erase and Draw Modes. -------- end of SKETCH description --------