From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?utf-8?Q?Gerd_M=C3=B6llmann?= Newsgroups: gmane.emacs.devel Subject: Re: Question about dubious code for terminal frames Date: Mon, 02 Sep 2024 11:48:45 +0200 Message-ID: References: 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="40547"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Emacs Devel , martin rudalics To: Andreas Schwab Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Sep 02 11:50:02 2024 Return-path: Envelope-to: ged-emacs-devel@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 1sl3hB-000AOE-BP for ged-emacs-devel@m.gmane-mx.org; Mon, 02 Sep 2024 11:50:01 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sl3g4-0005gR-Dr; Mon, 02 Sep 2024 05:48:52 -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 1sl3g2-0005gA-5Q for emacs-devel@gnu.org; Mon, 02 Sep 2024 05:48:50 -0400 Original-Received: from mail-lf1-x135.google.com ([2a00:1450:4864:20::135]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sl3g0-0002sU-Kq for emacs-devel@gnu.org; Mon, 02 Sep 2024 05:48:49 -0400 Original-Received: by mail-lf1-x135.google.com with SMTP id 2adb3069b0e04-5353d0b7463so6782452e87.3 for ; Mon, 02 Sep 2024 02:48:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1725270527; x=1725875327; darn=gnu.org; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=hx97XXpR0z70AmMs37UOYG5BeFQS1Fd9MY12v6cGUfo=; b=E6WeIErqnmqemrK2UjVJJV12z6x8nUlwOYzYFMgucNhtdzM4/hxXiqLO9JCYKm0d+b ThOupfyoQ4NCd4wvNSVz+i29vMsW1Grg30MHMzX9h94OCYLHVA7MTSlNmbn4bq5pmF+a 1f4gwEpSOc9+TfSR2vv5ne1I71cfsoguieEhejao90ruppUogvu7KnLee9UgE+RXSsul 5xzxb4993cQpdXa41pgwIhoxW9LfUiXP/wQVnt956aC5ZpLQymprNNdJbeSQ5d0SKOqq G0FumBdC/l1Zl064wPZM63u6bJGz1yjdRKrO3aDTGy9A1d2MJplyV8v5Ge6AI3XgNnyt FXLA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1725270527; x=1725875327; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=hx97XXpR0z70AmMs37UOYG5BeFQS1Fd9MY12v6cGUfo=; b=XBDbZ8ltCZcZG3+lF/AAsv1EUvcRiaLMWBXnqt1Q7hpIHh1hGAKybGg/e40MtXpN3V msh9tnJEOz1kno80lAgOO8124sTk85AhtJ+D80ynNVNH7zKviOUuhhYIKyx94p+bGswm V5YNWofshp2AafNV/iRwi/7SEWd2tEcW/R4DcTKrKWs6VZLdz19rA5cMooPTQQqdOxfB 2h5jUjeJnhp9BBUpGuCOAqly/XWYLjK7cBCDeP+T7PtvwP/Bh6EKTcS6SlEiKTnTtR0G i9krflDQRoFYD0kGdUf1SAJOkCiA/vhYlfNN04Oy53Ow1f4aurcOmk6sBkHd2U+GPsOc kuoQ== X-Gm-Message-State: AOJu0YxVzp5E0FzGV4KcBN8dnWdwnI/UghEmynUVI/mMa2I165+995MK 96H8hwIMgUpDe689uLJXsv+bcg39isR8vsprQaH98yM3UcN7nxJB X-Google-Smtp-Source: AGHT+IGkD4O1fsQyBlCbpC3Wz4QNjUa/tS6Yqywvy2fcN9ak6/Ab/4htPQha/tUffjxBP8gUUSyZ1A== X-Received: by 2002:a05:6512:3f14:b0:533:4620:ebec with SMTP id 2adb3069b0e04-53546b1921amr8065511e87.3.1725270526220; Mon, 02 Sep 2024 02:48:46 -0700 (PDT) Original-Received: from pro2.fritz.box (p4fe3a928.dip0.t-ipconnect.de. [79.227.169.40]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a8988feb9f7sm533262066b.42.2024.09.02.02.48.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 Sep 2024 02:48:45 -0700 (PDT) In-Reply-To: (Andreas Schwab's message of "Mon, 02 Sep 2024 11:10:55 +0200") Received-SPF: pass client-ip=2a00:1450:4864:20::135; envelope-from=gerd.moellmann@gmail.com; helo=mail-lf1-x135.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: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:323271 Archived-At: Andreas Schwab writes: > On Sep 02 2024, Gerd M=C3=B6llmann wrote: > >> AFAIU, these two values give the physical size of a terminal (screen, >> window), as returned from the co and li escape sequences on termcap >> frames. > > Only if get_tty_size cannot determine the real size. Hm, yes, thanks. I guess setting cols and rows should then be conditionalized on being unknown?