From unknown Sun Jun 15 01:03:48 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#16059 <16059@debbugs.gnu.org> To: bug#16059 <16059@debbugs.gnu.org> Subject: Status: 24.3.50; Running curses applications under term and ansi-term is broken Reply-To: bug#16059 <16059@debbugs.gnu.org> Date: Sun, 15 Jun 2025 08:03:48 +0000 retitle 16059 24.3.50; Running curses applications under term and ansi-term= is broken reassign 16059 emacs submitter 16059 Matthew Leach severity 16059 normal tag 16059 moreinfo thanks From debbugs-submit-bounces@debbugs.gnu.org Thu Dec 05 05:17:42 2013 Received: (at submit) by debbugs.gnu.org; 5 Dec 2013 10:17:42 +0000 Received: from localhost ([127.0.0.1]:59017 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VoW05-0006hx-Hn for submit@debbugs.gnu.org; Thu, 05 Dec 2013 05:17:42 -0500 Received: from eggs.gnu.org ([208.118.235.92]:42358) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VoW03-0006hp-4F for submit@debbugs.gnu.org; Thu, 05 Dec 2013 05:17:39 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VoVzx-0006LM-9S for submit@debbugs.gnu.org; Thu, 05 Dec 2013 05:17:39 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50 autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:44737) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VoVzx-0006LI-60 for submit@debbugs.gnu.org; Thu, 05 Dec 2013 05:17:33 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:44059) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VoVzs-0004Yl-4u for bug-gnu-emacs@gnu.org; Thu, 05 Dec 2013 05:17:33 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VoVzn-0006KA-4M for bug-gnu-emacs@gnu.org; Thu, 05 Dec 2013 05:17:28 -0500 Received: from mx0.mattleach.net ([176.58.118.143]:56877) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VoVzm-0006J6-VG for bug-gnu-emacs@gnu.org; Thu, 05 Dec 2013 05:17:23 -0500 Received: from mx0.mattleach.net (localhost.localdomain [127.0.0.1]) by mx0.mattleach.net (Postfix) with ESMTP id C6BD461CDF for ; Thu, 5 Dec 2013 10:17:21 +0000 (GMT) Received: by mx0.mattleach.net (Postfix, from userid 99) id B824F625EB; Thu, 5 Dec 2013 10:17:21 +0000 (GMT) Received: from matt-laptop (mx0.mattleach.net [176.58.118.143]) by mx0.mattleach.net (Postfix) with ESMTPSA id 4C22461CDF for ; Thu, 5 Dec 2013 10:17:20 +0000 (GMT) From: Matthew Leach To: bug-gnu-emacs@gnu.org Subject: 24.3.50; Running curses applications under term and ansi-term is broken Date: Thu, 05 Dec 2013 10:17:15 +0000 Message-ID: <87vbz31u1g.fsf@matt-laptop.i-did-not-set--mail-host-address--so-tickle-me> MIME-Version: 1.0 Content-Type: text/plain X-Virus-Scanned: ClamAV X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) Hi, When I run curses applications (such as htop and Linux's "make menuconfig") in term and ansi-term the window's width appears to be detected incorrectly. This causes curses to emit lines that are too long for the window and thus Emacs spans them over more than one line. This quickly makes the terminal output unreadable. Note, this is a visual observation, I haven't looked at the code. Recipe: emacs -Q M-x term htop Thanks, Matt In GNU Emacs 24.3.50.1 (x86_64-unknown-linux-gnu, GTK+ Version 3.10.5) of 2013-12-05 on matt-laptop Windowing system distributor `The X.Org Foundation', version 11.0.11404000 Configured using: `configure --prefix=/home/matthew/Development/emacs/install' Important settings: value of $LANG: en_GB.utf8 locale-coding-system: utf-8-unix default enable-multibyte-characters: t Major mode: Lisp Interaction Minor modes in effect: tooltip-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Recent input: M-x r e p r o r t - e m Recent messages: For information about GNU Emacs and the GNU system, type C-h C-a. Load-path shadows: None found. Features: (shadow sort gnus-util mail-extr emacsbug message format-spec rfc822 mml easymenu mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils time-date tooltip electric uniquify ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment lisp-mode prog-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process dbusbind gfilenotify dynamic-setting system-font-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty emacs) From debbugs-submit-bounces@debbugs.gnu.org Mon Sep 30 09:34:47 2019 Received: (at 16059) by debbugs.gnu.org; 30 Sep 2019 13:34:47 +0000 Received: from localhost ([127.0.0.1]:57076 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iEvp8-0007ph-T7 for submit@debbugs.gnu.org; Mon, 30 Sep 2019 09:34:47 -0400 Received: from mail-pf1-f175.google.com ([209.85.210.175]:34185) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iEvp6-0007pU-UZ for 16059@debbugs.gnu.org; Mon, 30 Sep 2019 09:34:45 -0400 Received: by mail-pf1-f175.google.com with SMTP id b128so5650116pfa.1 for <16059@debbugs.gnu.org>; Mon, 30 Sep 2019 06:34:44 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to:cc; bh=2/x5HM9/KMLbMqIlgA0SCVCDgh7RoJlHOpWrGQRV/pk=; b=boMXkRlvW3QHZuedVTmjwbjr0F0d/K9VggEbfzpGh93EQJi6lS6XSVmNeRsIjy5Mhj pG+JXz5ezDAH/KeWCvQlMxQIXj8rQhHT8NZlD8zZeSfDKqx8/pj4Rs6/UsA24VC25XG2 NmLCoLVgnJZz6N/1C3amzpc2DVlk7lRNeiZrk6y4aGUF7FKlKVM4xUzhCxDML4jG1tzW yvNRXeILCWnlv5/5zEW/tuyDEt12L3MdfzBKpokw9RyOSz1zaox0RmReDJdvUMBF94Sx o+wkgEqVkozxChaQFYSR4Zrhhioa20UohN/e7wL/dRaj+YtmByzB2Qmbgc6VVytiJaFk 8O6g== X-Gm-Message-State: APjAAAWIWAAdoHS7zJqji8pgV0C3Yzm3qur8p97zjJGrymCWT0PuTyGq +ldAp53aUNmFi2pDAhsPPdIHp2+6mXiV/5wtiD6IsI3lqEs= X-Google-Smtp-Source: APXvYqyFfuicIZCeXetAC4/UHs5pcwHABwK3pwupLAHKk7Ptj0HEvGWEbSqGv2U6tJx8mG2SZkE+gZaEYXPu615qJVI= X-Received: by 2002:a17:90a:cc08:: with SMTP id b8mr26838763pju.119.1569850479139; Mon, 30 Sep 2019 06:34:39 -0700 (PDT) MIME-Version: 1.0 From: Stefan Kangas Date: Mon, 30 Sep 2019 15:34:28 +0200 Message-ID: Subject: Re: bug#16059: 24.3.50; Running curses applications under term and ansi-term is broken To: Matthew Leach Content-Type: text/plain; charset="UTF-8" X-Spam-Score: 0.3 (/) X-Debbugs-Envelope-To: 16059 Cc: 16059@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) Matthew Leach writes: > When I run curses applications (such as htop and Linux's "make > menuconfig") in term and ansi-term the window's width appears to be > detected incorrectly. This causes curses to emit lines that are too long > for the window and thus Emacs spans them over more than one line. This > quickly makes the terminal output unreadable. Note, this is a visual > observation, I haven't looked at the code. > > Recipe: > > emacs -Q > M-x term > > htop I can't reproduce this using the recipe given. Are you still seeing this on a modern version of Emacs? If I don't hear back from you in a couple of weeks, I'll just assume this has been fixed and close this bug. Best regards, Stefan Kangas From debbugs-submit-bounces@debbugs.gnu.org Mon Sep 30 09:41:09 2019 Received: (at control) by debbugs.gnu.org; 30 Sep 2019 13:41:09 +0000 Received: from localhost ([127.0.0.1]:57091 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iEvvJ-00080T-AB for submit@debbugs.gnu.org; Mon, 30 Sep 2019 09:41:09 -0400 Received: from mail-pf1-f176.google.com ([209.85.210.176]:45715) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iEvvG-0007zr-SB for control@debbugs.gnu.org; Mon, 30 Sep 2019 09:41:07 -0400 Received: by mail-pf1-f176.google.com with SMTP id y72so5627304pfb.12 for ; Mon, 30 Sep 2019 06:41:06 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=c6QjPDuYLbQydpVt2AVXWdjkoqnvwSPOxnI1M0L+p1k=; b=STRIpOpzGAfLle3qYK6FyE7nB6RV5hAuKjxq4RrIHacQ0Dr8/yxVqEtpwCA/XCBOwT 4QNII0GRg7CK0RB/xdyLGBxc8CUwXzdOGPG5/kmwmi0gM4UXjze1XLe6zhtNYiA5DRWf UiVY3N0YsfV1vwmxAOHKjcYmWnAcUVdMSVRn7dSFOb6Q81gCVYc2RPQT+FhipGvDB5FN fKuVFsa+4b5UqI4AyEYf+ckhlW9XtL1lejreEyrno1X+wg/tM7pIRtAlGNjgK8OzPKHC AWb/ruEIt1FAVNVKs93XLrwC2QFPLY0XhYhMPom73yXDIq9tcgg+YcrFbtg9i92A9Ho9 guPA== X-Gm-Message-State: APjAAAX5VPFsoDpIy8tsPeM6zgt5bT1YL7TTO05YbS5PDmpkZR4TZWIx iyJlSnh1WFFNlBX6kfl5m1OUt8NwYHiiTE5axpedu0wH X-Google-Smtp-Source: APXvYqyyoh8OiETbXcfrodhwh/O3+J0eGpkti1CLWU6D5Vzz2NclEfemc8I2uSLyJavkcuuwHDEUfQPZAMOJWT2hPVM= X-Received: by 2002:a65:5802:: with SMTP id g2mr18609985pgr.333.1569850860664; Mon, 30 Sep 2019 06:41:00 -0700 (PDT) MIME-Version: 1.0 From: Stefan Kangas Date: Mon, 30 Sep 2019 15:40:49 +0200 Message-ID: Subject: To: control@debbugs.gnu.org Content-Type: text/plain; charset="UTF-8" X-Spam-Score: 2.3 (++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: tags 16059 + moreinfo quit Content analysis details: (2.3 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (stefankangas[at]gmail.com) 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 SPF_PASS SPF: sender matches SPF record 0.2 HEADER_FROM_DIFFERENT_DOMAINS From and EnvelopeFrom 2nd level mail domains are different -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [209.85.210.176 listed in list.dnswl.org] 2.0 BLANK_SUBJECT Subject is present but empty 0.0 FREEMAIL_FORGED_FROMDOMAIN 2nd level domains in From and EnvelopeFrom freemail headers are different X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 1.3 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: tags 16059 + moreinfo quit Content analysis details: (1.3 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [209.85.210.176 listed in list.dnswl.org] 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (stefankangas[at]gmail.com) 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 SPF_PASS SPF: sender matches SPF record 0.2 HEADER_FROM_DIFFERENT_DOMAINS From and EnvelopeFrom 2nd level mail domains are different 2.0 BLANK_SUBJECT Subject is present but empty 0.0 FREEMAIL_FORGED_FROMDOMAIN 2nd level domains in From and EnvelopeFrom freemail headers are different -1.0 MAILING_LIST_MULTI Multiple indicators imply a widely-seen list manager tags 16059 + moreinfo quit From debbugs-submit-bounces@debbugs.gnu.org Mon Sep 30 11:56:05 2019 Received: (at 16059) by debbugs.gnu.org; 30 Sep 2019 15:56:05 +0000 Received: from localhost ([127.0.0.1]:60282 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iEy1t-0003ei-EU for submit@debbugs.gnu.org; Mon, 30 Sep 2019 11:56:05 -0400 Received: from mx0.mattleach.net ([176.58.118.143]:39832) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iEy1q-0003eN-Nr for 16059@debbugs.gnu.org; Mon, 30 Sep 2019 11:56:04 -0400 Received: by mx0.mattleach.net (Postfix, from userid 99) id AE3DA61C5D; Mon, 30 Sep 2019 16:56:01 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mx0.mattleach.net X-Spam-Level: X-Spam-Status: No, score=-1.0 required=4.0 tests=ALL_TRUSTED autolearn=disabled version=3.4.2 Received: from hopton.mattleach.net (92.40.249.172.threembb.co.uk [92.40.249.172]) by mx0.mattleach.net (Postfix) with ESMTPSA id C8C6D61C21; Mon, 30 Sep 2019 16:56:00 +0100 (BST) From: Matthew Leach To: Stefan Kangas Subject: Re: bug#16059: 24.3.50; Running curses applications under term and ansi-term is broken In-Reply-To: (Stefan Kangas's message of "Mon, 30 Sep 2019 15:34:28 +0200") References: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Date: Mon, 30 Sep 2019 16:55:59 +0100 Message-ID: <87d0fhn5gw.fsf@mattleach.net> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 16059 Cc: 16059@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Stefan Kangas writes: > Matthew Leach writes: [...] >> Recipe: >> >> emacs -Q >> M-x term >> >> htop > > I can't reproduce this using the recipe given. Are you still seeing > this on a modern version of Emacs? Indeed, I can't seem to reproduce this myself using Emacs git. This must have got fixed at some point. Please feel free to close. -- Matt From debbugs-submit-bounces@debbugs.gnu.org Mon Sep 30 11:58:40 2019 Received: (at 16059-done) by debbugs.gnu.org; 30 Sep 2019 15:58:41 +0000 Received: from localhost ([127.0.0.1]:60299 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iEy4N-0003y0-Ud for submit@debbugs.gnu.org; Mon, 30 Sep 2019 11:58:40 -0400 Received: from mail-pf1-f169.google.com ([209.85.210.169]:41554) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iEy4M-0003xk-5F for 16059-done@debbugs.gnu.org; Mon, 30 Sep 2019 11:58:38 -0400 Received: by mail-pf1-f169.google.com with SMTP id q7so5854948pfh.8 for <16059-done@debbugs.gnu.org>; Mon, 30 Sep 2019 08:58:38 -0700 (PDT) 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:cc; bh=r9CwZBaHf5ztkax574Z6v5iGgMbKLi9GqcrDH1TDWtg=; b=hnFEnIEcmQc+SSAGymZk6oGSziAqhh9P0kJODnxt4I4S9J0VE+39bu3TnncOMAhK9p oa6R40bbE3Jy8uyXgJgF28VjdzZSIx3FQh1hv0gTj+Tu8XoqTkDYm1y8ErKR6vQR25DK a6Yxx+SL6QLStkGqxc9cTYzUuH57XmzqvT0t/puPiCbzO4ICWyM2Jke18Ar7OG01xmau K645MyjDLUCIYiq2vlWq7HXQj5VddRwycKnrtQGIK4LdvBIRBg8qf3GSZ3drrtfmaDN5 JYEYJlIMtwh64muaxr//rwLJJ1TseBfBU4UNtORSBIlV+W4dWP2afzypgcDFDRCYGLTh k6aw== X-Gm-Message-State: APjAAAXxfrlVqyg3bWzPLzQg9N3pT1YhOryAKKhKiuxIcq/Lq/yCAZYZ 0RJIjgIl9yKnus84jFaHdKO3OqGP9rRLXS8Yo2XxH3wH X-Google-Smtp-Source: APXvYqxzz5ijZKVzEjdSepjdE/pojlkcCpRNHiyDKW3MbcqvTxATEredU2I/oYYdug88c8Wu0yOozF2ULdvAX5LL8DA= X-Received: by 2002:a17:90b:8d1:: with SMTP id ds17mr27979279pjb.106.1569859112405; Mon, 30 Sep 2019 08:58:32 -0700 (PDT) MIME-Version: 1.0 References: <87d0fhn5gw.fsf@mattleach.net> In-Reply-To: <87d0fhn5gw.fsf@mattleach.net> From: Stefan Kangas Date: Mon, 30 Sep 2019 17:58:21 +0200 Message-ID: Subject: Re: bug#16059: 24.3.50; Running curses applications under term and ansi-term is broken To: Matthew Leach Content-Type: text/plain; charset="UTF-8" X-Spam-Score: 0.3 (/) X-Debbugs-Envelope-To: 16059-done Cc: 16059-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) Matthew Leach writes: > > I can't reproduce this using the recipe given. Are you still seeing > > this on a modern version of Emacs? > > Indeed, I can't seem to reproduce this myself using Emacs git. This > must have got fixed at some point. > > Please feel free to close. Thanks for reporting back so promptly. Closing this now. Best regards, Stefan Kangas From unknown Sun Jun 15 01:03:48 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Tue, 29 Oct 2019 11:24:06 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator