From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Samuel Wales Newsgroups: gmane.emacs.help Subject: emacs shell mode and debian dpkg-reconfigure / debconf Date: Mon, 1 May 2023 20:34:49 -0700 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="25227"; mail-complaints-to="usenet@ciao.gmane.io" To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Tue May 02 05:35:39 2023 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 1ptgnj-0006M3-AK for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 02 May 2023 05:35:39 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ptgn3-0008J3-NZ; Mon, 01 May 2023 23:34:57 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ptgn1-0008In-Ml for help-gnu-emacs@gnu.org; Mon, 01 May 2023 23:34:55 -0400 Original-Received: from mail-lf1-x136.google.com ([2a00:1450:4864:20::136]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ptgmz-0007Qm-H2 for help-gnu-emacs@gnu.org; Mon, 01 May 2023 23:34:55 -0400 Original-Received: by mail-lf1-x136.google.com with SMTP id 2adb3069b0e04-4eca9c8dd57so643415e87.1 for ; Mon, 01 May 2023 20:34:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1682998490; x=1685590490; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=V14pll3Gm85ffhzZuwvJ09IpUp8fkVUpztSV7mGIqrg=; b=Hp8c8chKiy+N5dKX3qh78cuMgwHBdEan1QkGtJHptFjtr+4MX7FWI0HSyxlqT2xuQF UNzV/oQtYY10CgK2N8TMkpMN5r0HVylLV/y9twqBy3H9737P4lld2UeMxQ3wdGx9p4ZI qBs8r+aMTVQEZlAEelxvWZEKMdYaxO4vhhmP2ahyYLZ0fBz+bOnFM8wIOcySXE2zhATP uuIiAL2Wl9YVvKR0Vie5HoRS5nUnUu6E9cygdy8LDrVcQv/z6SS1F56mKXOkB5sNprZn 3ZXTcDXglo2u7/hXdTSnSvHPWA8qGXX/4i4Tr7wAvZngNsbUBRPyCcA5YLhP0R/dFx8D FIVg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682998490; x=1685590490; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=V14pll3Gm85ffhzZuwvJ09IpUp8fkVUpztSV7mGIqrg=; b=fORc8JryHjlI1/svbDfwZpS/51eMg09nwc/OxB2NlJHIB+S+yi18LELOcf8yhrc/q0 qFw0fYPlyWSIuXf1haNW51Ng3oD22FMXtVhZ/lZedJwrnxkSeTdtKiquwjDa/HsZ+Pbv pp/dpsjS2cShV83uPOH+uFvPy4bZF/nkYWPcq7xEIm1Nr++da/GWzRl3BrLwLb8yPi9E 37KE9DTcPG56zmwWhfmtapf4l/965czhVSUkcmcwVwVonV3u4yugSK/JLfclWIz+BsoO ciYi44h6JXpDXbmdVzP+wZATSOma0cLmywGQfcKVKqXnGcSojeFRPriabkNCo9kp8Kyw cf4A== X-Gm-Message-State: AC+VfDzr1jQUB/ZhSa2cq1zPCez6bWOJMXtCDKcsYuxDFu/TFhwxGh8M 5wz6rtoavQwOhFyebnhFfOfpA+mEoXGjd5a+uANQTgDOHncowA== X-Google-Smtp-Source: ACHHUZ7ZDK0GTCr+nO+BajgWdvli98tuI+DX7ZsBqcbHmn22uoPDq2pCJjV0xySsxRP8+Ed+SgUpBEyN/999nYrW7hk= X-Received: by 2002:ac2:4822:0:b0:4e9:c792:c950 with SMTP id 2-20020ac24822000000b004e9c792c950mr323235lft.1.1682998490062; Mon, 01 May 2023 20:34:50 -0700 (PDT) Original-Received: by 2002:a05:6520:1802:b0:25c:eedb:12ff with HTTP; Mon, 1 May 2023 20:34:49 -0700 (PDT) Received-SPF: pass client-ip=2a00:1450:4864:20::136; envelope-from=samologist@gmail.com; helo=mail-lf1-x136.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, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 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-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.help:143495 Archived-At: ok, so you can't get the familiar red/blue/grey tui of dpkg-reconfigure in emacs shell mode. that is actually very much ok with me because setting that tui up for accessibility was too difficult and time-consuming for me and i quit trying. and i like the readline mode of dpkg-reconfigure MUCH BETTER than the tui. it does everything that the tui does and possibly even more. (the package to configure to select the ui is debconf.) the man pages go into detail here. you have to install a perl or python readline package and then defaults work in this ui and it shows what the default is. otherwise they do not and the interface looks inferior in that no defaults. so this means i found a solution for the accessibility issues, the solution being to use the readline interface. if i am willing to use xterm.... which, i want to use shell mode in emacs.... and it MOSTLY works there. everything except hte defaults i think. and you can even get defaults to PARTLY work by saying that TERM=xterm. you press RET and you get the default. but the default does not show. THIS is the problem i want fixed. to know what the default is. so this tool works well in an xterm, but not in emacs shell mode. i don't want to launch m-x term or so every time i want to upgrade, teh reason being that i do not want to enter the root password again. i /think/ i would have to do so. i also do not want to use m-x term for the shells cript in which the upgrade is embedded. i don't use terminals much really. i want just to see if this tool can work in shell mode with a trick or if there is anohter interface or so. so, is there a trick to getting hte readline mode to show defaults? please note: i do not need full readline capabilities! that is what emacs shell mode is for. plenty of editing possible. all i need is to know what the default selection is. in an xterm, this shows pre-filled in the prompt. which is readline. -- The Kafka Pandemic A blog about science, health, human rights, and misopathy: https://thekafkapandemic.blogspot.com