From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Skip Montanaro Newsgroups: gmane.emacs.help Subject: no job control in this shell (was: Proposal: "C-z " reserved for users) Date: Tue, 9 Feb 2021 19:50:17 -0600 Message-ID: References: <1973673328.2493716.1612740554692.ref@mail.yahoo.com> <1973673328.2493716.1612740554692@mail.yahoo.com> <83tuqnkzff.fsf@gnu.org> <87czxap89f.fsf@zoho.eu> <87eehp4wae.fsf@mbork.pl> <8ed9b43502f51689d8b1@heytings.org> <87czx9kwrc.fsf@zoho.eu> <87r1lpjg9q.fsf@zoho.eu> <87ft24hk4b.fsf@zoho.eu> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="15581"; mail-complaints-to="usenet@ciao.gmane.io" Bcc: help-gnu-emacs@gnu.org To: Emanuel Berg Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Wed Feb 10 02:50:23 2021 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1l9ee6-0003xG-KX for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 10 Feb 2021 02:50:22 +0100 Original-Received: from localhost ([::1]:55752 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l9ee5-0000VK-NG for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 09 Feb 2021 20:50:21 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:50082) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l9edP-0000Ux-HS for help-gnu-emacs@gnu.org; Tue, 09 Feb 2021 20:49:39 -0500 Original-Received: from mail-yb1-xb2d.google.com ([2607:f8b0:4864:20::b2d]:46185) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1l9edL-0004P7-MI for help-gnu-emacs@gnu.org; Tue, 09 Feb 2021 20:49:39 -0500 Original-Received: by mail-yb1-xb2d.google.com with SMTP id v123so401937yba.13 for ; Tue, 09 Feb 2021 17:49:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=7AFQ0rHk14Ygdw8mm97c9SC2Mxq1/ArI1GSCAOVk0Tc=; b=UCVRIpKdcDbKuIdIKZ8Y2MxaYEh9ivB01S582Oj8p9sshijCNNQQCSET2yK4mhfru+ 4UJMx3VZdnNo2Xtw5tznDVFL2LIpw4s2tbN8EY/iiF7fUAq7c9uCg+Ec9/AJW5pAo/dy MUYH8MReiMyYs3v2DEfHtdhBMIW++N0LIBVLcZ7jqAfqL+E1IIlftp/pU5aQE5V2C19f uQ7DdXXdF931yRMgDnn0Rxj0og8mT8T23R0kvoEEIClRuNUrTH5Sgm6XFZ6lnqhkAhvQ +uY9BdnlMLP9NuUR7Zqx3cUTc785MEXGyfASKah/a0wi+00X7QY90TRUt9WBzrPl+qTY +ueQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=7AFQ0rHk14Ygdw8mm97c9SC2Mxq1/ArI1GSCAOVk0Tc=; b=ro7eJLviSO1ylZx3hPJMax3q7xpeX3oP4WIauC91d047Nnwbzmm2O4N9pJotXdMBPg 7swDSVzvCSjPajhzfQ2pLnm+PtTplqNfsFyLS8y/SkImApych9k++fCIIl3w5in1byD4 HgYRhCTPLXrgVVH9WBdPKdXCVeQaM9mp54QXVAoXpQzwvFfYwCWSMRxm5d3AgklE30z2 23W7XPZwA6xDcsHRBmE7CJD/7HHgv1OTpjNUIv1DYGRzpOVPTIY9jba7Ho2du8m2QawR 02arYaq4Z2hDC1lx6L3T99DYFdiwmgLOj/yOYvAAQJgj46fnWHBg2W7jy25V6Lxt5ur4 ApiA== X-Gm-Message-State: AOAM530/RYpeBFJspN1JQhoP3V8QKFy8QY3OVfS6arZN+slG1lNSN6kd 5RAqEUPtv+fNDKPmWLQGbp/hD/mIy2A8P/TOZU3gytz1rrzbf7w= X-Google-Smtp-Source: ABdhPJyaqdGP+2HFi5JjPEstabXctTEhyhZ0DTLOsl5KOIGA0c984kfdwyqwbC7zqA1HPMdkeoqyxbrXyvN7aOW106s= X-Received: by 2002:a5b:bce:: with SMTP id c14mr1001391ybr.494.1612921774071; Tue, 09 Feb 2021 17:49:34 -0800 (PST) In-Reply-To: <87ft24hk4b.fsf@zoho.eu> Received-SPF: pass client-ip=2607:f8b0:4864:20::b2d; envelope-from=skip.montanaro@gmail.com; helo=mail-yb1-xb2d.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:127753 Archived-At: (sending help-gnu-emacs to bcc as this is kind of out of the realm of Emacs...) Emanuel wrote: > Do you mean this? But it doesn't say anything. How do you > use it? > > fg [ job ... ] > job ... > Bring each specified job in turn to the > foreground. If no job is specified, resume the > current job. > > Besides, fg and bg still just says no job control in > this shell. > > `suspend-frame' works BTW. It didn't work before because > of tmux. Without tmux in the plain tty it works. Only I don't > get back to it so have to pkill it instead :) Are you a bash user? The references you posted kind of suggested zsh to me, but it wasn't clear. If you are using bash, does executing set -m allow you to use job control (fg and bg)? When I searched for "no job control in this shell," that was the suggestion. If I execute set +m emacs -nw I am unable to suspend emacs using C-z, so I suspect that might be what's going on. >From the documentation for set -m in the bash man page: -m Monitor mode. Job control is enabled. This option is on by default for interactive shells on systems that support it (see JOB CONTROL above). All processes run in a separate process group. When a background job com=E2=80=90 pletes, the shell prints a line containing its exit sta=E2=80=90 tus. Skip