From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-3.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,HTML_MESSAGE,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED autolearn=ham autolearn_force=no version=3.4.4 Received: from zero.zsh.org (zero.zsh.org [IPv6:2a02:898:31:0:48:4558:7a:7368]) by inbox.vuxu.org (Postfix) with ESMTP id 51BCB2156B for ; Mon, 11 Nov 2024 19:13:56 +0100 (CET) ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1731348836; b=RMX2mtmILM0/TAM2AS/7kli9k8OxnawOW5UO1sHpd7c992vEa9taY/WUImqonFDgle1SDPYuVO K+CcrECk2qOebPy8V3+gd0n/p97Vlp6TBC9OgrCl19GIg+p9a2DufE5uR04wInkHnaVCStJ8I9 yhOV/rOapuF/WWIfBQwmnXSfF6NNHD4emYrplN5zeGBYgku8z9dOdrZ3PqfMS3kdIaZ2pVeX2z gLh0vS5H9vKoqxVAvynVhJ8cNHwErF8e/rMiydK1mHmRvJTgURb9QIIvyLsoKIk6Gd0Ox9i4FJ W288nWGD/JkBfEv3O7Mi1kjqIBK0xqSIQZu+Dd8Pke11gQ==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mail-pg1-f182.google.com) smtp.remote-ip=209.85.215.182; dkim=pass header.d=gmail.com header.s=20230601 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=1731348836; bh=fVA8zYutfUujVnMaA9YzJFhWYJHHN6kdq8SIWhZyj88=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Type:MIME-Version:In-Reply-To: Content-Transfer-Encoding:References:Message-ID:Subject:Cc:To:From:Date: DKIM-Signature:DKIM-Signature; b=kek522h9W0cBLogakt2GZRK/QOVnvkFo1sXc7zpZY1E4Z2kOlXqmsSM2d1G0TK99Ygt1hgEsk2 yVxb8F9EzK2qW7P1KrAlD/QA/fmf2Iz7zhHYzB2+TF1C93LUMM5wIr2447BjuHoXd1Y7Hco7Eu Ic7775Nlgm62VYMCfX7MSuTh3bhdrqZIhisodzr+hzFIFgbgmXOfYbtK0W5iuvzxzGgYGamH56 K+sTWB/DPXAdcu2zLSDMyg+YEBMk6666RehEVKT34BGinNVgmVOE254xImO76lJpxvLHfbmdsc D7ICL1fYaIJHhWOakvl5EWdKC0qkdvglxhexR3FZPHL9Vg==; 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-Type:MIME-Version:In-Reply-To :Content-Transfer-Encoding:References:Message-ID:Subject:Cc:To:From:Date: Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender :Resent-To:Resent-Cc:Resent-Message-ID; bh=fVA8zYutfUujVnMaA9YzJFhWYJHHN6kdq8SIWhZyj88=; b=psP9P5WUkSM4ZcBRoPrAFh/gCJ AGdWgkUJV5n2fnvBW1eaDRx3sNY3Cif4va8HucvLCQx7bgyjGtlgjmOS+91IyN6M0D2aHCPJyEh4f VP/vx9g2HEKFFWmNS1wh3oCrGbVlLNUIwVp5oxwHJXaj38nYRSKrfKKua/Gj7L7w9QQeVAHgoIboF c51CkjwMJfIfRuRhAM6yl9wuPGsUZZPq9fw5606yDmLixz96u2QDXKqIVuIhM+JTZnse6pOM0jGoE 5zlp9NEZI771Pn49LnaN8YiMx1zQLkm5xPDOBvXjP4qFsnxafI5SnHoJeSm7wOxwMj3AffDWQpD1x F//F2t3A==; Received: by zero.zsh.org with local id 1tAYvE-000GM6-Lp; Mon, 11 Nov 2024 18:13:56 +0000 Authentication-Results: zsh.org; iprev=pass (mail-pg1-f182.google.com) smtp.remote-ip=209.85.215.182; dkim=pass header.d=gmail.com header.s=20230601 header.a=rsa-sha256; dmarc=pass header.from=gmail.com; arc=none Received: from mail-pg1-f182.google.com ([209.85.215.182]:42413) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1tAYue-000Fbk-Ab; Mon, 11 Nov 2024 18:13:21 +0000 Received: by mail-pg1-f182.google.com with SMTP id 41be03b00d2f7-7e6d04f74faso3325660a12.1 for ; Mon, 11 Nov 2024 10:13:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1731348799; x=1731953599; darn=zsh.org; h=mime-version:pgp-key:in-reply-to:content-transfer-encoding :content-disposition:references:mail-followup-to:message-id:subject :cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=fVA8zYutfUujVnMaA9YzJFhWYJHHN6kdq8SIWhZyj88=; b=ZNnZh/UHHPmBZV79D4PNqzkboDuDJ5FQfUdChhHu/xfcaUpSacQIw/hAWKrHJNPLPy 2zNgPXVBbjekmDvX1n5UytUO9Ci4ENykbrNjESyTB+kDutTUKV8lLKhvHlOD6wqvzjwb FFMKuaoEwGg0kIsn8Le13Jkiv2vsozgxAiRJP8u0iBCSAuFXAH0leBM2vxm+Li2eWg60 id6tIcmVlrcsyq8nHlB/DhG653NGWfQtUENUeolbLKEPGfnE81J4vl5IUbCrizkErcCz 3Ep4H4L3W2bpRZYwQWxEFDLFNZ1fQ4B0o6ujRpIF/befGyV9DWt3oiNJPQskb3agmZ2N m88g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1731348799; x=1731953599; h=mime-version:pgp-key:in-reply-to:content-transfer-encoding :content-disposition:references:mail-followup-to:message-id:subject :cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=fVA8zYutfUujVnMaA9YzJFhWYJHHN6kdq8SIWhZyj88=; b=qOG0/Eo/o2iYgNLDDq1/WaiTguAE95FgtU3Z0UvShJs5/0c9jRKUaJ5R7xLP26UQHa +nv2tzAbSfaltq4AdWlvcFlKQwzMSZEktLr2ZVnQv2HC8GOWLUpU6s2KyvIH6SFY5KGy XPWaSvAu3pCAf9n1+D3ZD9hApa9r2b9OaYFX7ZECbc/Ui4kmM8VZGCAW5+Ob9+jC48Sv xBXg7gx43SOtWpQsO1MGcciXDQh4lgNhPofQ9ePKU6XKB21x4+lklcBQXvW4rSxG0kxW rSqDghWO6zwciVxsndKqGOPhX26D1TODA/vOn8kvVSEi1urWIdwQCU6VcNHFnzhFqo1I IXhQ== X-Gm-Message-State: AOJu0Yziw04lMdGNSSGO28F66qPP2JVdCB7ob59YZCSXd2bXF0BpmOBA oX/pyS49JHOxLiO092r2E3SEXTFm09WwVTRxTr627KA27+2F3qAg X-Google-Smtp-Source: AGHT+IF0J/X2Wniz8LIUPHBI7LSgoABOwJQsI0h7pNMQpzt2/JxZhkakVTmaoohjY/RoHQz1BCysjQ== X-Received: by 2002:a17:90b:1d8d:b0:2da:82d4:c63c with SMTP id 98e67ed59e1d1-2e9b0a13c0emr20516214a91.4.1731348798558; Mon, 11 Nov 2024 10:13:18 -0800 (PST) Received: from localhost (c-107-3-165-22.hsd1.ca.comcast.net. [107.3.165.22]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-2e9e34a4590sm143237a91.1.2024.11.11.10.13.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Nov 2024 10:13:18 -0800 (PST) Date: Mon, 11 Nov 2024 10:13:17 -0800 From: Eric Pruitt To: Ray Andrews Cc: zsh-users@zsh.org Subject: Re: monitor screen output Message-ID: Mail-Followup-To: Ray Andrews , zsh-users@zsh.org References: <4d7d4279-c30e-4c2d-9291-4ca985780673@eastlink.ca> <3436826a-2ed5-4161-9c42-91a226886249@eastlink.ca> Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <3436826a-2ed5-4161-9c42-91a226886249@eastlink.ca> PGP-Key: https://www.codevat.com/pgp.asc#F8601B5D2511B4C3535232488DDDE2E6053692AB MIME-Version: 1.0 Content-Type: multipart/alternative; charset="utf-8"; boundary="===============1825490979863282395==" X-Seq: 30103 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: --===============1825490979863282395== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit On Mon, Nov 11, 2024 at 09:18:31AM -0800, Ray Andrews wrote: > I think the terminal emulator I use does keep a file.  I'll look into that.  > It would be cool if every screen write tripped a flag somewhere tho, then it > would be easy.  Tx. Depending on what exactly you want to do, you could probably achieve this using tmux and some combination of its hooks, pane flags and/or pipe-pane. I recommend searching for "monitor-", "-hook" and "pipe-pane" in tmux(1). Whether this would be better than Expect would depend on the task at hand. If you don't already use tmux and aren't interested in using it, Expect is probably better. Eric --===============1825490979863282395== Content-Type: text/html; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit On Mon, Nov 11, 2024 at 09:18:31AM -0800, Ray Andrews wrote:

I think the terminal emulator I use does keep a file.  I'll look into that.  It would be cool if every screen write tripped a flag somewhere tho, then it would be easy.  Tx.

Depending on what exactly you want to do, you could probably achieve this using tmux and some combination of its hooks, pane flags and/or pipe-pane. I recommend searching for "monitor-", "-hook" and "pipe-pane" in tmux(1). Whether this would be better than Expect would depend on the task at hand. If you don't already use tmux and aren't interested in using it, Expect is probably better.

Eric

--===============1825490979863282395==--