bug-readline
[Top][All Lists]
Advanced

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

[Bug-readline] [PATCH] Gnuplot on macOS does not suspend by Control-z


From: Rin Okuyama
Subject: [Bug-readline] [PATCH] Gnuplot on macOS does not suspend by Control-z
Date: Tue, 21 Nov 2017 21:53:34 +0900
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:52.0) Gecko/20100101 Thunderbird/52.4.0

Hi,

Gnuplot on macOS does not suspend by Control-z in its command line.
Please find the details below and attached patch.

Best regards,
Rin Okuyama
----
* VERSION

7.0 (the latest git source as of 2017-11-21).

* ENVIRONMENT

macOS 10.13.1 (also observed on 10.8.5).

* COMPILATION FLAGS etc.

Default settings generated by configure script.

* DESCRIPTION

Gnuplot 5.2.2 (and maybe all other versions) does not suspend only by
Control-z in its command line. If you type any key after Control-z, it
receives SIGTSTP and suspends.

* RECIPE FOR REPRODUCE

Try to suspend gnuplot on macOS by Control-z key.

* FIX

At the moment, readline does not disable VSUSP, and expect SIGTSTP to
be appropriately sent by the tty driver. However, unfortunately, it
does not work on macOS.

By applying this patch, readline explicitly disables VSUSP, and handles
Control-z by its own.

Applications like bash should not suspend by Control-z. However, this
patch does not take care of such a case.

Attachment: readline.patch
Description: Text document


reply via email to

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