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
944dd6e2
Commit
944dd6e2
authored
Jun 04, 2003
by
Jukka Heinonen
Committed by
Alexandre Julliard
Jun 04, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Wineconsole curses backend now works even if terminal is smaller than
console size. Cursor is no longer left into wrong location after screen updates.
parent
38fa8576
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
5 deletions
+13
-5
curses.c
programs/wineconsole/curses.c
+13
-5
No files found.
programs/wineconsole/curses.c
View file @
944dd6e2
...
...
@@ -25,6 +25,8 @@
* functions which can be implemented as macros)
* - finish buffer scrolling (mainly, need to decide of a nice way for
* requesting the UP/DOWN operations
* - Resizing (unix) terminal does not change (Win32) console size.
* - Initial console size comes from registry and not from terminal size.
*/
#include "config.h"
...
...
@@ -60,6 +62,7 @@ struct inner_data_curse
int
allow_scroll
;
};
/******************************************************************
* WCCURSES_ResizeScreenBuffer
*
...
...
@@ -83,6 +86,11 @@ static void WCCURSES_ResizeScreenBuffer(struct inner_data* data)
*/
static
void
WCCURSES_PosCursor
(
const
struct
inner_data
*
data
)
{
int
scr_width
;
int
scr_height
;
getmaxyx
(
stdscr
,
scr_height
,
scr_width
);
if
(
data
->
curcfg
.
cursor_visible
&&
data
->
cursor
.
Y
>=
data
->
curcfg
.
win_pos
.
Y
&&
data
->
cursor
.
Y
<
data
->
curcfg
.
win_pos
.
Y
+
data
->
curcfg
.
win_height
&&
...
...
@@ -96,9 +104,10 @@ static void WCCURSES_PosCursor(const struct inner_data* data)
{
curs_set
(
0
);
}
prefresh
(
PRIVATE
(
data
)
->
pad
,
data
->
curcfg
.
win_pos
.
Y
,
data
->
curcfg
.
win_pos
.
X
,
0
,
0
,
data
->
curcfg
.
win_height
,
data
->
curcfg
.
win
_width
);
0
,
0
,
scr_height
,
scr
_width
);
}
/******************************************************************
...
...
@@ -147,7 +156,7 @@ static void WCCURSES_SetTitle(const struct inner_data* data)
}
/******************************************************************
* Refresh
*
WCCURSES_
Refresh
*
*
*/
...
...
@@ -179,9 +188,8 @@ static void WCCURSES_Refresh(const struct inner_data* data, int tp, int bm)
}
mvwaddchnstr
(
PRIVATE
(
data
)
->
pad
,
y
,
0
,
PRIVATE
(
data
)
->
line
,
data
->
curcfg
.
sb_width
);
}
prefresh
(
PRIVATE
(
data
)
->
pad
,
data
->
curcfg
.
win_pos
.
Y
,
data
->
curcfg
.
win_pos
.
X
,
0
,
0
,
data
->
curcfg
.
win_height
,
data
->
curcfg
.
win_width
);
WCCURSES_PosCursor
(
data
);
}
/******************************************************************
...
...
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