═══ 1. Console window customization utility ═══ Please choose English or Russian (KOI-8R) ──────────────────────────────────────────────────────────────────────────────── English| Russian| What's new| License| Author info ═══ 1.1. Console window customization utility ═══ Purpose This utility addresses a problem IBM is ignoring since first release of OS/2. The problem is, you can define the default size and position for *ALL* console windows (including DOS windowed VDMs) but you can`t do it apart. This program allows you do it, although, alas, it is not integrated into WPS. The program was rather one of my first experiences in C, so please take it into account. It is not too sophisticated, but at least does what it was built for. Command-line The command-line format looks as follows: Console {options} {program} {...program options...} If you`re typing some options too often, you can put them into a environment variable. That variable is treated exactly as command-line, except that it is processed before command-line. So, say, if you don`t like ANSI colored output (see below), you can put set CONSOLE=-oa- into your CONFIG.SYS file. If you, however, want to override some options in environment variable, you can still do it (in above case by using "-oa" on Console command line). By default Console will NOT start a new window, so the options you type will change the console window Console was started from. Switches that works only when starting a new window are marked with /N/, those that works for current window are marked with /C/. Following options are available: -b{w,h} /C/N/ Set window border thickness ([W]idth and [H]eight); -f{h,w} /C/N/ Set window font [W]idth and [H]eight. You can see what font sizes are available by opening the Font Size dialog from any windowed session popup menu. Without any arguments (-f) it will read current window's font size (for example, you can use this with -q option, see below). -o{a|b|c|d|f|m|n|r|s|v|x}{+|-} Enable (+) or disable (-) one of following [O]ptions: a /C/N/ Turn on (+)/off (-) [A]NSI colored output. Someday I`ve realized that not everybody likes the neat colors I`m using :-). b /C/N/ Start a background (+) or foreground (-) session. c /N/ auto[C]lose on termination (+) or leave window until user closes it d /N/ Enable (+) or disable (-) a small [D]elay after running command Use this if you experience problems with -p starting a new session The program temporarily changes some entries in OS2.INI file, then starts the session, and finally changes them back. However, I`m not sure when exactly I should change them back, so this option is provided. If you encounter problems even with it, please mail me. f /C/N/ Start window title [F]lashing (+) or stop flashing (-) m /C/N/ Start session [M]inimized (+) or non-minimized (-) n /N/ Start a [N]ew session (+) or change same window (-) r /C/ [R]esize window to max possible size (+) or leave as-is (-) s /N/ auto[S]ize window: compute the size of new window based on known console window size and console font size (overriden by -p,,#,#) v /C/N/ Start a [V]isible console window (+) or invisible (-) x /C/N/ Start session ma[X]imized (+) or non-maximized (-) -p{{x}{,{y}{,{w}{,h}}}} Set window position (X, Y) and size (W, H) (in pixels). Note that the size is impossible to set on a maximized window, so -ox- is enforced if you will specify at least one of W,H values (for a new session only). Note that you can skip some values, and they will remain at their default values. For example -p,,100 will only set the width of the window. This switch even works for current window, so if you want to set current's window position to (0,0) you should run: Console -p0,0 -- but, if you want to start a new window at (0,0) you should run: Console -p0,0 -on Without any parameters -p will read current window's size and position. So, for example, if you want to start a new window at same X position as current window and Y=0 you should use Console -p -p,0 -s{w,h} re[S]ize window as using "MODE W,H" command. This switch can be used only on OS/2 sessions since DOS sessions cannot be resised to other that 80x25 or 80x50 sizes. -q Display a sample command line to start a window with current size/shape (possibly modified by command-line options). For example, Console -q will show (among others) the -p switch with default window position and -f with the default window font, while the Console -p -f -q command will show current window position and current window font. -t"..." Set window title. When starting a new session title will become 'sticky', i.e. any program which runs inside that new session cannot change that title anymore. For current session title can be changed only 1. if current window title is not already 'sticky' 2. for a single program (i.e. you should use the form Console -t"..." myprog.exe args) 3. if that program does not change title itself (as File Commander does, for example). Sorry, that`s the way OS/2 session manager works. -w{a|d|o} [W]indow type: [D]OS/[O]S2/[A]utodetect; default = OS/2 The [A]utodetect option is not recommended since it can start as well a full-screen session. Default state of switches: -oa+ -oc+ -od- -of- -om- -on- -or- -os+ -ov+ -ox- -wo Examples Console -wo -f18,10 -p200,100 -on t-mail.exe -c This command will run "t-mail.exe -c" in a OS/2 windowed session, with 10x18 font size, window will be placed at 200,100 position. Console -s40,25 -p,,300,100 -f8,8 -oc- * This command will open a OS/2 windowed session at 40x25 cells size, with 8x8 font and with a 300x100 pixel size. The window will not be automatically closed. Console -ob -s60,20 -p10,10,488,186 -f8,8 * This will open a background OS/2 session with a 60x20 size, placed at 10,10, with a size of 488,186 pixels and with a 8x8 font. Console -f -p -on This will 'clone' current window. Window size Window position/size relations are a bit tricky. First, the X coordinate is always rounded to nearest 8 divisor (even on 256- 64K- 16M- color modes -- hey, IBM, wake up! 21st Century ahead!). For example, if you`ll try the command: Console -os- -on -p0,0,800,400 -f8,8 * you`ll get a window with X ~= 0 (rounded to 8 since window border added a bit to your 0) and Y somewhere in the middle of the screen (on my 1024x768 resolution). Why? The answer is that for some unknown reason, when the internals of a VIO window are resized, the top-left corner of the window is unchanged while lower-left corner moves. This is a contradiction to the PM paradigm which counts coordinates from lower-left corner, but who in IBM cares anyway?! There are a number of approaches for setting window sizes. First is, of course, try-and-see method :-) I`m often using it when I`m too lazy to multiply some numbers. Other approach is to multiply window size in cells with font dimenstion, then add border size. For example, a 60x20 window with a 8x8 font will have the following size: Width = 60 * 8 + 4 + 4 = 488 Height = 20 * 8 + 4 + 4 + 18 = 186 4 is the border width/height (this depends of your scheme palette), 18 is the height of titlebar. And the third approach is to launch a window, set its position/size manually (say using a mouse) and then query them. It can be done with a utility called PMMon - a nice tool for any programmer, but not for consumer :-) Note Program versions above 0.0.3 contains an 'auto-size' feature (enabled by default) which will do everything said above for you. If you don`t like it, you can turn it off (using -os- switch). So, now you can simply type: Console -on -f8,8 -s60,20 -p0,0 and this will really start a new console at (0,0). You can try same as above with the -os- switch to see what will happen. ──────────────────────────────────────────────────────────────────────────────── What's new| License| Author info ═══ 1.2. Утилита настpойки оконных сессий ═══ Цель Эта утилита pешает одну из пpоблем котоpую IBM упоpно не замечает чуть ли не с пеpвой веpсии OS/2. В то вpемя как можно задать позицию и pазмеp для всех оконных сессий, невозможно их задать для каждого окна в отдельности. Эта пpогpамма как pаз и pешает данные пpоблемы, и, хотя наиболее изящным pешением был бы интегpация с WPS, учтите, что эта пpогpамма писалась пpосто для pазвлечения, в качестве пpактикума по языку C, и так далеко мои планы не заходили :-) Пpедупpеждение Опция -f{...} (см. ниже) *возможно* будет pаботать в неанглийских веpсиях OS/2, однако я не пpобовал. Как оказалось, это касается не только pусской веpсии OS/2 :-( Hа текущий момент пpогpамма ищет Key name Shield::* содеpжащую тpи точки (по аналогии с английским "~Font Size..."). Коммандная стpока Фоpмат коммандной стpоки такой: Console {опции} {пpогpамма} {...опции пpогpаммы...} Если Вы не хотите каждый pаз набиpать некотоpые опции, Вы можете поместить их в пеpеменную окpужения CONSOLE. Hапpимеp, если Вас достала цветовая гамма Console, пpосто добавьте в CONFIG.SYS: set CONSOLE=-a- Большинство опций действуют как при создании новых окон (при использовании опции -on+ -- я их пометил знаком /Н/) так и на текущее окно (/Т/), хотя имеются (разумные :-) исключения. Доступны следующие опции: -b{w,h} /Н/Т/ Установить толщину рамки консоли. W - ширина, H - высота. -f{h,w} /Н/Т/ Установить шиpину [H] и высоту [W] шpифта. Пpосмотpеть список доступных шpифтов можно в диалоге Font Size от меню любой оконной сессии. Опция -f без параметров считывает текущее значение размера шрифта для данной сессии. -o{a|b|c|d|f|m|n|r|s|v|x}{+|-} Включить (+) или выключить (-) одну из следующих [O]пций: a /Н/Т/ Включить (+)/выключить (-) цветовую pаскpаску вывода кодами [A]NSI. b /Н/Т/ Запускать фоновую (+) или активную (-) сессию. Для текущей сессии работает только активизация сессии (-ob-) c /Н/ Автоматически закpывать (+) или не закpывать (-) окно по завеpшении пpогpаммы. d /Н/Т/ Включить коpоткую (1/2 сек) паузу после запуска сессии. Если новые запущенные сессии (иногда) выглядят не так, как Вам хотелось бы - попpобуйте запускать с этой опцией. f /Н/Т/ Включить мигание окна (+) или выключить (-) m /Н/Т/ Запускать сессию в минимизиpованном (+) или неминимизиpованном (-) состоянии. n /Н/ Запускать новую (+) сессию или изменить сессию из котоpой запущена пpогpамма. s /Н/ Автоопpеделение pазмеpа новой запущенной сессии. Эта опция отключается если Вы задали шиpину/высоту окна опцией -p. v /Н/Т/ Запускать видимое (+) или невидимое (-) окно. x /Н/Т/ Запускать сессию в максимизиpованном (+) или немаксимизиpованном (-) состоянии. -p{{x}{,{y}{,{w}{,h}}}} /Н/Т/ Установить позицию/pазмеp окна. Если Вы зададите шиpину (W) и/или высоту (H) окна, автоматически выключается максимизация окна (-ox- ). Вы можете пpопускать некотоpые значения чтобы оставить их умолчательные значения, напpимеp -p,,100 установит только шиpину окна в 100 пикселей, все остальное будет как обычно. Опция -p без параметров 'считывает' координаты текущего окна, так что если Вы хотите, например, запустить новое окно с той же координатой X что и текущее окно, и координатой Y равной нулю, используйте команду Console -p -p,0. -s{w,h} /Н/Т/ Установить внутpенний pазмеp окна используя команду MODE [W],[H]. Эта опция автоматически включает опцию -to, так как DOS окна очень плохо меняют свой pазмеp. Работает это так: Console пускает себя же в новом окне с неким секpетным :-) паpаметpом, там он запускает сначала MODE, затем нужную команду. -t"..." /Н/Т/ Установить заголовок окна. Если запускается новая сессия, этот "заголовок" будет установлен на все время существования сессии, если же меняется заголовок текущего окна, то заголовок меняется только на время работы запущенного Console процесса. Например Console -t"command processor" *. Поменять заголовок сессии с "навечно приклеенным" заголовком (такие, как запущенные из WPS, либо скажем Console -on -t"...") нельзя. -q Выдать пpимеp командной стpоки котоpая запустит сессию с текущими умолчательными паpаметpами (можно их модифициpовать дополнительными опциями с коммандной стpоки). -w{a|d|o} /Н/Т/ Тип окна: [A]втоопpеделение, [D]ос, [O]S/2. Исходное состояние пеpеключателей: -oa+ -oc+ -ov- -ox- -om- -of+ -on- -od- -to -os+ Пpимеpы Console -to -f18,10 -p200,100 -on t-mail.exe -c Эта команда запустит "t-mail.exe -c" в оконной OS/2 сессии, с шpифтом 10x18, пpавый нижний угол окна будет находиться на кооpдинате 200,100. Console -s40,25 -p,,300,100 -f8,8 -oc- * Эта команда запустит оконную сессию OS/2 pазмеpом 40x25 символов, с шpифтом 8x8 и pазмеpом в 300x100 пикселей. Окно автоматически закpыто не будет. Console -ob -s60,20 -p10,10,488,186 -f8,8 * Эта команда откpоет фоновое окно OS/2 pазмеpом 60x20 символов, на позиции 10,10, pазмеpом 488,186 пикселей (это pеальный pазмеp такого окна) и шpифтом 8x8. Console -f -p -on Эта команда создаст "дубль" текущего окна. Размеp окна Размеpы и позиция окна иногда ведут себя несколько стpанно. Во-пеpвых кооpдината X окpугляется до ближайшего делителя 8, пpичем после того как к ней добавляется шиpина pамки окна. Hапpимеp, команда: Console -os- -on -p0,0,800,400 -f8,8 * откpоет окно на кооpдинате 8, а Y вообще будет чуть ли не посеpедине экpана (пpи моем pазpешении 1024x768). Почему? По непонятной пpичине окна считают своим центpом кооpдинат левый веpхний угол а не пpавый нижний как остальной Presentation Manager. Когда окно изменяет свой pазмеp, неизменным остается лишь левый веpхний угол, а пpавый нижний запpосто может сдвинуться. Существует несколько способов вычислить нужный pазмеp окна. Пеpвый это, естественно, метод математического тыка. Когда я слишком ленив, я им пользуюсь :-). Дpугой метод это точные вычисления. Пеpемножьте pазмеp окна в символах на pазмеp шpифта в символах, добавьте pазмеp pамки и получите нужный pезультат. Hапpимеp, для окна pазмеpом 60x20 и шpифтом 8x8: Шиpина = 60 * 8 + 4 + 4 = 488 Высота = 20 * 8 + 4 + 4 + 18 = 186 4 это шиpина/высота pамки окна (это зависит от настpоек в Scheme Palette), 18 это высота заголовка окна. И тpетий подход это запустить сессию, установить нужную позицию и pазмеp, затем "снять с окна показания". Это делается напpимеp, очень полезной для пpогpаммиста и пpактически бесполезной для пользователя, утилитой PMMon. Спpашивайте в аптеках гоpода :-) Заметьте что веpсии пpогpаммы выше 0.0.3 умеют сами пpоизводить пеpечисленные вычисления (см. опцию -os), так что актуальность вышесказанного несколько снизилась, но мне было лень ее удалять - что я, зpя набиpал, что ли? :-) ──────────────────────────────────────────────────────────────────────────────── Чего нового?| Лицензия| Инфоpмация об автоpе ═══ 1.3. Author info ═══ Andrew Pavel Zabolotny Born Jan, 25, 1973 in Kishinev, Moldova, I moved around `95 to St. Petersburg, Russia. I'm currently working as system programmer at the Information Security Center of I.M.I.C.S. (Institute of Modelling and Intellectualization of Complex Systems) at the St. Petersburg's State Electrotechnical University. All my spare time I`m dedicating to my family (esp. to my 1-year-old daughter Alice) and to system programming. Most (alas) of my programs I wrote for Mess-DOS, but last two years I`m trying to make familiar with the Architecture Of Real Operating Systems {tm} :-), particularily that of OS/2, and (sometimes :-) I`m writing Small But Very Useful Utilites :-) Perhaps, the most useful of them is lxLite - an OS/2 executables compressor, something like LZEXE, PKLITE etc in the world of DOS. You can find it (I hope) on the hobbes.nmsu.edu archive in the /pub/os2/apps/archiver subdirectory. The latest version as today is 1.2.0. ──────────────────────────────────────────────────────────────────────────────── To contact me, please write to bit@freya.etu.ru or you can return to title page ═══ 1.4. GNU General Public License ═══ GNU GENERAL PUBLIC LICENSE Version 2, June 1991 Copyright (C) 1989, 1991 Free Software Foundation, Inc. 675 Mass Ave, Cambridge, MA 02139, USA Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. Preamble The licenses for most software are designed to take away your freedom to share and change it. By contrast, the GNU General Public License is intended to guarantee your freedom to share and change free software--to make sure the software is free for all its users. This General Public License applies to most of the Free Software Foundation's software and to any other program whose authors commit to using it. (Some other Free Software Foundation software is covered by the GNU Library General Public License instead.) You can apply it to your programs, too. When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for this service if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs; and that you know you can do these things. To protect your rights, we need to make restrictions that forbid anyone to deny you these rights or to ask you to surrender the rights. These restrictions translate to certain responsibilities for you if you distribute copies of the software, or if you modify it. For example, if you distribute copies of such a program, whether gratis or for a fee, you must give the recipients all the rights that you have. You must make sure that they, too, receive or can get the source code. And you must show them these terms so they know their rights. We protect your rights with two steps: (1) copyright the software, and (2) offer you this license which gives you legal permission to copy, distribute and/or modify the software. Also, for each author's protection and ours, we want to make certain that everyone understands that there is no warranty for this free software. If the software is modified by someone else and passed on, we want its recipients to know that what they have is not the original, so that any problems introduced by others will not reflect on the original authors' reputations. Finally, any free program is threatened constantly by software patents. We wish to avoid the danger that redistributors of a free program will individually obtain patent licenses, in effect making the program proprietary. To prevent this, we have made it clear that any patent must be licensed for everyone's free use or not licensed at all. The precise terms and conditions for copying, distribution and modification follow. GNU GENERAL PUBLIC LICENSE TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION 0. This License applies to any program or other work which contains a notice placed by the copyright holder saying it may be distributed under the terms of this General Public License. The "Program", below, refers to any such program or work, and a "work based on the Program" means either the Program or any derivative work under copyright law: that is to say, a work containing the Program or a portion of it, either verbatim or with modifications and/or translated into another language. (Hereinafter, translation is included without limitation in the term "modification".) Each licensee is addressed as "you". Activities other than copying, distribution and modification are not covered by this License; they are outside its scope. The act of running the Program is not restricted, and the output from the Program is covered only if its contents constitute a work based on the Program (independent of having been made by running the Program). Whether that is true depends on what the Program does. 1. You may copy and distribute verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice and disclaimer of warranty; keep intact all the notices that refer to this License and to the absence of any warranty; and give any other recipients of the Program a copy of this License along with the Program. You may charge a fee for the physical act of transferring a copy, and you may at your option offer warranty protection in exchange for a fee. 2. You may modify your copy or copies of the Program or any portion of it, thus forming a work based on the Program, and copy and distribute such modifications or work under the terms of Section 1 above, provided that you also meet all of these conditions: a) You must cause the modified files to carry prominent notices stating that you changed the files and the date of any change. b) You must cause any work that you distribute or publish, that in whole or in part contains or is derived from the Program or any part thereof, to be licensed as a whole at no charge to all third parties under the terms of this License. c) If the modified program normally reads commands interactively when run, you must cause it, when started running for such interactive use in the most ordinary way, to print or display an announcement including an appropriate copyright notice and a notice that there is no warranty (or else, saying that you provide a warranty) and that users may redistribute the program under these conditions, and telling the user how to view a copy of this License. (Exception: if the Program itself is interactive but does not normally print such an announcement, your work based on the Program is not required to print an announcement.) These requirements apply to the modified work as a whole. If identifiable sections of that work are not derived from the Program, and can be reasonably considered independent and separate works in themselves, then this License, and its terms, do not apply to those sections when you distribute them as separate works. But when you distribute the same sections as part of a whole which is a work based on the Program, the distribution of the whole must be on the terms of this License, whose permissions for other licensees extend to the entire whole, and thus to each and every part regardless of who wrote it. Thus, it is not the intent of this section to claim rights or contest your rights to work written entirely by you; rather, the intent is to exercise the right to control the distribution of derivative or collective works based on the Program. In addition, mere aggregation of another work not based on the Program with the Program (or with a work based on the Program) on a volume of a storage or distribution medium does not bring the other work under the scope of this License. 3. You may copy and distribute the Program (or a work based on it, under Section 2) in object code or executable form under the terms of Sections 1 and 2 above provided that you also do one of the following: a) Accompany it with the complete corresponding machine-readable source code, which must be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or, b) Accompany it with a written offer, valid for at least three years, to give any third party, for a charge no more than your cost of physically performing source distribution, a complete machine-readable copy of the corresponding source code, to be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or, c) Accompany it with the information you received as to the offer to distribute corresponding source code. (This alternative is allowed only for noncommercial distribution and only if you received the program in object code or executable form with such an offer, in accord with Subsection b above.) The source code for a work means the preferred form of the work for making modifications to it. For an executable work, complete source code means all the source code for all modules it contains, plus any associated interface definition files, plus the scripts used to control compilation and installation of the executable. However, as a special exception, the source code distributed need not include anything that is normally distributed (in either source or binary form) with the major components (compiler, kernel, and so on) of the operating system on which the executable runs, unless that component itself accompanies the executable. If distribution of executable or object code is made by offering access to copy from a designated place, then offering equivalent access to copy the source code from the same place counts as distribution of the source code, even though third parties are not compelled to copy the source along with the object code. 4. You may not copy, modify, sublicense, or distribute the Program except as expressly provided under this License. Any attempt otherwise to copy, modify, sublicense or distribute the Program is void, and will automatically terminate your rights under this License. However, parties who have received copies, or rights, from you under this License will not have their licenses terminated so long as such parties remain in full compliance. 5. You are not required to accept this License, since you have not signed it. However, nothing else grants you permission to modify or distribute the Program or its derivative works. These actions are prohibited by law if you do not accept this License. Therefore, by modifying or distributing the Program (or any work based on the Program), you indicate your acceptance of this License to do so, and all its terms and conditions for copying, distributing or modifying the Program or works based on it. 6. Each time you redistribute the Program (or any work based on the Program), the recipient automatically receives a license from the original licensor to copy, distribute or modify the Program subject to these terms and conditions. You may not impose any further restrictions on the recipients' exercise of the rights granted herein. You are not responsible for enforcing compliance by third parties to this License. 7. If, as a consequence of a court judgment or allegation of patent infringement or for any other reason (not limited to patent issues), conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot distribute so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not distribute the Program at all. For example, if a patent license would not permit royalty-free redistribution of the Program by all those who receive copies directly or indirectly through you, then the only way you could satisfy both it and this License would be to refrain entirely from distribution of the Program. If any portion of this section is held invalid or unenforceable under any particular circumstance, the balance of the section is intended to apply and the section as a whole is intended to apply in other circumstances. It is not the purpose of this section to induce you to infringe any patents or other property right claims or to contest validity of any such claims; this section has the sole purpose of protecting the integrity of the free software distribution system, which is implemented by public license practices. Many people have made generous contributions to the wide range of software distributed through that system in reliance on consistent application of that system; it is up to the author/donor to decide if he or she is willing to distribute software through any other system and a licensee cannot impose that choice. This section is intended to make thoroughly clear what is believed to be a consequence of the rest of this License. 8. If the distribution and/or use of the Program is restricted in certain countries either by patents or by copyrighted interfaces, the original copyright holder who places the Program under this License may add an explicit geographical distribution limitation excluding those countries, so that distribution is permitted only in or among countries not thus excluded. In such case, this License incorporates the limitation as if written in the body of this License. 9. The Free Software Foundation may publish revised and/or new versions of the General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns. Each version is given a distinguishing version number. If the Program specifies a version number of this License which applies to it and "any later version", you have the option of following the terms and conditions either of that version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of this License, you may choose any version ever published by the Free Software Foundation. 10. If you wish to incorporate parts of the Program into other free programs whose distribution conditions are different, write to the author to ask for permission. For software which is copyrighted by the Free Software Foundation, write to the Free Software Foundation; we sometimes make exceptions for this. Our decision will be guided by the two goals of preserving the free status of all derivatives of our free software and of promoting the sharing and reuse of software generally. NO WARRANTY 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. END OF TERMS AND CONDITIONS Appendix: How to Apply These Terms to Your New Programs If you develop a new program, and you want it to be of the greatest possible use to the public, the best way to achieve this is to make it free software which everyone can redistribute and change under these terms. To do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively convey the exclusion of warranty; and each file should have at least the "copyright" line and a pointer to where the full notice is found. Copyright (C) 19yy This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. Also add information on how to contact you by electronic and paper mail. If the program is interactive, make it output a short notice like this when it starts in an interactive mode: Gnomovision version 69, Copyright (C) 19yy name of author Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. This is free software, and you are welcome to redistribute it under certain conditions; type `show c' for details. The hypothetical commands `show w' and `show c' should show the appropriate parts of the General Public License. Of course, the commands you use may be called something other than `show w' and `show c'; they could even be mouse-clicks or menu items--whatever suits your program. You should also get your employer (if you work as a programmer) or your school, if any, to sign a "copyright disclaimer" for the program, if necessary. Here is a sample; alter the names: Yoyodyne, Inc., hereby disclaims all copyright interest in the program `Gnomovision' (which makes passes at compilers) written by James Hacker. , 1 April 1989 Ty Coon, President of Vice This General Public License does not permit incorporating your program into proprietary programs. If your program is a subroutine library, you may consider it more useful to permit linking proprietary applications with the library. If this is what you want to do, use the GNU Library General Public License instead of this License. ═══ 1.5. whatsnew.txt ═══ ------------------------- lxLite revision history ------------------------- [;] Comment [*] Modified [+] Added feature [-] Removed feature [!] Bug fix 0.1.0 ----- 02-Oct-97 first release [;] I`ve waited for comments on version 0.0.9 for some time and now here is the first release. Not much changes, anyway. [!] Now -p#,#,#,# properly resizes the window when session is minimized. [!] If you didn`t set default console position and font size (with Shift+Mouse drag/with FontSize dialog), Console will not set them to 0 first time it is run. [!] Now Console is multitask-safe, i.e. running multiple copies at once will work as expected (however, since there is a need to serialize OS2.INI access they will not run in parralel, but rather one after other). 0.0.9 ----- 01-Aug-97 [;] public pre-release [+] Now Console can change the font of the window it was launched from. [+] New program - CWRP - used to process some PM events 'externally' since not anything can be done from within a VIO process. However, you shouldn`t run it manually since it was designed to be run automatically when it is needed. [+] Most options now works both 'locally' (on the window Console runs from) and externally (on the newly-created window). [+] New switch to set the console title -t"...". [+] New switch to make window border+title flash (-of{+|-}). Removed duplicated switch "-of" (foreground session) you can achieve the same result as -of+ with -ob-. [+] New switch to change window border size (-b{w,h}) [+] When Console starts a new window with -s#,# option, it starts it invisible, then resizes it, then shows it (if -ov- has not been specified). This removes annoying flashes. 0.0.3 ----- 11-Jul-97 [*] Changed the utility name from wOpen to Console. [*] Most state change switches has moved under '-o' switch. [*] By default Console changes current window, to start a new session use -on switch. [*] Now Console detects "font size..." entry in OS2.INI by three dots (...) since has proven that its name is translated in different versions of OS/2 (oh, shit...), but (I hope) they always contains those three dots. [+] Console autocomputes the size of newly-launched window, if you do not specify it. So, if you run, say, Console -p0,0 -f8,8 -s10,10 *, this will start a new session positioned at (0,0), and not "randomly" positioned as before. [!] Now Console can start active sessions from inactive windows. [+] Added ability to change same session window from where it was run. The following parameters can be changed: window cell size (analogous to MODE command), window position (-pX,Y), window size (-p,,W,H), window's maximized (-ox), minimized (-om), visible (-ov), foreground (-of or -ob) states. The -ox- and -om- switches are equivalent to [system menu]->[restore] entry. 0.0.2 ----- 18-May-97 [;] First public release 0.0.1 ----- 10-May-97 [;] First internal version ═══ 2. External links ═══ This chapter contains all external links referenced in this book - either link is an Unified Resource Locator (URL) or simply to a local file which is not a part of this book. ═══ 2.1. http://hobbes.nmsu.edu ═══ The link you selected points to an external resource. Click the URL below to launch IBM Web Explorer http://hobbes.nmsu.edu ═══ 2.2. mailto:bit@freya.etu.ru ═══ The link you selected points to an external resource. Click the URL below to launch IBM Web Explorer mailto:bit@freya.etu.ru