Skip to contentSkip to conversation

cfdisk: reenable cursor when quitting

PATCH Applied Andreas Henriksson 3 participants 3 messages Jul 25, 2014 – Jul 28, 2014 Util-Linux package

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 cfdisk: reenable cursor when quitting

After quitting cfdisk (built with slang) the cursor would be missing at the command prompt.

Addresses-Debian-Bug: #755991

---
 disk-utils/cfdisk.c | 1 +
 1 file changed, 1 insertion(+)
disk-utils/cfdisk.c +1 -0
index 5a42ab1..dfdaaf0 100644
@@ -1966,6 +1966,7 @@ static int ui_run(struct cfdisk *cf)
 
 	menu_pop(cf);
 
+	curs_set(1);
 	DBG(FRONTEND, ul_debug("ui: end"));
 
 	return 0;
Signature · 1 line
2.0.1
#1 lore raw

Am Freitag, 25. Juli 2014, 14:22:01 schrieb Andreas Henriksson:

Quoted 15 lines

After quitting cfdisk (built with slang) the cursor would be missing at the command prompt.

Addresses-Debian-Bug: #755991

---
 disk-utils/cfdisk.c | 1 +
 1 file changed, 1 insertion(+)
disk-utils/cfdisk.c +0 -0
index 5a42ab1..dfdaaf0 100644

disk-utils/cfdisk.c static int ui_run(struct cfdisk *cf) · line 1972

Quoted 7 lines
disk-utils/cfdisk.c +1 -0
@@ -1966,6 +1966,7 @@ static int ui_run(struct cfdisk *cf)
 
 	menu_pop(cf);
 
+	curs_set(1);
 	DBG(FRONTEND, ul_debug("ui: end"));
 
 	return 0;

Thanks Andreas!

I will test this as soon as I have the systemd related build deps of newer util-linux sorted.

Signature · 2 lines
Martin 'Helios' Steigerwald - http://www.Lichtvoll.de
GPG: 03B0 0D6C 0040 0710 4AFA  B82F 991B EAAC A599 84C7