On 3/27/2010 10:23 AM, Charles Wilson wrote:
> However, maybe it would be
> acceptable for us to include in msysCORE a helper script:
>
> get-console2.sh
>
> that would download and install, into /mingw/bin (or /bin, if no /mingw
> mount point or directory exists), the latest console2 executable. The
> script could also automatically configure an XML configuration for it,
> and create shortcuts for both "MinGW" (cmd shell with proper env vars
> for using MingGW gcc), "MSYS" (bash shell for MinGW development), and
> optionally MSYS-DVLPR personalities.
I've got a working implementation of this, but it requires the new
msys-wget and msys-unzip packages (which I have not yet uploaded to
sourceforge).
It seems to work pretty well, though. It:
a) downloads the binary .zip from sourceforge
b) unpacks it into /usr/lib/Console2/
c) creates a customized console.xml configuration (sed'ing in the
msys root directory and stuff).
d) creates a shortcut that can start up console+msys (bypassing
msys.bat).
I've attached the "input" console.xml file, so that people can suggest
changes for the default behavior/key accels (I think Keith has some
opinions on this).
Note that the script allows the user to specify the font, but not yet
the fontsize. E.g. right now you can:
console2-config -f 'Consolas'
if you hate the default Lucida Console.
Anyway, grep for '@@' to see the customizable settings, and please
suggest (a) other 'hardcoded' setting we should include, and (b) other
'customizable' settings that the script should allow the end-user to
specify, via options as demonstrated above.
===========================================================
console2-config [-c DIR] [-f FONT] [-A] [-D] [-P SDIR]
Download, install, and configure Console2 for
use with MinGW/MSYS.
Options:
-h Show this help
-c DIR Include cygwin configuration. DIR must
be the msys path to the root of the cygwin
installation. E.g. '/c/cygwin'
-f FONT Specify the font. Defaults to Lucida Console
but 'Consolas', 'Courier New', or
'DejaVu LGC Sans Mono' are also good choices
-A Use 'All Users' instead of current user for -D,-P
-D Create shortcut on the 'Desktop'
-P SDIR Create shortcut in the specified subdirectory of
the Start Menu 'Programs' directory
See https://sourceforge.net/projects/console/
===========================================================
(FWIW, -A doesn't work unless you have admin rights, and neither -A nor
-P work very well on Vista or W7 if UAC is active. But... -D is fine,
and the default behavior simply creates the short cut in the user's home
directory, and he can move it from there to where-ever he likes)
--
Chuck
|