ain@j.cc.purdue.edu (Patrick White) (05/18/88)
Submitted by: joe@ut-sally (Joe Hitchens) Summary: Blanks screen after 90 sec. -- takes approx. 250 bytes. Poster Boy: Patrick White (ain@j.cc.purdue.edu) Archive Name: binaries/amiga/volume5/blank2.bin.sh.Z tested but uncompiled. NOTES: Ran the binary -- it works, but didn't try compiling it. -- Pat White (co-moderator comp.sources/binaries.amiga) ARPA/UUCP: j.cc.purdue.edu!ain BITNET: PATWHITE@PURCCVM PHONE: (317) 743-8421 U.S. Mail: 320 Brown St. apt. 406, West Lafayette, IN 47906 ======================================== # This is a shell archive. # Remove everything above and including the cut line. # Then run the rest of the file through sh. #----cut here-----cut here-----cut here-----cut here----# #!/bin/sh # shar: Shell Archiver # Run the following text with /bin/sh to create: # readme # blank2.uue # blank2.info.uue # This archive created: Mon May 16 10:52:00 1988 # By: Patrick White (PUCC Land, USA) echo shar: extracting readme '(2149 characters)' cat << \SHAR_EOF > readme From: joe@vixen.uucp (Joe Hitchens) Blanker2 -- by Joe Hitchens -- v1.27.88 A screen blanking program that turns the screen black after 90 seconds of keyboard and mouse inactivity. Adds a tiny event handler to the input.handler event stream and watches the events go by. If it doesn't see a mouse or keyboard event after 900 timer events (10 per second), it turns the screen black by turning off DMA for rasters and the copper. If run from the CLI, a message will be printed out saying how long the blank time is set to. If run from (my cool) icon, nothing will appear to happen, but 90 seconds later you will be able to tell if it installed itself ok. This program cannot be removed once installed, so if you have a problem with it, all I can say is "Stop using it". I realize that it would be a lot nicer to have a true task running in the background and message ports between the handler and the task so the handler could be programmed and removed from the outside, but, I opted to not do this because as it is, Blanker2 will take up less than 256 bytes of ram, and doesn't require any more when it attempts to blank the screen (via opening black screens, etc.). It's tiny and it does the job. I think that may be worth alot to most users. This program is PUBLIC DOMAIN. Do me a favor though, and leave my name on it so I can get a little recognition. Usage: blanker2 [n] n = number of seconds of inactivity after which blanking occurs. if n is not given, a default of 90 is used. NOTE: blanker2 need not be 'run'. It will install an event handler and leave it behind when exiting. Also, the CLI window it may have been run from can be closed after installation. Exit codes 0 Normal exit, everything went fine. 1 CreatePort() failed. 2 CreateStdIO() failed. 3 OpenDevice() on "input.device" failed. 4 Memory Allocation for Interrupt structure failed. 5 Memory Allocation for Blanker structure failed. 6 Memory Allocation for event handler code space failed. Please report any bugs you may find to me, so that I can try to fix them. j.h. joe@sally.utexas.edu SHAR_EOF if test 2149 -ne "`wc -c readme`" then echo shar: error transmitting readme '(should have been 2149 characters)' fi echo shar: extracting blank2.uue '(9606 characters)' cat << \SHAR_EOF > blank2.uue From joe@vixen.UUCP Fri Feb 12 23:12:49 1988 Posted-Date: Fri, 12 Feb 88 21:52:23 CST Received-Date: Fri, 12 Feb 88 23:12:45 CST Received: by sally.utexas.edu (5.54/5.51) id AA24042; Fri, 12 Feb 88 23:12:45 CST Received: by vixen.uucp (3.2/SMI-3.2) id AA00143; Fri, 12 Feb 88 21:52:23 CST Date: Fri, 12 Feb 88 21:52:23 CST From: joe@vixen.uucp (Joe Hitchens) Message-Id: <8802130352.AA00143@vixen.uucp> To: joe@sally.UUCP Subject: blank2.uue Status: R begin 644 Blanker2 M #\P # ( 7- IP $ /I %S4[Z!#!( MYP# 8010CTYU3E4 $CG # D;0 ()FT #' $"H !": #), &9C)2JP $ M("L !+"K AM&C/\ 8 W_"60GD W_& 0JL !"=\ 0 ,( I,WPP 3EU. M=0R3 F8:0JL !$JK QG##/\@8 W_"60JL #" *8-8,DP %F&D*K M 1*JP ,9PPS_(& -_PED*K P@"F"T( I@L$Y5_^0,K0 $ "&\L(&T M#"\H 1.N@+V6$]R"DZZ$PXK0/_L#*T *_^QL""M\ "O_L8 @K? M X3_[$*G2'H"/$ZZ$[)03RM __Q*K?_\9@I(> !3KH1=%A/+RW__$ZZ%'Y8 M3RM __A*K?_X9A0O+?_\3KH4#%A/2'@ DZZ$4Q83T*G+RW_^$*G2'H!_4ZZ M%71/[P 02H!G'B\M__A.NA146$\O+?_\3KH3UEA/2'@ TZZ$1983TAY $ M $AX !9.NA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Q5\ M /\ ""5\_____P 4< 0*@ /+P!.N@$J6$](> B+PI.N@$*4$\D7TY=3G4B M;P $+&R"6D[N_IX@+P $+&R"6D[N_K9.50 2'@ ,"\M A.N@ :4$].74YU M3E4 "\M A.N@!,6$].74YU3E4 "\*2JT "&8(< D7TY=3G5(>0 ! $O M+0 ,3KH 8%!/)$!*@&8$< !@X!5\ 4 "#5M X $B5M @ #B *8,I.50 M+PHD;0 (( IF!B1?3EU.=15\ /\ ""5\_____P 4)7S_____ !AP # J !(O M "\*3KH 1E!/8-).^@ "3.\ P $+&R"6D[N_SI(YP, (F\ #"QL@EI.KOXX M3-\ P$YU3OH B)O 0L;():3N[^VBQL@EI.[O]\3OH B)O 0@+P (+&R" M6D[N_RX@+P $+&R"6D[N_K @;P $+&R"6D[N_HP@;P $((A8D$*H 0A2 ( M3G4@;P $3.\" 0 ((B\ $"QL@EI.[OY$+&R"6B)O 0@+P (3N[]V")O 0L M;():3N[^F")O 0L;():3N[^ADSO , !"QL@EI.[O[.(&\ !"QL@EI.[OZ M3.\# $+&R"FD[N_Z @;P $+&R"FD[N_Z8@;P $+&R"FD[N_[( ^P M ! 0 !*8 #\@ ^H "4,#$R,S0U-C<X.6%B8V1E9@ M " @(" @(" @(# P,# P(" @(" @(" @(" @(" @(" @D$! 0$! 0$! 0$! M0$! 0 P,# P,# P,# Q 0$! 0$! "0D)"0D) 0$! 0$! 0$! 0$! 0$! 0$! M 0% 0$! 0$ *"@H*"@H" @(" @(" @(" @(" @(" @(" D! 0$ @ M $ 0 ! 0 $ M 0( ! M M M M M M M M !0 _( /K % 0 _( end SHAR_EOF if test 9606 -ne "`wc -c blank2.uue`" then echo shar: error transmitting blank2.uue '(should have been 9606 characters)' fi echo shar: extracting blank2.info.uue '(1124 characters)' cat << \SHAR_EOF > blank2.info.uue begin 644 Blanker2.info MXQ 0 #$ %0 & , 0" ER @6T M W@ ( " Q !4 @ ! M/@ # #_______^ /_______X ________@ #^ #^ /W_____ MWX _?__^/_?@ #]___@_]^ /W__X#_WX _?_^,/_?@ #]__CP_]^ /W_ MX #_WX _?^/\/_?@ #]^ / /]^ /[_____OX ________@ #_ZO____^ M /_______X ______]5@ "JJJJJJJJ M #_______@ /______^ _______X #X /@ /@ !P ^ ^ M ? #X #X '\ /@ /@ !SP ^ ^ </ #X #X '_\ /@ /@!P#P ^ M ^!_P_P#X #\ ?@ /______^ ]5?____X M "^ !55555554 '_______P #$ %0 " $_4 , M /_______X ________@ #_______^ /X /X _ ?@ #\ M !^ /P 'X _ ?@ #\ !^ /P 'X _ ? M@ #\ !^ /P 'X _@ _@ #_______^ /_J_____X ____ M____@ #______U6 *JJJJJJJH M/______^ _______X #_______@ /______^ _______X #______ M_@ /______^ _______X #_______@ /______^ _______X #__ M_____@ /______^ _______X #U5_____@ +X 9 %55555550 ?_______ /__ end SHAR_EOF if test 1124 -ne "`wc -c blank2.info.uue`" then echo shar: error transmitting blank2.info.uue '(should have been 1124 characters)' fi # End of shell archive exit 0