[vbox-dev] Patch for "vboxshell.py" for Windows hosts
Alexey Eromenko
al4321 at gmail.com
Sun Jan 30 11:18:14 PST 2011
On Sun, Jan 30, 2011 at 7:11 PM, Alexey Eromenko <al4321 at gmail.com> wrote:
> Patch for "vboxshell.py" for Windows hosts.
>
> This fixes incorrect rendering of "help" command, because 'cmd' shell
> on Windows hosts does not support colors. Against v4.0.0 SDK.
>
> Line 48, "vboxshell.py"
> g_hascolors = True
> +if platform.system() == 'Microsoft':
> + g_hascolors = False
> term_colors = {
>
Nope.
Better patch would be:
Line 3258, "vboxshell.py"
checkUserExtensions(ctx, commands, home)
- if platform.system() == 'Windows':
+ if platform.system() == 'Microsoft':
global g_hascolors
g_hascolors = False
--
-Alexey Eromenko "Technologov"
More information about the vbox-dev
mailing list