From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-3.4 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 17163 invoked from network); 13 Sep 2023 09:17:27 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 13 Sep 2023 09:17:27 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1694596647; b=i2ODb2sW/l0MtHFHXOJQQA9C+xjh7lHza70jgN8JsRzAdl6Sbj7+v2W5x6C22tOdrr7mwS4i6l Q7qAwQ/2qWileA/3BfgV4aLsuEJpccCvldkUMI/NvQLYC0EwiykYq9OC87o77DPsyNWLyyPl/8 GPb+9FuZLzqkuedM/ROeiXxofkMSjPTiD4Bit/bchmJWH33Fx9dsFKEvQT1Q1xEEuQm2wnEJHF iiW6m/ituLNqZCMQ1xPw/R98iV338Rfy4wBfTtLLt4v0fe36YXgomH3tdkYkYFPswVWu0qKCYp XQqt5wAK4OE5/1JoR3+jEH6q2Of7Wvk/sRd/Wsg4zAEBeg==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mail-lj1-f177.google.com) smtp.remote-ip=209.85.208.177; dkim=pass header.d=gmail.com header.s=20221208 header.a=rsa-sha256; dmarc=pass header.from=gmail.com; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20210803; t=1694596647; bh=IHV7DMyFpoNqTiZwQDWi+itx7/Ag3q8HJbuf/vO3IfQ=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Transfer-Encoding:Content-Type:Cc:To:Subject: Message-ID:Date:From:In-Reply-To:References:MIME-Version:DKIM-Signature: DKIM-Signature; b=Pmz9l6JFNlaj03SaAi5Gm2+vRNGCcRsgcoeFx6bd2L2l71DULhGOuY720N18UaB59YWMvAIhge +Xg7E9gFawoTkl925zsC6uOeFDpXUZV/iHNC4Kono0m29rneSX7Hp0cVhjbhy3VR9fGP/mQCVV HL059pJrIcTFPaOD6PdMlyOhpAmwTX4LNfGeagCHJh+lqqA5Pm2zWrA93Jzo2sjTZv0UVujnTU IQjAiqXJvQpyI8UiQIIAIa810MLj3AauOr7+pi86lt+ZJDT8cusq7po7srwt6oOVOTQisBSLnT gypaX0Q5c7ZxCbyT66etkwyN5dc4f+GoAa1rMXayrudk1w==; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=zsh.org; s=rsa-20210803; h=List-Archive:List-Owner:List-Post:List-Unsubscribe: List-Subscribe:List-Help:List-Id:Sender:Content-Transfer-Encoding: Content-Type:Cc:To:Subject:Message-ID:Date:From:In-Reply-To:References: MIME-Version:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=IHV7DMyFpoNqTiZwQDWi+itx7/Ag3q8HJbuf/vO3IfQ=; b=ETmcOy4WpABUsaMSzPnrAtnkoN NrMFWIiVQi5tHwWvzLwzkkhj5Lc6TjlmfpFK7wtZiv7QEtnKF601ZxXmQ6g7pZp840U6fQDx9o1no gxTbX/6C++Wm6wQ2Iy6n4IPzhNSi7n4wrx4ht/Wty+r2NSmVqZr1Rblsf/YxVrE2XVq38itupEVj2 B966e++CC98TGDZ3CtL36tv0I5dh/DAd5UPfmLZWJd3YT6uiyujDeb1029vBElrZcD7hYRS6GERxx 8urU4UYyN5ymB56hty0hNcAsvb3MnElWJ9CDQ4pfth1QPGxpDN0CRKu4ol94t8NvSamCr4XAIKrMc O3k0X6iQ==; Received: by zero.zsh.org with local id 1qgLzy-000A5O-Vs; Wed, 13 Sep 2023 09:17:27 +0000 Authentication-Results: zsh.org; iprev=pass (mail-lj1-f177.google.com) smtp.remote-ip=209.85.208.177; dkim=pass header.d=gmail.com header.s=20221208 header.a=rsa-sha256; dmarc=pass header.from=gmail.com; arc=none Received: from mail-lj1-f177.google.com ([209.85.208.177]:45274) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1qgLyx-0009Ks-0p; Wed, 13 Sep 2023 09:16:24 +0000 Received: by mail-lj1-f177.google.com with SMTP id 38308e7fff4ca-2bfb1167277so15929231fa.2 for ; Wed, 13 Sep 2023 02:16:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1694596582; x=1695201382; darn=zsh.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=IHV7DMyFpoNqTiZwQDWi+itx7/Ag3q8HJbuf/vO3IfQ=; b=iTYktreD7ZjIQa8c3I6tPLroyjtZIwr+aT1jLP3JHaGqvUJ44/iMdHzbpj6zH4nARk tsW89oaQZZSdSEdwSKh6N568pZ92FNYPujfIkQegsF669Baddwcn3r6SWogVUmSUbu/m YUPi+AFmkWmlaHYQanh28kC1X81uHmlD888jTYh+F4EL2RDQZ8tQz3ZhIg7+P6pQ6Z/1 d3SpzcSGBjkmvrES5nU/BZ/bhQqFxm22+IXVPMviqGq4FMMdcL4E+TtboOtcTbmcDKSk U4EH6udieXFDWRVKxeupv0A2KI3XOIA5JJkYZWcvzc/oXuEUOpCjGCB4cbbI+3SmgptH 82zw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694596582; x=1695201382; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=IHV7DMyFpoNqTiZwQDWi+itx7/Ag3q8HJbuf/vO3IfQ=; b=UpADsi0mQiV1MMw7M7GqtakNJvcNOSfL1xarrzh4S7SRxA0MUuvSYxqk1OxGDO/7rl PR+o/NfbgkddENlpzClSq14dMmSGmPgGwuaZsM2R0jqV+alRBuLNdyh/d0LDT40e+5uC WgCYbMAfuaz6HKPzd2xwqCkAOiEBnK7MPsGm3ftQQVqa3/Ux+XdWC2TNXk/Zje9GliPx XIsMUtQ2NUEMCQiBU1CADAPmb3oZASX9CWUwkBqABeyYaGc7qFoJ2FT9bFKK/ZZVcfeu YRu/Bu4vX5uTVwqp8P123pv1EHdgA8fxz2CvWeS4Sz+487349Gy1Jbi0+RRuFzs3VfuL V4kg== X-Gm-Message-State: AOJu0YzzBBYVYDDdsJKegp4hWQZdODfXad9A73apJFqJW7ozF4fdWGKc Eux9UlTcP9wOUC6Y+/JDpJLq2aDIHMvfWWi1lYB1jyx54XVBdQ== X-Google-Smtp-Source: AGHT+IHYtsi0kbMF1CvQF7AzF8w9ZhOzUHdRZgdzoRNBT5udT9agBkPOZj84QSi5PsMo0h7ZBoRp8DGvAxvM+8NTh3U= X-Received: by 2002:a2e:9ed1:0:b0:2bc:c4ae:c565 with SMTP id h17-20020a2e9ed1000000b002bcc4aec565mr1809486ljk.28.1694596582129; Wed, 13 Sep 2023 02:16:22 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Roman Perepelitsa Date: Wed, 13 Sep 2023 11:16:10 +0200 Message-ID: Subject: Re: Is there a way of getting current xterm buffer? To: Sebastian Gniazdowski Cc: Zsh Users Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Seq: 29242 Archived-At: X-Loop: zsh-users@zsh.org Errors-To: zsh-users-owner@zsh.org Precedence: list Precedence: bulk Sender: zsh-users-request@zsh.org X-no-archive: yes List-Id: List-Help: , List-Subscribe: , List-Unsubscribe: , List-Post: List-Owner: List-Archive: On Wed, Sep 13, 2023 at 9:48=E2=80=AFAM Sebastian Gniazdowski wrote: > > Hi, > I would like to implement a from-screen-words completion. For this, > I need the current screen text. People have already used tmux for > this, however I don't use it. Is there a way to somehow read > screen-text/ I've have had hopes for it when reading xtermctl and > promptnl (this function reads cursor position, so I've thought that > maybe it could read the character at given position=E2=80=A6), but no > success at the end. In general, terminals don't have this capability. The only terminal I know that does is tmux. This isn't really a zsh question. Roman.