Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
00ad4c53
Commit
00ad4c53
authored
Mar 08, 2007
by
Jason Edmeades
Committed by
Alexandre Julliard
Mar 08, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cmd.exe: Add cmd.exe /T option.
parent
e37463fa
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
1 deletion
+13
-1
wcmdmain.c
programs/cmd/wcmdmain.c
+13
-1
No files found.
programs/cmd/wcmdmain.c
View file @
00ad4c53
...
...
@@ -63,6 +63,7 @@ int main (int argc, char *argv[])
DWORD
count
;
HANDLE
h
;
int
opt_q
;
int
opt_t
=
0
;
opt_c
=
opt_k
=
opt_q
=
opt_s
=
0
;
while
(
*
argv
!=
NULL
)
...
...
@@ -82,7 +83,9 @@ int main (int argc, char *argv[])
opt_k
=
1
;
}
else
if
(
tolower
(
c
)
==
's'
)
{
opt_s
=
1
;
}
else
if
(
tolower
(
c
)
==
't'
||
tolower
(
c
)
==
'x'
||
tolower
(
c
)
==
'y'
)
{
}
else
if
(
tolower
(
c
)
==
't'
&&
(
*
argv
)[
2
]
==
':'
)
{
opt_t
=
strtoul
(
&
(
*
argv
)[
3
],
NULL
,
16
);
}
else
if
(
tolower
(
c
)
==
'x'
||
tolower
(
c
)
==
'y'
)
{
/* Ignored for compatibility with Windows */
}
...
...
@@ -256,6 +259,15 @@ int main (int argc, char *argv[])
ENABLE_ECHO_INPUT
|
ENABLE_PROCESSED_INPUT
);
SetConsoleTitle
(
"Wine Command Prompt"
);
/* Note: cmd.exe /c dir does not get a new color, /k dir does */
if
(
opt_t
)
{
if
(
!
(((
opt_t
&
0xF0
)
>>
4
)
==
(
opt_t
&
0x0F
)))
{
defaultColor
=
opt_t
;
param1
[
0
]
=
0x00
;
WCMD_color
();
}
}
if
(
opt_k
)
{
WCMD_process_command
(
cmd
);
HeapFree
(
GetProcessHeap
(),
0
,
cmd
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment