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
019693b4
Commit
019693b4
authored
Feb 20, 1999
by
Joseph Pranevich
Committed by
Alexandre Julliard
Feb 20, 1999
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Support for the new InitialRows andf InitialColumns options in wine.ini
(Generic replacement for XtermResolution option...)
parent
cebba4df
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
32 additions
and
2 deletions
+32
-2
interface.c
console/interface.c
+30
-2
console.h
include/console.h
+2
-0
No files found.
console/interface.c
View file @
019693b4
...
...
@@ -10,9 +10,10 @@
#include <stdlib.h>
#include <string.h>
#include "config.h"
#include "windef.h"
#include "console.h"
#include "
config
.h"
#include "
options
.h"
static
int
pop_driver
(
char
**
,
char
**
,
int
*
);
...
...
@@ -33,7 +34,9 @@ int CONSOLE_Init(char *drivers)
char
*
single
;
int
length
;
char
initial_rows
[
5
];
char
initial_columns
[
5
];
/* Suitable defaults... */
driver
.
console_out
=
stdout
;
driver
.
console_in
=
stdin
;
...
...
@@ -50,11 +53,36 @@ int CONSOLE_Init(char *drivers)
XTERM_Start
();
}
/* Read in generic configuration */
/* This is primarily to work around a limitation in nxterm where
this information is not correctly passed to the ncurses layer
through the terminal. At least, I'm not doing it correctly if there
is a way. But this serves as a generic way to do the same anyway. */
/* We are setting this to 80x25 here which is *not* the default for
most xterm variants... It is however the standard VGA resolution */
/* FIXME: We need to be able to be able to specify that the window's
dimensions should be used. This is required for correct emulation
of Win32's console and Win32's DOS emulation */
PROFILE_GetWineIniString
(
"console"
,
"InitialRows"
,
"24"
,
initial_rows
,
5
);
PROFILE_GetWineIniString
(
"console"
,
"InitialColumns"
,
"80"
,
initial_columns
,
5
);
sscanf
(
initial_rows
,
"%d"
,
&
driver
.
y_res
);
sscanf
(
initial_columns
,
"%d"
,
&
driver
.
x_res
);
GENERIC_Start
();
if
(
driver
.
init
)
driver
.
init
();
/* Not all terminals let our programs know the proper resolution
if the resolution is set on the command-line... */
CONSOLE_NotifyResizeScreen
(
driver
.
x_res
,
driver
.
y_res
);
/* For now, always return TRUE */
return
TRUE
;
}
...
...
include/console.h
View file @
019693b4
...
...
@@ -62,6 +62,8 @@ typedef struct CONSOLE_DRIVER
char
*
driver_list
;
FILE
*
console_out
;
FILE
*
console_in
;
int
x_res
;
int
y_res
;
}
CONSOLE_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