eric@ulysses.homer.nj.att.com (Eric Lavitsky[hmm]) (03/20/87)
Well, here it is. I've touched it up a bit since Perry and I originally put this together, I hope everyone likes it. It's something I've wanted ever since I got my machine and ever since I read Andy Hertzfeld's quote about Amiga windows... Well Andy, now what do you have to say? :-) Eric ---------- # This is a shell archive. Remove anything before this line, # then unpack it by saving it in a file and typing "sh file". # # Wrapped by hector!eric on Thu Mar 19 21:45:42 EST 1987 # Contents: README dropcloth.uu echo x - README sed 's/^@//' > "README" <<'@//E*O*F README//' 03/18/87 DropCloth 1.0 by Eric Lavitsky/Perry Kivolowitz DropCloth (tm) is an enhancement for your WorkBench. The original functional program was written in one all night hacking session on February 8, 1987 by Eric Lavitsky and Perry Kivolowitz. DropCloth replaces the standard blank WorkBench backdrop with a pattern. DropCloth will only run with the WorkBench up, and will properly refresh the WorkBench screen when icons are moved. To use DropCloth from the CLI, type: DropCloth nn ... or Run DropCloth nn where nn is a number between 0 and 64. The number specifies the intensity of the pattern used for the backdrop, 0 will render nothing into the display while 64 will render a solid backdrop. If you don't specify a number, DropCloth will default to 32. Experiment and have fun! DropCloth opens a window in the upper right hand corner of the WorkBench screen. The window cannot be depth arranged, is only as tall as the screen title bar and cannot be resized. To close DropCloth, click on the close box in the DropCloth Window. When DropCloth is running, you will lose some memory that the system uses to create backup areas or "scratchpads" for the WorkBench screen when DropCloth is run - all the memory will be recovered when you exit DropCloth. The program has never been tested with MoreRows, but we believe it will work with it. DropCloth may also impact WorkBench preformance - note how a delay is introduced from the time you select an icon to the time the icon becomes highlited or active when DropCloth is running. Windows may also be redrawn at a slightly slower rate while the system reconstructs the newly exposed pattern areas on the WorkBench backdrop. It is up to you to choose between the nice patterned display or the slightly better preformance/memory use. Please note that DropCloth is not public domain, but may be freely distributed by anyone so long as this message remains intact with the distribution. DropCloth remains the property of ASDG and may not be sold for profit. Feel free to send me bug reports and I'll try and figure out what's going on. Eric Lavitsky ARPA: Lavitsky@Rutgers UUCP: ulysses!eric, topaz!eric, well!eric BIX: asdg DropCloth is a trademark of ASDG Inc. #include <standard.disclaimer> This utility is provided "as is". ASDG, Eric Lavitsky and Perry Kivolowitz make no warantees, either expressed or implied with respect to the utility described above. @//E*O*F README// chmod u=rw,g=rw,o=r README echo x - dropcloth.uu sed 's/^@//' > "dropcloth.uu" <<'@//E*O*F dropcloth.uu//' begin 664 dropcloth M #\P # ( 0I : $ /I $*4[Z!S1# M;W!Y<FEG:'0@,3DX-R!">2!!4T1'($EN8V]R<&]R871E9"X* # X+49E8G)U M87)Y+3$Y.#< &)Y($5R:6,@3&%V:71S:WD@86YD(%!E<G)Y($MI=F]L;W=I M='H 3E7_^"M\ (/_X#*T ! AO%"!M PO* $3KD :Z6$\K0/_X M2'H#/$ZY /2EA/2H!F"D*G3KD QP6$](>@,L3KD ]*6$]*@&<*0J=. MN0 #'!83T*G2'H#&DZY .3E!/(\ ! 9@I"ITZY ,<%A/('D ! M< 0* /<@'AH2/! !D$ZY %,$J 9@Y.N@,60J=.N0 #'!83R!Y MC"%Y 3 !H('D ",(F@ +C I Q(P"/ !F"!Y C")H "XP*0 . M2,"0O HCP 90O+?_X3KH"XEA/3KD ]F+SD "43KD !!\6$\O M.0 )1.N@)T6$\K0/_\(&W__"/H P & (&W__ BH 8 'R\M__PO.0 M )1.N0 $)103R!M__P(J !\@;?_\".@ 0 ?(&W__ CH 8 'R\M__PO M.0 )1.N0 $&Y03TAZ MA(>/\6+SD !43KD _H3^\ #"/ !A$'Y M !<")M__PL:0 ,+4@ ""!M__PB: ,$WP P =+SD &4+SD &80J=" MIR!M__PO* ,3KD ! 43^\ %"\Y E$ZY 0B%A/3KD _$0J=(> #H M3KD \X4$\CP 8QG/$AX .@O.0 8Q.N0 $$Q03TAX %(> #H+SD M &,3KD !!<3^\ #$AX .@O.0 8Q.N0 #W)03TZY &.$J 9A@@.0 M 8B N0 9 O $ZY /_%A/8-XO.0 81(>/\6+SD !43KD _H3^\ M#$ZY /9B\Y E$ZY 0?%A/(&W__")H Q"J0 ((&W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N[_?"!O M 1,[P # @L;(!23N[^O$SO P !"QL@%I.[O_*(&\ !"QL@%I.[O^((&\ M!"QL@%I.[O]V3.\# $+&R 6D[N_] ^P J (( "2 M H *P "Z R -H #X !" 5H %F !G@ <X M 'D "+ CP )$ "4 FH * "E IP *T "S@ M M@ +D #& T@ -6 #7@ VH .$ #F@ ZX .X # MP !"P 1: &3 !F :: &J@ $D ! T .( #R M !$ 18 $> !+@ 30 %* !8 6X &$ !F <@ M '> ![@ ?0 (4 "&@ C8 )8 "9 GH *. "I@ M JP *^ "R MX ,2 #0@ U -R #?@ Y0 .H $ M'@ !"8 0\ $: !+ 3 $Q@ !,P 3< %- !3H 5$ M %4 !5H 5D %;@ !78 6" %F@ !:( 6N %O !<( M 74 %X !>8 7N %^ !@ 8* &$@ !A@ 8@ &+ M!D( :. 'J@ /R #Z@ %P ( @H B(**C 0.!@R$CH:#"P$ M) XN!B8\'#04/AXV%@,C"RL!(0DI,Q,[&S$1.1D/+P<G#2T%)3\?-Q<]'345 M 0 J / %H X *__\ ( ( M"@ $X@ 0 M!/P 4. %'@ (" @(" @(" @,# P,# @(" @(" @(" @(" @(" @ M(""00$! 0$! 0$! 0$! 0$! # P,# P,# P,#$! 0$! 0$ )"0D)"0D! 0$! M 0$! 0$! 0$! 0$! 0$! 4! 0$! 0 H*"@H*"@(" @(" @(" @(" @(" @(" M @("0$! 0" M % ^P ' M $0 !( 3 '8 "8 G * #\@ ^L ! $ #\D0 end @//E*O*F dropcloth.uu// chmod u=rw,g=rw,o=r dropcloth.uu exit 0 -- ARPA: Lavitsky@RED.RUTGERS.EDU UUCP: ...ulysses!eric ...caip!topaz!eric ...hplabs!well!lavitsky
davidlo@madvax.UUCP (03/21/87)
The dropcloth looks neat. Thank you However, when I close a window, the dropcloth did not refresh. Is that a bug or a feature? By the way, I was running on 1.1. Was it the problem? -- David Lo (415)939-2400 /\ o Varian Instruments, 2700 Mitchell Drive, Walnut Creek, CA 94598 \/ {ptsfa,lll-crg,zehntel,dual,amd,fortune,ista,rtech,csi,normac}varian!davidlo
eric@ulysses.UUCP (03/23/87)
Guess I should have put that in the release notes, DropCloth will only work properly under 1.2 - the next version will most certainly check for 1.2's presence... Eric -- ARPA: Lavitsky@RED.RUTGERS.EDU UUCP: ...ulysses!eric ...caip!topaz!eric ...hplabs!well!lavitsky
keithd@cadovax.UUCP (03/24/87)
In article <2346@ulysses.homer.nj.att.com> eric@ulysses.UUCP (Eric Lavitsky[hmm]) writes: >Guess I should have put that in the release notes, DropCloth will >only work properly under 1.2 - the next version will most certainly >check for 1.2's presence... >Eric Has anyone figured out how to get the dropcloth to run without having to have a CLI window around? If I do a 'run dropcloth' from startup-sequence, I can't 'endcli' apparently because the background task still has the console window 'locked'? I have the same problem from a CLI invoked from the workbench, and I haven't been able to get dropcloth to run from an icon. I'd like to put it in the startup sequence, but as I said, can't get the main CLI window to go away. Kind of diminishes the usefullness of the dropcloth program I'd say. Keith Doyle # {ucbvax,ihnp4,decvax}!trwrb!cadovax!keithd # cadovax!keithd@ucla-locus.arpa
eric@topaz.UUCP (03/25/87)
Well, you could use the background run program that Rob Peck wrote - I believe it was recently reposted to the net. If you don't have it, I could mail you a uuencoded binary (or the source, whichever you prefer). Then you can run DropCloth (and other things) from the startup-sequence and close the original CLI window... Eric -- ARPA: LAVITSKY@RUTGERS or LAVITSKY@RED.RUTGERS.EDU UUCP: ...topaz!eric ...hplabs!well!lavitsky ...ulysses!eric
kjb@nancy.UUCP (03/26/87)
[-------------------------------------------------------] Assuming you're going to open a new cli window in your startup sequence, you can put "run dropcloth" and/or "run foo" in s file, and use the "from" option when you open the new cli window. Of course, then you won't be able to close *that* window, but you'll have no trouble closing the main window. This works for what I want to do, but the run-in-background program Eric mentioned sounds good too. Could someone email it to me? Thanks, Ken UUCP {ihnp4|allegra|decvax}!brunix!kjb ARPA kjb%cs.brown.edu@relay.cs.net CSNET kjb@cs.brown.edu U.S. MAIL Ken Basye Box 1910 Dept. of Computer Science Brown University Providence, RI 02912
rap@dana.UUCP (03/27/87)
In article <1449@cadovax.UUCP>, keithd@cadovax.UUCP (Keith Doyle) writes: > > Has anyone figured out how to get the dropcloth to run without having to > have a CLI window around? If I do a 'run dropcloth' from startup-sequence, > I can't 'endcli' apparently because the background task still has the > console window 'locked'? I have the same problem from a CLI invoked > from the workbench, and I haven't been able to get dropcloth to run > from an icon. > > I'd like to put it in the startup sequence, but as I said, can't get the > main CLI window to go away. Kind of diminishes the usefullness of the > dropcloth program I'd say. > (I haven't tried dropcloth yet, but here's what worked under 1.1 for programs such as CLOCK and CALCULATOR from the Wbench distribution disk). The reason the old cli won't go away from startup-sequence is that you have spawned a process that needs to point back to that console's control structures (the Process structure and the CLI structure, as I recall). There is a way around it, but only if your program DOES NOT DO ANYTHING WITH STDIN OR STDOUT. The correct way to specify (at least under 1.1... I'm writing this from memory and don't have the Amiga here) in the startup sequence is: RUN > NIL: < NIL: YOURPROGRAM > NIL: < NIL: or RUN TO NIL: FROM NIL: YOURPROGRAM TO NIL: FROM NIL: This disconnects a lot of stuff from the originating CLI and lets the startup CLI window close down, with just your program running on the workbench. From a program that DOES require CLI input, another program can be spawned using the Execute function of AmigaDOS, such that when the originating program closes down, the window can go away, even though the program has started. Use the exact same string as shown above, but this time in the Execute function. I forget, but it may also be necessary to pass in a handle to NIL: (my notes are at home... this stuff almost made it into the Prog. Guide, but not quite). struct FileHandle *fh; fh = Open("NIL:",MODE_NEWFILE); /* (check the mode, memory again) */ success = Execute(" that-very-same-string ", fh, fh); Close(fh); /* now go away */ If I recall correctly, using Execute("string",0,0) leaves you with the same problem as initially reported (cannot close down the originating CLI) because the 0,0 causes stdin and stdout to be passed to the spawned process, whether it needs it or not. Anyway, hope this helps. Rob Peck hplabs!dana!rap
phillip@cbmvax.UUCP (03/27/87)
in article <13835@brunix.UUCP>, kjb@nancy (Ken Basye) says: > > [-------------------------------------------------------] > > Assuming you're going to open a new cli window in your startup > sequence, you can put "run dropcloth" and/or "run foo" in s file, and > use the "from" option when you open the new cli window. Of course, > then you won't be able to close *that* window, but you'll have no > trouble closing the main window. This works for what I want to do, > but the run-in-background program Eric mentioned sounds good too. > Could someone email it to me? Thanks, Ken Better yet, have Eric implement something like Leo's _main and forget about a special program needed to make it run independent. ============================================================================== Phillip Lindsay - Commodore Business Machines - Amiga Technical Support UUCP: {ihnp4|seismo|caip}!cbmvax!phillip - Phone: (215) 431-9180 No warranty is implied or otherwise given in the form of suggestion or example. Any opinions found here are of my making. /* eof */
blgardne@esunix.UUCP (03/27/87)
in article <10398@topaz.RUTGERS.EDU>, eric@topaz.UUCP says: > Well, you could use the background run program that Rob Peck wrote - > I believe it was recently reposted to the net. If you don't have it, > I could mail you a uuencoded binary (or the source, whichever you > prefer). Then you can run DropCloth (and other things) from the > startup-sequence and close the original CLI window... Is there a RunBackground program that will follow the normal cli search path? It's kind of annoying to have to spell out RunBackground df0:c/foobar, it would be nice to just say RunBackground foobar. -- Blaine Gardner @ Evans & Sutherland UUCP Address: {ihnp4,decvax}!decwrl!esunix!blgardne Alternate: {ihnp4,seismo}!utah-cs!utah-gr!uplherc!esunix!blgardne
rap@dana.UUCP (03/30/87)
In article <1449@cadovax.UUCP>, keithd@cadovax.UUCP (Keith Doyle) writes: > > Has anyone figured out how to get the dropcloth to run without having to > have a CLI window around? If I do a 'run dropcloth' from startup-sequence, > I can't 'endcli' apparently because the background task still has the > console window 'locked'? I have the same problem from a CLI invoked > from the workbench, and I haven't been able to get dropcloth to run > from an icon. > > I'd like to put it in the startup sequence, but as I said, can't get the > main CLI window to go away. Kind of diminishes the usefullness of the > dropcloth program I'd say. > (I haven't tried dropcloth yet, but here's what worked under 1.1 for programs such as CLOCK and CALCULATOR from the Wbench distribution disk). The reason the old cli won't go away from startup-sequence is that you have spawned a process that needs to point back to that console's control structures (the Process structure and the CLI structure, as I recall). There is a way around it, but only if your program DOES NOT DO ANYTHING WITH STDIN OR STDOUT. The correct way to specify (at least under 1.1... I'm writing this from memory and don't have the Amiga here) in the startup sequence is: RUN > NIL: < NIL: YOURPROGRAM > NIL: < NIL: or RUN TO NIL: FROM NIL: YOURPROGRAM TO NIL: FROM NIL: This disconnects a lot of stuff from the originating CLI and lets the startup CLI window close down, with just your program running on the workbench. From a program that DOES require CLI input, another program can be spawned using the Execute function of AmigaDOS, such that when the originating program closes down, the window can go away, even though the program has started. Use the exact same string as shown above, but this time in the Execute function. I forget, but it may also be necessary to pass in a handle to NIL: (my notes are at home... this stuff almost made it into the Prog. Guide, but not quite). struct FileHandle *fh; fh = Open("NIL:",MODE_NEWFILE); /* (check the mode, memory again) */ success = Execute(" the-above-mentioned-string ", fh, fh); Close(fh); /* now go away */ If I recall correctly, using Execute("string",0,0) leaves you with the same problem as initially reported (cannot close down the originating CLI) because the 0,0 causes stdin and stdout to be passed to the spawned process, whether it needs it or not. Anyway, hope this helps. Rob Peck hplabs!dana!rap
fnf@mcdsun.UUCP (04/02/87)
NOTE: Rob is having problems posting from his system and has asked me to post this for him, please respond to hplabs!dana!rap. ------------------------------------------------------------ In article <1449@cadovax.UUCP>, keithd@cadovax.UUCP (Keith Doyle) writes: > > Has anyone figured out how to get the dropcloth to run without having to > have a CLI window around? If I do a 'run dropcloth' from startup-sequence, > I can't 'endcli' apparently because the background task still has the > console window 'locked'? I have the same problem from a CLI invoked > from the workbench, and I haven't been able to get dropcloth to run > from an icon. > > I'd like to put it in the startup sequence, but as I said, can't get the > main CLI window to go away. Kind of diminishes the usefullness of the > dropcloth program I'd say. > (I haven't tried dropcloth yet, but here's what worked under 1.1 for programs such as CLOCK and CALCULATOR from the Wbench distribution disk). The reason the old cli won't go away from startup-sequence is that you have spawned a process that needs to point back to that console's control structures (the Process structure and the CLI structure, as I recall). There is a way around it, but only if your program DOES NOT DO ANYTHING WITH STDIN OR STDOUT. The correct way to specify (at least under 1.1... I'm writing this from memory and don't have the Amiga here) in the startup sequence is: RUN > NIL: < NIL: YOURPROGRAM > NIL: < NIL: or RUN TO NIL: FROM NIL: YOURPROGRAM TO NIL: FROM NIL: This disconnects a lot of stuff from the originating CLI and lets the startup CLI window close down, with just your program running on the workbench. From a program that DOES require CLI input, another program can be spawned using the Execute function of AmigaDOS, such that when the originating program closes down, the window can go away, even though the program has started. Use the exact same string as shown above, but this time in the Execute function. I forget, but it may also be necessary to pass in a handle to NIL: (my notes are at home... this stuff almost made it into the Prog. Guide, but not quite). struct FileHandle *fh; fh = Open("NIL:",MODE_NEWFILE); /* (check the mode, memory again) */ success = Execute(" the-above-mentioned-string ", fh, fh); Close(fh); /* now go away */ If I recall correctly, using Execute("string",0,0) leaves you with the same problem as initially reported (cannot close down the originating CLI) because the 0,0 causes stdin and stdout to be passed to the spawned process, whether it needs it or not. Anyway, hope this helps. Rob Peck hplabs!dana!rap -- = Drug tests; just say *NO*! (Moto just announced new drug testing program) = = Fred Fish Motorola Computer Division, 3013 S 52nd St, Tempe, Az 85282 USA = = seismo!noao!mcdsun!fnf (602) 438-5976 =
peter@sugar.UUCP (Peter da Silva) (07/17/87)
Is the source to DropCloth available? It's cute, but a little annoying. It would be much more pleasant to the eye if you could put an image in there... or just 2x1 halftoning instead of 1x1. I seem to recall seeing it on the net. -- -- Peter da Silva `-_-' ...!seismo!soma!uhnix1!sugar!peter (I said, NO PHOTOS!)