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
a4c214e7
Commit
a4c214e7
authored
Apr 29, 2002
by
Jason Edmeades
Committed by
Alexandre Julliard
Apr 29, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Emulate the dos cmd 'cls'.
parent
6138ba08
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
2 deletions
+14
-2
builtins.c
programs/wcmd/builtins.c
+14
-2
No files found.
programs/wcmd/builtins.c
View file @
a4c214e7
...
...
@@ -57,8 +57,20 @@ extern DWORD errorlevel;
void
WCMD_clear_screen
()
{
WCMD_output
(
nyi
);
/* Emulate by filling the screen from the top left to bottom right with
spaces, then moving the cursor to the top left afterwards */
COORD
topLeft
;
long
screenSize
;
CONSOLE_SCREEN_BUFFER_INFO
consoleInfo
;
HANDLE
hStdOut
=
GetStdHandle
(
STD_OUTPUT_HANDLE
);
GetConsoleScreenBufferInfo
(
hStdOut
,
&
consoleInfo
);
screenSize
=
consoleInfo
.
dwSize
.
X
*
(
consoleInfo
.
dwSize
.
Y
+
1
);
topLeft
.
X
=
0
;
topLeft
.
Y
=
0
;
FillConsoleOutputCharacter
(
hStdOut
,
' '
,
screenSize
,
topLeft
,
&
screenSize
);
SetConsoleCursorPosition
(
hStdOut
,
topLeft
);
}
/****************************************************************************
...
...
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