nano-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Nano-devel] RFC: should nano respond to a SIGCONT?


From: Benno Schulenberg
Subject: Re: [Nano-devel] RFC: should nano respond to a SIGCONT?
Date: Thu, 25 May 2017 20:29:08 +0200

On Thu, May 25, 2017, at 12:48, Benno Schulenberg wrote:
> Attached is a version of the patch that will make nano
> recompute also the size of the edit window.

+    if (ttyname(0) == NULL)
+       goto turnover;

This doesn't actually do anything, because apparently ttyname
is never NULL.  Putting in some more print statements, it
results that after receiving a SIGCONT during suspension, nano
goes back to sleep in endwin().  It seems that endwin() contains
code that checks whether stdin is connected to anything.

See attached patch for another try.

This trick won't work under Slang, but there are already several
things that don't work right with Slang.  Support for Slang is
really only being kept for Jordi, who needs it for tiny nano.

Benno

-- 
http://www.fastmail.com - Send your email first class

Attachment: 0001-suspension-do-not-write-anything-to-the-screen-for-a.patch
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]