Hello,

I'm attaching an updated cpu-load patch, based on 0.69-1; it enables
nodelay() for the duration of keyboardsetup() only – keyboard setup
still takes 100% CPU but at least it works, and normal view behaves as
with the current patch.

Regards,
nabijaczleweli
Description: <short summary of the patch>
 TODO: Put a short summary on the line above and replace this paragraph
 with a longer explanation of this change. Complete the meta-information
 with other relevant fields (see below for details). To make it easier, the
 information below has been extracted from the changelog. Adjust it or drop
 it.
 .
 dhex (0.69-1) unstable; urgency=medium
 .
   * New upstream version.
   * debian/control: drop Vcs fields.
   * Bump standards version to 4.2.1.
   * debian/copyright: updated years.
   * debian/install and manpages: added.
   * debian/rules: disabled install target.
Author: Gürkan Myczko <gur...@phys.ethz.ch>

---
The information above should follow the Patch Tagging Guidelines, please
checkout http://dep.debian.net/deps/dep3/ to learn about the format. Here
are templates for supplementary fields that you might want to add:

Origin: <vendor|upstream|other>, <url of original patch>
Bug: <url in upstream bugtracker>
Bug-Debian: https://bugs.debian.org/<bugnumber>
Bug-Ubuntu: https://launchpad.net/bugs/<bugnumber>
Forwarded: <no|not-needed|url proving that it has been forwarded>
Reviewed-By: <name and email of someone who approved the patch>
Last-Update: 2020-03-20

--- dhex-0.69.orig/main.c
+++ dhex-0.69/main.c
@@ -530,8 +530,12 @@ int main(int argc,char** argv)
                output->win=initscr();
                pairsinit(output);
                noecho();
-               nodelay(output->win,1);
-               if (keyboardsetupreq) keyboardsetup(output,configfile);
+               if (keyboardsetupreq)
+               {
+                       nodelay(output->win,1);
+                       keyboardsetup(output,configfile);
+                       nodelay(output->win,0);
+               }
                if (bhexcalc)
                {
                        hexcalc(output,hHexCalc);

Attachment: signature.asc
Description: PGP signature

Reply via email to