  
 | 
  
  85025 packages online
 | 
 
 
 | 
  | 
 
 | 
 | 
 | 
 
| 
  No screenshot available
 | 
| Short: | Print out the size of the CLI window |  
| Author: | Brielle Harrison |  
| Uploader: | Brielle Harrison <nyteshade gmail com> |  
| Type: | util/cli |  
| Version: | 1.1 |  
| Architecture: | m68k-amigaos |  
| Date: | 2020-10-22 |  
 | Requires: | AmigaOS 1.x or greater |  
 | Distribution: | Aminet |  
| Download: | util/cli/CONSize.lha - View contents |  | Readme: | util/cli/CONSize.readme |  
| Downloads: | 1546 |   
  |  
Often I get frustrated with the inability to set my
icon tool types or helpers to open just the right sized
console window. 
CONSize to the rescue! Position your window how you want
and run CONSize. The output string will be a fully 
fledged CON: handler string that has the exact same offset
and size as the window you're running the utility from.
If you prefer NEWCON or VNC or KCON instead, simply pass
that value as the first parameter and it will generate a
string with that as the handler. 
If you prefer to customize the Title of the generated string,
no problem! Pass a second parameter with the value of the 
title or other values you might want. For example, if you
are using ViNCEd you may want something like
CONSize VNC AmigaShell/SHELL/CLOSE
Which will generate the string, if you're full screen on a
NTSC Hi Res screen, like the following:
VNC:0/0/640/200/AmigaShell/SHELL/CLOSE
Long titles or values with spaces are supported if you wrap
the second parameter in double quotes.
Source is include, and compiled with SAS/C 6.58. It is compatible
with OS 1.3 and above. License is...none! Do whatever you
want with it.
Enjoy!
-Brie
------------------------------------------------------
Changelog
1.1     - Refactored code
          Extraced methods to get shell window into
          reusable code (included; getshellwin.(c|h))
1.0     - Initial release
 |  
  Contents of util/cli/CONSize.lha
PERMISSION  UID  GID    PACKED    SIZE  RATIO METHOD CRC     STAMP     NAME
---------- ----------- ------- ------- ------ ---------- ------------ ----------
[unknown]                 4467    6700  66.7% -lh5- aed6 Oct 18 16:20 CONSize
[unknown]                  384     831  46.2% -lh5- 2830 Oct 18 16:20 CONSize.info
[unknown]                  692    1586  43.6% -lh5- 4720 Oct 18 19:05 CONSize.c
[unknown]                   89     102  87.3% -lh5- bf25 Oct 18 19:08 CONSize.lnk
[unknown]                  619     884  70.0% -lh5- 5e6e Oct 18 19:08 CONSize.o
[unknown]                  803    1975  40.7% -lh5- 75e7 Oct 18 19:04 getshellwin.c
[unknown]                  497    1093  45.5% -lh5- a92e Oct 18 19:04 getshellwin.h
[unknown]                  475     624  76.1% -lh5- f174 Oct 18 19:08 getshellwin.o
[unknown]                   43      43 100.0% -lh0- 6908 Oct 18 19:07 scoptions
[unknown]                 4440    4440 100.0% -lh0- 7b58 Oct 18 19:10 CONSize.s
---------- ----------- ------- ------- ------ ---------- ------------ ----------
 Total        10 files   12509   18278  68.4%            Oct 22 03:46
  |   
 |  
  | 
  | 
| Page generated in 0.03 seconds | 
Aminet © 1992-2024 Urban 
Müller and the Aminet team.
Aminet contact address: <aminet aminet net> |