CLI and screens by F.Delacroix. --------------- These few programs were written by myself and are designed for those,like I,who use a CLI that is opened on another screen than the WorkBench screen. They are short,written is assembly,residentable,and the source is provided, so take a look at them.Remember:I'm not responsible for any damage to any data of any kind.This being clear,let's see the commands: CLIPalette 1.0: --------------- This program will change your CLI screen colors. Such programs already exist but most of them only take in account the front screen.That may fail some- times.This program really searches for the screen the CLI is opened on, being the active screen or not doesn't matter. Syntax: CLIPalette R0G0B0 R1G1B1 R2G2B2 R3G3B3. Rx,Gx,Bx are respectively the red,green and blue components of the color x. They are hexadecimal digits.This version only handles 4-color screens,let me know if you want more.But you could alter the source yourself. I use this program in my Shell-Startup script: CLIPalette aaa 000 fff 57c, in order to have 2.0-like colors on my CLI screen,while keeping the 1.3 colors for the Workbench screen (the 1.3 icons look ugly with 2.0 colors). CloseWB 1.0: ------------ This is direct application of the corresponding intuition.library function. The workbench screen will close,thus freeing some memory,on condition that no windows are open on it. Some similar programs did close the active win- dow before closing the screen itself.Isn't it a bit dangerous ?? FixWindowPtr 1.0: ----------------- This command is very simple.In any process structure,like a CLI,there is a pointer called WindowPtr.This is a pointer to a window,to which any system requester will be directed.If this is 0,the WB screen will be used. If it is -1,no requester will appear.This program was made to make it point to the window the CLI is currently using. It is useful when using another screen than the WorkBench screen.Indeed,requesters like 'Volume xxxx has a read/write error' are enough irritating,they don't need to bring the workbenck screen back to front ! This is normally part of your Shell- Startup file.Once again,the real window will be searched,and not the ac- tive window. OpenWB 1.0: ----------- This is the direct transcription of the intuition.library function.If closed, the workbench screen will re-open on condition that sufficient memory is available.How could it be more complex ? WBenchToBack 1.0 / WBenchToFront 1.0: ------------------------------------- These two commands are intended for use especially in script files.They use the corresponding intuition.library functions.There is no mystery. Remember:these programs are public domain,so are the sources.Do whatever you want with them.I'm not responsible for anything.Any mail is welcome at: Frédéric DELACROIX 5 rue d'Artres 59269 QUERENAING FRANCE. Pour les mangeurs de grenouilles: CLI and screens par F.Delacroix. --------------- J'ai écrit ces petits programmes pour ceux qui,comme moi,utilisent un CLI ouvert sur un autre écran que celui du WorkBench.Ils sont courts,écrits en assembleurs,peuvent être rendus résidents et le source est fourni,alors jetez-y un coup d'oeil.Attention:Je ne suis aucunement responsable d'aucune perte de données d'aucune sorte.Voyons ces commandes: CLIPalette 1.0: --------------- Ce programme change les couleurs de l'écran de votre CLI.De tels programmes existent déjà mais la plupart ne prennent en compte que l'écran qui se trou- ve devant tous les autres.Cela plante parfois.Ce programme cherche réellement l'écran du CLI. Qu'il soit l'écran actif ou pas n'a pas d'importance. Syntaxe: CLIPalette R0G0B0 R1G1B1 R2G2B2 R3G3B3. Rx,Gx,Bx sont respectivement les composantes rouge,verte et bleue de la cou- leur x,ce sont des chiffres hexadécimaux.Cette version ne s'occupe que des écrans à 4 couleurs,faites-moi savoir si vous en voulez plus.Mais vous pour- riez modifier le source vous-même. J'utilise ce programme dans mon Shell-Startup: CLIPalette aaa 000 fff 57c, pour avoir des couleurs qui ressemblent à celles du WB 2.0 .Ces couleurs ne concernent que l'écran du CLI car les icônes du 1.3 sont plutôt moches avec ces couleurs. CloseWB 1.0: ------------ Ceci est l'application directe de la fonction d'intuition.library correspon- dante.L'écran du WorkBench se fermera,libérant ainsi de la mémoire,à condi- tion qu'il n'y ait aucune fenêtre ouverte dessus.Certains programmes fer- maient d'abord la fenêtre active.N'est-ce pas un peu dangereux ?? FixWindowPtr 1.0: ----------------- Cette commande est très simple.Dans toute structure Process,comme un CLI, il y a un pointeur nommé FixWindowPtr.C'est un pointeur sur une fenêtre, vers laquelle tous les system requesters seront dirigés.Si c'est 0,l'écran du Workbench est utilisé,si c'est -1,aucun requester n'apparaît.Ce program- me a été écrit pour le faire pointer sur la fenêtre que le CLI utilise réel- lement.C'est utile lorsqu'on utilise un autre écran que celui du WorkBench. En effet,les requesters du genre 'Volume xxxx has a read/write error' sont assez énervants,pas besoin de ramener l'écran du Workbench en avant ! Nor- malement vous incluez cette commande dans votre fichier Shell-Startup.Une fois de plus,c'est la fenêtre réelle qui est prise en compte et pas la fenêtre active. OpenWB 1.0: ----------- C'est la transciption directe de la fonction correspondante d'intuition. library. S'il était fermé,l'écran du WorkBench se rouvrira,à condition qu'il y suffisamment de mémoire disponible.Comment faire plus compliqué ? WBenchToBack 1.0 / WBenchToFront 1.0: ------------------------------------- Ces commandes sont surtout faites pour être utilisées dans les fichiers scripts.Ce sont les fonctions correspondantes d'intuition.library. Il n'y a pas de mystère. N'oubliez pas:ces programmes sont des domaines publics,ainsi que les sources. Faites-en ce que vous voulez,je ne suis responsable de rien. Ecrivez-moi: Frédéric DELACROIX 5 rue d'Artres 59269 QUERENAING FRANCE