Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
bcc6256b
Commit
bcc6256b
authored
May 04, 2002
by
Jason Edmeades
Committed by
Alexandre Julliard
May 04, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add support for the 'title' command.
parent
77fbbcf3
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
29 additions
and
7 deletions
+29
-7
builtins.c
programs/wcmd/builtins.c
+9
-0
wcmd.h
programs/wcmd/wcmd.h
+10
-5
wcmdmain.c
programs/wcmd/wcmdmain.c
+7
-2
wcmdrc.rc
programs/wcmd/wcmdrc.rc
+3
-0
No files found.
programs/wcmd/builtins.c
View file @
bcc6256b
...
...
@@ -755,6 +755,15 @@ void WCMD_shift () {
}
/****************************************************************************
* WCMD_title
*
* Set the console title
*/
void
WCMD_title
(
char
*
command
)
{
SetConsoleTitle
(
command
);
}
/****************************************************************************
* WCMD_type
*
* Copy a file to standard output.
...
...
programs/wcmd/wcmd.h
View file @
bcc6256b
...
...
@@ -65,6 +65,7 @@ void WCMD_setshow_prompt (void);
void
WCMD_setshow_time
(
void
);
void
WCMD_shift
(
void
);
void
WCMD_show_prompt
(
void
);
void
WCMD_title
(
char
*
);
void
WCMD_type
(
void
);
void
WCMD_verify
(
char
*
command
);
void
WCMD_version
(
void
);
...
...
@@ -126,10 +127,14 @@ typedef struct {
#define WCMD_SET 28
#define WCMD_SHIFT 29
#define WCMD_TIME 30
#define WCMD_TYPE 31
#define WCMD_VERIFY 32
#define WCMD_VER 33
#define WCMD_VOL 34
#define WCMD_EXIT 35
#define WCMD_TITLE 31
#define WCMD_TYPE 32
#define WCMD_VERIFY 33
#define WCMD_VER 34
#define WCMD_VOL 35
/* Must be last in list */
#define WCMD_EXIT 36
programs/wcmd/wcmdmain.c
View file @
bcc6256b
...
...
@@ -30,7 +30,7 @@ char *inbuilt[] = {"ATTRIB", "CALL", "CD", "CHDIR", "CLS", "COPY", "CTTY",
"DATE"
,
"DEL"
,
"DIR"
,
"ECHO"
,
"ERASE"
,
"FOR"
,
"GOTO"
,
"HELP"
,
"IF"
,
"LABEL"
,
"MD"
,
"MKDIR"
,
"MOVE"
,
"PATH"
,
"PAUSE"
,
"PROMPT"
,
"REM"
,
"REN"
,
"RENAME"
,
"RD"
,
"RMDIR"
,
"SET"
,
"SHIFT"
,
"TIME"
,
"T
YPE"
,
"VERIFY"
,
"VER"
,
"VOL"
,
"EXIT"
};
"TIME"
,
"T
ITLE"
,
"TYPE"
,
"VERIFY"
,
"VER"
,
"VOL"
,
"EXIT"
};
HINSTANCE
hinst
;
DWORD
errorlevel
;
...
...
@@ -77,6 +77,7 @@ HANDLE h;
if
(
!
status
)
WCMD_print_error
();
SetConsoleMode
(
GetStdHandle
(
STD_INPUT_HANDLE
),
ENABLE_LINE_INPUT
|
ENABLE_ECHO_INPUT
|
ENABLE_PROCESSED_INPUT
);
SetConsoleTitle
(
"Wine Command Prompt"
);
/*
* Execute any command-line options.
...
...
@@ -306,7 +307,11 @@ char *whichcmd;
break
;
case
WCMD_TIME
:
WCMD_setshow_time
();
break
;
break
;
case
WCMD_TITLE
:
if
(
strlen
(
&
whichcmd
[
count
])
>
0
)
WCMD_title
(
&
whichcmd
[
count
+
1
]);
break
;
case
WCMD_TYPE
:
WCMD_type
();
break
;
...
...
programs/wcmd/wcmdrc.rc
View file @
bcc6256b
...
...
@@ -168,6 +168,8 @@ if called from the command line.\n"
WCMD_TIME, "Help about TIME\n"
WCMD_TITLE, "Sets the window title for the wcmd window, syntax TITLE [string]"
WCMD_TYPE,
"TYPE <filename> copies <filename> to the console device (or elsewhere\
if redirected). No check is made that the file is readable text.\n"
...
...
@@ -210,6 +212,7 @@ REN (RENAME)\tRename a file\
RD (RMDIR)\tDelete a subdirectory\
SET\t\tSet or show environment variables\
TIME\t\tSet or show the current system time\
TITLE\t\tSet the window title for the WCMD session\
TYPE\t\tType the contents of a text file\
VER\t\tShow the current version of WCMD\
VOL\t\tShow the volume label of a disk device\
...
...
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