UltraBlankª Documentation Ñ Version 2.08 This program is ShareWare. Go ahead and try it out, but if you want to continue using it, you need to pay me for it. For complete details, see the Standard Plea and Legal Absurdities sections at the end of this document. This document uses the Shaston font, in 8 & 16 point, for readability on the screen. If you want to print this file out, you may change the font to a more legible printer font, but donÕt distribute the changed file. If you have Pointlessª, try Chicago at a convienient pair of sizes (such as 12/24). Installation To use this utility, just copy the file ÒUltraBlankÓ to the System.Setup subdirectory in the System directory on your boot disk(s), and reboot. You MUST use a program which can copy extended files, like the Finder or newer versions of the Orca shell, since UltraBlank is an extended file. You can tell if UltraBlank was installed correctly if an icon of a monitor with a bouncing ball on it appears on the bottom of your screen while the computer is booting. Note: This program requires System 6.0.0 or later to function. If UltraBlank is installed on a boot disk with an older System version than this, UltraBlank will not be installed, and a message to this effect will be displayed on the boot screen. Attention: This program will refuse to be installed by an init installer such as IR, because of the potential problems if this is done. UltraBlank also wonÕt work if copied to the FinderExtras folder. If you didnÕt understand this paragraph, itÕs not something you need to worry about. Just follow the directions on how to install UltraBlank. By the way, to get the Finder to display UltraBlankÕs own icon for the ÒUltraBlankÓ file (and also let the Finder correctly identify UltraBlankÕs preference file), all you have to do is select the ÒUltraBlankÓ file and choose Icon Info (-I) from the Finder. The next time the Finder starts, the new icon will be shown. This only needs to be done once. New Features Summary ¥ New types of ÔcolorÕ for the Bouncing Ball blanking type ¥ Requires System 6 (allowing smaller & cleaner code) ¥ Uses features of System 6.0.1, if present ¥ All known bugs removed ¥ Still uses only about 5.5k in use Please read these docs, but if youÕre in a hurry to see bouncing balls (& are new to UltraBlank 2.x), just copy UltraBlank to the System.Setup folder and reboot. If youÕre updating from an older version, choose the ÒUltraBlankªÓ desk accessory and select ÒBouncing BallÓ under Type. Now press Control & Shift at the same time. ThatÕs it! See the Configuring UltraBlank section for customization instructions. Synopsis & Description This program will blank the screen after a period of time where no keyboard, mouse, or joystick fire-button activity takes place. This length of time may be selected from any GS/OS program as described below in the Configuring UltraBlank section. UltraBlank can blank the screen while any GS/OS or ProDOS 8 program is running (as long as GS/OS was originally booted). The blanking will take place while the computer is in ANY video mode which is available on the GS (super hi-res, text, hi-res, etc.). The only requirement is that the program allow interrupts. See the Usage section below for an easy way to check for this. While the computer is blanked, the currently running program will still continue to run. Configuring UltraBlank The following conventions will be used in this section: Individual options will be shown in italics, and individual selections for an option will be shown in bold. The actual menu option you choose to configure UltraBlank will be shown in ÒquotesÓ. UltraBlank allows you to change the way the menu options to configure UltraBlank appear to you in the new and classic desk accessories menus. They will initially read ÒUltraBlankªÓ, but you can change this to ÒConfigure UltraBlankªÓ or ÒUltraBlankª ConfigureÓ as well. In any case, the menu options are described as ÒUltraBlankªÓ in the following paragraphs, for clarity. NOTE: When using either version of the UltraBlank desk accessory, if the disk you booted is not in a drive when you choose it, then the computer may ask you to insert the boot disk. Just follow the directions on the screen if that happens. Also, UltraBlank saves your settings on the boot disk when you close the graphical ÒUltraBlankªÓ window or press Return in the text version, so that it will know what they are after you reboot. The same prompt to insert the boot disk will appear if the disk is not in a drive at that time (except that you are allowed to cancel from this one). If the boot disk is write protected when the program tries to save, or you cancel from the insert disk dialog, nothing bad will happen, but the settings will revert to what they were before the next time you reboot the computer. There are two ways to configure UltraBlank. If you are currently using a program which supports New Desk Accessories, such as the Finder or ShrinkItGS, just pull down the Apple menu and select ÒUltraBlankªÓ. Otherwise, go to the Classic Desk Accessories menu (by pressing Control-Apple-Esc) and select ÒUltraBlankÓ from that menu. However, GS/OS must be running to configure UltraBlank. When you are using a ProDOS 8 application, you will be told that GS/OS is needed. When youÕre done using the CDA version of ÒUltraBlankÓ, you can press Return to save your changes, or press Escape if you change your mind. In the NDA version, clicking in the close box will save your changes. You can hold down the Option or Control key while closing the window if you change your mind and donÕt want to save your changes; however, any changes you have make will stay in effect until you reboot or shut down. Using either version of the ÒUltraBlankÓ desk accessory, you may select the Delay option, which allows you to choose how long UltraBlank will wait before blanking the screen. In addition, you can use the Type option to select the type of blanking that UltraBlank uses. You can choose between Black Screen, which turns the entire screen and border to black, Bouncing Ball, which keeps the screen black except for a bouncing ball, or Blanking Off, which will completely turn off blanking. There are some options which modify how and when the bouncing ball will appear when bouncing ball is the chosen blanking type. They are described below in the description of the Advanced Options... button. There is one more option available in the CDA version of ÒUltraBlankÓ. This option, Use Ball (Non-SHR), is described later in this section. The graphical (NDA) version of ÒUltraBlankªÓ has several more available options. You can press the About button to read about the program, and press the Help button to read a short description of the non-advanced options. In addition, you can press the Advanced Options... button to show another window with several more options, which will be described in the remainder of this section. The first three advanced options pertain to the Bouncing Ball blanking type. The Color option lets you select what color the bouncing ball will be. You may choose from several possible colors, most of which youÕve probably seen before. The most unusual colors are the five Psychedelic colors. The Psychedelic color choices continuously do the following: Starting with bright blue, the blue starts fading, while at the same time green appears and gets brighter. This goes on until the blue is completely gone and the green is at full brightness. The green then fades to red, then goes back to blue, where the process repeats. Trust me, this looks a lot neater than this description makes it sound, so try it out! The Dreamy, Slow, Normal, Fast, and Warp options refer to how quickly the colors change. The Use Ball (Non-SHR) option lets you choose when and whether you will see a bouncing ball when the computer is displaying something other than super hi-res (text, for example). Never means that you will only see a bouncing ball when the screen in in super hi-res mode. The Only GS Programs option will cause UltraBlank to show a bouncing ball in any video mode, unless a ProDOS 8 program is currently running. When Possible means that UltraBlank will always try to display a bouncing ball. Keep in mind, however, that it may not always be possible to display a bouncing ball, in which case the screen will just go blank. See the Problems & TechStuff section for more specific details. In any event, a bouncing ball will always be used when the screen is currently in super hi-res mode (assuming, of course, that Bouncing Ball is the chosen blanking type). The Sound Effects option controls what you will hear when the ball bounces off of the edges of the screen. You can have None, which does nothing, Blink Border, which (quietly) flashes the border, or Click, which clicks the internal speaker. The last three options will only take effect after the system is restarted. The Boot Animation option lets you choose how fast the boot icon on the splash screen will be animated. You can also choose None to have no boot animation. The Title option allows you to choose the text UltraBlank uses for the Desk Accessory menus. You may choose from the following: UltraBlankª, UltraBlankª Configure, and Configure UltraBlankª. The Style option allows you to choose what style the menu option has in the NDA menu. You can choose to have none, or any combination of underscore, italics, and bold. For example, if you choose UltraBlankª Configure and italic for Title and Style, then you will see the option ÒUltraBlankª ConfigureÓ in the Apple menu. If you press OK, the settings youÕve chosen on the advanced options window will go into effect (but wonÕt be saved until you close the UltraBlankª window). Pressing Cancel will abort any changes youÕve made. Usage You shouldnÕt have to change the way you use any of your programs, since any keyboard, mouse, or joystick fire-button activity you make will keep UltraBlank from blanking the screen. Only after the computer sits without any user activity for the amount of time youÕve chosen will the screen be ÔblankedÕ. Any activity AT ALL will bring the screen back. NOTE: this keypress or mouse movement will be passed on to the currently running program. So, if you donÕt want to have a keypress popping up in your applications, then I suggest you either bump the mouse, or press a key like Shift or Control by itself, which will bring the screen back without any other effect. If you want to quickly blank the screen whenever you want, you can do so by holding down only the Shift and Control keys at the same time until the screen goes blank, then letting up on both keys. This, by the way, is a good way to see if the currently running program allows interrupts, since the screen wonÕt go blank unless it does. By the way: You wonÕt be able to manually blank the screen if youÕve turned off blanking. Problems & TechStuff The only application that I know of which definitely doesnÕt work with UltraBlank is AppleWorks 2.0 with Alan BirdÕs Autoworks installed. I have also received a report that it doesnÕt work with the game Zany Golf. Current versions of ProSEL 16 continuously set the border color while youÕre using it, so the border wonÕt go black when the screen is blanked. As far as I know, this is the only problem with ProSEL, though. There are a few things that you should keep in mind when using this program. First, you MUST disable any screen blanking features of other programs you wish to use, including any other screen blanking programs youÕve loaded as Desk Accessories, Inits, or CDevs. Failure to do so can result in the screen not being able to come back after more than one program blanks the screen! If, while the screen is blanked, a program changes some colors or SCBs on the super hi-res screen, or changes to or from SHR without using QuickDraw II, then the screen may become at least partially visible. UltraBlank is smart enough not to mess up the screen trying to restore it to the previous state, but doesnÕt detect these changes after itÕs already blanked the screen. If a program switches to/from SHR ÔnormallyÕ (i.e. using QuickDraw II) then the screen will be restored to itÕs previous state, so that QuickDraw II can switch modes cleanly. An example of when this may occur is if a GS program quits while the screen is blanked. After this happens, the countdown to blanking the screen is restarted, as if you had pressed a key or something. Under System 6.0.1, the screen will be restored whenever the system requests it (by using the systemSaysForceUndim request). In general, this happens whenever the system thinks something ÒimportantÓ happened. Many of these events are listed in the Sound CP. If the current program makes changes to the SHR screen while the bouncing ball is being displayed, then ÔglitchesÕ may appear after the screen is restored. These will usually be small black spots, but may also appear to be small parts of the screen that werenÕt updated. These are nothing to worry about, and will go away the next time that portion of the screen is updated. The method that UltraBlank uses to decide whether to attempt to display a bouncing ball when the screen isnÕt in SHR is as follows: For Only GS Programs, it determines whether the current OS is GS/OS. If so, it then determines whether the memory where the SHR screen resides is in use. If not, the memory is (temporarily) allocated and it then proceeds to display the bouncing ball. If so, it determines whether the QuickDraw II toolset is active. If it is, it then displays the bouncing ball. If not, then the plain black screen is used. For the When Possible option, if the current O/S is ProDOS 8, then the bouncing ball is always displayed, under the assumption that a P8 program either wonÕt be using that memory, or it will be used for display purposes. Since it is allocated to the OS when ProDOS 8 is started, it wonÕt be allocated by the Memory Manager. I havenÕt discovered any programs which have a problem with this, so I have made it the default. If you find such a program, please let me know, so I can see about working around it. The accuracy of the blanking intervals given is based on the assumption that interrupts are allowed to take place the majority of the time the computer is running. Any time interrupts are disabled, the internal countdown to blanking the screen is temporarily halted. If you have chosen the ÔBouncing BallÕ blanking type and the ball is currently bouncing, the ball will also stop moving every time interrupts are disabled. Normally, the system doesnÕt do this for extended periods of time, so this slowdown wonÕt be noticable. Also, blanking will not occur at all if and while interrupts are completely disabled by the current program. I have received reports that some misbehaving programs are disconnecting UltraBlank. If the screen wonÕt blank, and you believe UltraBlank has been disconnected, you can reconnect it by choosing ÒUltraBlankÓ from the Classic Desk Accessories menu (even while using ProDOS 8). You donÕt need to make any changes; UltraBlank is reconnected as soon as you choose the option from the menu. I also reconnect UltraBlank whenever you enter or leave any GS application that supports New Desk Accessories. The only other problem IÕm aware of is that UltraBlank is disconnected if you press Control-Reset. GS/OS applications usually reboot the system, so this isnÕt a problem, but some ProDOS 8 programs allow Reset to be non-fatal, such as most AppleSoft BASIC programs. In this case, I recommend that you exit the application youÕre currently using and shut down (or reboot), since there may be problems with other GS/OS applications. If you do want to reconnect UltraBlank, the method described above will work. Even though this program takes about 20k on disk, the memory used while the program is in operation is only around 4.5k for the program itself, and including the overhead of tool patches of 1-1.1k, the total memory usage is around 5.5k. The remaining space is in modules which are only used when either UltraBlank desk accessory is active, as well as information used while booting, which is not kept in memory. This program places a ÔhiddenÕ file in the System:System.Setup folder of your boot disk named ÒUltraBlankCnfgÓ with a filetype of $5A (Preferences File) which holds the current settings for UltraBlank. If you want to return UltraBlank to itÕs Ôfactory defaultÕ settings, you just need to delete this file. UltraBlank attempts to display an icon of a monitor (with a bouncing ball in it, of course :) while itÕs being installed. If thereÕs a problem accessing itÕs resources, or the system version is too low (less than System 6.x), then it will display a small Ôsplash-screenÕ above the box which says ÒWelcome to the IIgsÓ. If UltraBlank encounters some other problem while loading, then the icon will have a red ÒXÓ through it, to indicate that it wasnÕt loaded. Standard Plea This program is ShareWare, so if you find yourself using it, please help me out by paying something for it, so I can justify spending the time to update this and write other nifty pieces of software. People who send me at least $15 (U.S.) per computer, along with their vital information (Name, Address, # of computers, America Online screen name [if applicable], any other Internet-accessable names, etc.), and refer to ÒUltraBlank Version 2.08Ó will be assigned a registration number and will be entitled to receive one US-mailed update of this program at no charge. Normally, I will only mail major updates to people. I will send any minor versions to registered users on America Online or over the Internet, if I have an e-mail name to send to. Registered users of previous versions of UltraBlank need not pay any more for this version (but, of course, may if they want to). Please send bug reports, suggestions for enhancements, and your money to: Robert S. Claney 2370-E Shady Oaks Rd Marshalltown, IA 50158-9575 I can also be reached at the following locations: America Online: BobClaney Internet: bobclaney@aol.com claney@iastate.edu txa84@isuvax.iastate.edu IÕm more likely to help you out with any problems if youÕre a registered user, but let me know what problems you have in any case, so I can strive to make this program as good as it can be. Legal Absurdities This document is Copyright © 1991-1994 by Robert S. Claney, and the accompanying software is Copyright © 1990-1994 by Robert S. Claney. All rights reserved. Non-registered users are granted a limited license to try out this software to see whether it is useful to them. Continued usage requires registering this software by following the instructions in the Standard Plea section. In any case, this software may only be used for non-commercial purposes on a single machine only, unless specifically authorized in writing by me. Site licenses are available at a reduced price for multiple machines at a single location. Rates are also available for individuals wanting to use UltraBlankª on more than one computer. Contact me by (e-)mail for more information. The accompanying software may be distributed as long as the following conditions are met: [1] This documentation (UltraBlank.Docs) and the history file (UltraBlank.Hist) must accompany the program (UltraBlank). [2] Neither the documentation, the history, or the program is modified in any way, other than compression by ShrinkItª or some other widely available Apple¨ compression program. (This includes modifying the resources.) [3] No charge is made for it, other than minimal copying and media charges, or normal network charges, if online. [4] It is not incorporated into or with any other software, without my written permission. Except in this section, marks identifying trademarks (ª,¨) are generally not used, in the intrests of readability. This document was prepared by ShadowWrite 1.3.3. (Including the invisible text :) Thank you, AndrŽ! Sorry, I havenÕt snail-mailed the ÒThank youÓ to you; I hope this suffices. UltraBlankª is a trademark of Robert S. Claney. Apple¨, ProDOS¨, and Apple IIGS¨ are registered trademarks, and GS/OSª, Finderª, QuickDrawª, and ADBª are trademarks, of Apple Computer, Inc. GNO/MEª is a trademark of Procyon Enterprises Inc. Orcaª is a trademark of The Byte Works, Inc. Pointlessª is a trademark of WestCode Software. ShrinkItª is a trademark of Andrew E. Nicholas. Any other names are trademarks or registered trademarks of their respective companies. So there. (Not so here (bad invisible joke (Why are you reading it? (Help, IÕm trapped in a LITHP parser (bad () joke (and really bad LISP joke :)))))) If you're reading this, you're probably viewing it from the text screen. Naughty! Go at once to a graphical TeachText viewer to see these docs as they were written.