htop/htop-2.0.1-fix-escdelay-usage.patch
Dirk Mueller beeda113c2 Accepting request 397323 from home:develop7:branches:Base:System
- added upstream patch fixing ESCDELAY-related build failure on modern ncurses
- updated configure script parameters
- Update to v2.0.1
  * OpenBSD: Various fixes and improvements (thanks to Michael McConville and 
    Juan Francisco Cantero Hurtado)
  * FreeBSD: fix CPU and memory readings (thanks to Tim Creech, Hung-Yi Chen, 
    Bernard Spil, Greg V)
  * FreeBSD: add battery support (thanks to Greg V)
  * Linux: Retain last-obtained name of a zombie process
  * Mac OS X: Improve portability for OS X versions (thanks to Michael Klein)
  * Mac OS X: Fix reading command-line arguments and basename
  * Mac OS X: Fix process state information
  * Mac OS X: Fix tree view collapsing/expanding
  * Mac OS X: Fix tree organization
  * Mac OS X: Fix memory accounting
  * Fix crash when emptying a column of meters
  * Make Esc key more responsive
- removed htop-2.0.0-fix-buffer-reuse.patch and htop-stdgnu.patch

OBS-URL: https://build.opensuse.org/request/show/397323
OBS-URL: https://build.opensuse.org/package/show/Base:System/htop?expand=0&rev=35
2016-05-23 10:27:07 +00:00

38 lines
1.0 KiB
Diff

From 645057d81aa619f4f9704cd221e63b357ac7f749 Mon Sep 17 00:00:00 2001
From: Hisham <hisham@gobolinux.org>
Date: Thu, 19 May 2016 16:09:47 -0300
Subject: [PATCH] Use set_escdelay() to avoid problems with ESCDELAY as a
macro.
---
InfoScreen.c | 2 +-
ScreenManager.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/InfoScreen.c b/InfoScreen.c
index a6dd55a..085b860 100644
--- a/InfoScreen.c
+++ b/InfoScreen.c
@@ -116,7 +116,7 @@ void InfoScreen_run(InfoScreen* this) {
if (this->inc->active)
move(LINES-1, CRT_cursorX);
- ESCDELAY = 25;
+ set_escdelay(25);
int ch = getch();
if (ch == ERR) {
diff --git a/ScreenManager.c b/ScreenManager.c
index db3fdee..44e74e0 100644
--- a/ScreenManager.c
+++ b/ScreenManager.c
@@ -189,7 +189,7 @@ void ScreenManager_run(ScreenManager* this, Panel** lastFocus, int* lastKey) {
}
int prevCh = ch;
- ESCDELAY = 25;
+ set_escdelay(25);
ch = getch();
HandlerResult result = IGNORED;