From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Jose A Ortega Ruiz Newsgroups: gmane.emacs.devel Subject: Re: Implementing image support for kitty terminal Date: Thu, 08 Sep 2022 21:29:00 +0100 Message-ID: <87illxy5ir.fsf@mail.jao.io> References: <87v8pz18wf.fsf@mail.jao.io> <83o7vrgimc.fsf@gnu.org> <87wnafdnee.fsf@logand.com> <835yhzgdyi.fsf@gnu.org> <87k06den1s.fsf@logand.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="26383"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Tomas Hlavaty , Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Sep 08 22:30:50 2022 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 1oWOAk-0006gb-Fp for ged-emacs-devel@m.gmane-mx.org; Thu, 08 Sep 2022 22:30:50 +0200 Original-Received: from localhost ([::1]:57974 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oWOAj-0006fx-3J for ged-emacs-devel@m.gmane-mx.org; Thu, 08 Sep 2022 16:30:49 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:54006) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oWO92-0005vN-9e for emacs-devel@gnu.org; Thu, 08 Sep 2022 16:29:04 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:37664) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oWO91-0006MR-Ge; Thu, 08 Sep 2022 16:29:03 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To: From; bh=wITNWrM/hz72rkKqhe9u+SNVLcS/zeJ670QKVA8CpVk=; b=DPYp7OFzcwdcJwIYxJ1s B6fAQjROp5Qc8JfTBoNHRX0oOi23CIGKquGwqpoXFK8HEFLDjjdx4YAHBhaaFyZwKmCUpovS1xxUz /N5DZ18PerWmJWNWRhbr9AmrImzadVDRegpK9T3S/yVSZxY3RGlhL34DkUysz4EnrKMcmMTitWXr8 67Nf93GnmSkU9vkxKUegI5dL7THbN4WiMcDtIc69Af1n4Exa/ZG62m2/d4MNOjCsO1K3TysgmWKa+ 1qEqwUgDl9zZAK9LDbdP5BPbEF85qBNO4jr8Ewq6BX+3gyl+Il/A4ZRzit+yn03gSiIKNiFYRkVUb HQ05x1KIaQGFqQ==; Original-Received: from cpc103048-sgyl39-2-0-cust502.18-2.cable.virginm.net ([92.233.85.247]:35026 helo=rivendell.localdomain) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oWO90-00054F-Sf; Thu, 08 Sep 2022 16:29:03 -0400 Original-Received: from localhost (rivendell.localdomain [local]) by rivendell.localdomain (OpenSMTPD) with ESMTPA id 44271c33; Thu, 8 Sep 2022 20:29:00 +0000 (UTC) In-Reply-To: <87k06den1s.fsf@logand.com> X-Attribution: jao X-Clacks-Overhead: GNU Terry Pratchett X-URL: 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" Xref: news.gmane.io gmane.emacs.devel:295011 Archived-At: On Thu, Sep 08 2022, Tomas Hlavaty wrote: > On Wed 07 Sep 2022 at 22:51, Eli Zaretskii wrote: >> From: Tomas Hlavaty >>> Second, tty emacs would need to somehow reserve rectangle for the image. >>> This might be lots of work I guess. >> The second part is the problem I'm talking about. The other two are >> much simpler to add, I think. > > Maybe the difficulty comes from the idea that tty emacs should somehow > match GUI emacs capabilities when displaying images. > > The original use-case in this thread was using kitty terminal to view > documents like doc-view or pdf-tools. There is no need to implement fwiw, as the OP, no, that's not the original use-case i had in mind, only part of it. i want also to be able to display images in documents rendered by eww, or by chat clients such as telega or circe that have excellent support for it. i'd also like to use image dired in these kind of terminals. in fact, i almost never use a pure tty or the console. what this would allow me is to have the same functionality working at once in X11 and Wayland without suffering the complexities of more heavy-weight graphical libraries and toolkits. of course, ymmv :) jao