mirror of
https://github.com/GOSTSec/sgminer
synced 2025-01-25 14:04:25 +00:00
Only adjust cursor positions with curses locked.
This commit is contained in:
parent
12045aae55
commit
514491bd0e
15
cgminer.c
15
cgminer.c
@ -2186,12 +2186,15 @@ static void check_winsizes(void)
|
|||||||
|
|
||||||
static void switch_compact(void)
|
static void switch_compact(void)
|
||||||
{
|
{
|
||||||
if (opt_compact) {
|
if (curses_active_locked()) {
|
||||||
logstart = devcursor + 1;
|
if (opt_compact) {
|
||||||
logcursor = logstart + 1;
|
logstart = devcursor + 1;
|
||||||
} else {
|
logcursor = logstart + 1;
|
||||||
logstart = devcursor + total_devices + 1;
|
} else {
|
||||||
logcursor = logstart + 1;
|
logstart = devcursor + total_devices + 1;
|
||||||
|
logcursor = logstart + 1;
|
||||||
|
}
|
||||||
|
unlock_curses();
|
||||||
}
|
}
|
||||||
check_winsizes();
|
check_winsizes();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user