From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: zsh-workers-return-43712-ml=inbox.vuxu.org@zsh.org X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-1.1 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=ham autolearn_force=no version=3.4.2 Received: from primenet.com.au (ns1.primenet.com.au [203.24.36.2]) by inbox.vuxu.org (OpenSMTPD) with ESMTP id f3ece54c for ; Thu, 18 Oct 2018 16:28:09 +0000 (UTC) Received: (qmail 23890 invoked by alias); 18 Oct 2018 16:27:54 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: List-Unsubscribe: X-Seq: 43712 Received: (qmail 16974 invoked by uid 1010); 18 Oct 2018 16:27:54 -0000 X-Qmail-Scanner-Diagnostics: from mail-oi1-f179.google.com by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.99.2/21882. spamassassin: 3.4.1. Clear:RC:0(209.85.167.179):SA:0(-1.9/5.0):. Processed in 2.601282 secs); 18 Oct 2018 16:27:54 -0000 X-Envelope-From: sgniazdowski@gmail.com X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:from:date:message-id:subject:to :content-transfer-encoding; bh=NyPqWNRDJsXxBdBRsJrFbjnszIvtg6I4pV8WPXpfaJw=; b=kRTJ24/2cQO4aaEFhAneQhCFACEJMnIydvWpnssLWDcHKkVoEu5HLL9sErHJfsVUQK v/CyUsuzaNFOwFoLWFdS53m+vdAG5Jenu8x0dwRfOn9UkjIXs7lEj3eOo3bNzKqMgnfU 9/WbzrFo6gB9ek9/WymOcGly8Y3/dnFp19AlpllB3Sc1XIzFNco/KR/y9+Re+Zc1yrGc NnYrWwK70uD45TMKU1Zb9GpP9hBasjJSW/mz+yKUJm9quEwPP6TZelDULGDv8CXOPV9V 7Z/4TTiJq+M6lwERvN+9xwwUSs14aWohY8vQLCSCMl0wUSoME5HHtAxhpAfTLdIXku8n 3gug== 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:from:date:message-id :subject:to:content-transfer-encoding; bh=NyPqWNRDJsXxBdBRsJrFbjnszIvtg6I4pV8WPXpfaJw=; b=HUz+SO3jmPDwhYFBvyX66NvKTGTrwkHzjdZmRShTwBIjVlS7tdy88HHplmL6JzEBnB eknXqyzL79KlmWYMmiL6nlRi1YfUfrnYim9H6EoCYPtiUeMtgefbwrAyhxoFmwsAjidD 5YIx9RozeDmGd9lozuh9TGlIKBXhGjQ6xZ8Fhmn/i6GFrjIideEyTusiyIB7fsxcLwmc 1eZTesglM/AB/HeX5ImfURce2YqkjLjb3pINjUC4V9zTZV8wDcANOrNhtrYURnYZT4Xv 0uW5iaGjnpCxsXh5twQkk7pSaWbwl1+D4L4bLXQuSw6MZz0TQAlRo+YdUY5dBLx0D0M7 MMng== X-Gm-Message-State: ABuFfohB52C6+uju/lPKpYgHeEB5jSmRyiiXhy8Jeh+40UfCeH6mXTv5 u+a+WAyuF+hQTHI0817XbZ/uM7qxK3niZ1/RqX08IODF X-Google-Smtp-Source: ACcGV60lTL1KtMDAJQH9XRRnVEeKYp6ux9uUnzOY9OG6lQ2p48pCMbri2Nj0+t02IDuk2eLFlmFwL5QFIRIc2qg+nWA= X-Received: by 2002:aca:cc12:: with SMTP id c18-v6mr16181745oig.150.1539880067988; Thu, 18 Oct 2018 09:27:47 -0700 (PDT) MIME-Version: 1.0 References: From: Sebastian Gniazdowski Date: Thu, 18 Oct 2018 18:27:35 +0200 Message-ID: Subject: Re: Extend `zed' with status bar, is it possible? To: Zsh hackers list Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable I got some progress on this. vared's option -t allows to select tty. So I h= ave: % cat /usr/local/bin/bash5 #!/bin/sh tty tty > /tmp/ttynum sleep 200 Above is to get the tty created/used by tmux and make tmux just hang on sleep. Then to run: killtmux() { tmux kill-session -t vared_se; } zle -N killtmux saveterm=3D"$(stty -g)" tmux set -g default-shell /usr/local/bin/bash5 \; new-session -s vared_se & sleep 3 && vared -t "$( wrote: > > Hello > I'm looking at vared and it seems that there is no way to replace/append-= to vared's last line (last POSTDISPLAY line?) with some custom contents, ba= sically a status bar. Does someone know a way? > > Using zed to add debug-print lines / fine-tune modifications is a nice us= e-case, if done with syntax highlighting that includes brackets-highlightin= g. There is a group of developers that edit in-session (not hash-bang) scri= pts and could benefit from this =E2=80=93 theme (prompt) creators. As estab= lished earlier, this would be for say `zedex', an extended version of zed (= unsure if it will succeed to include in upstream). > > -- > Sebastian Gniazdowski > News: https://twitter.com/ZdharmaI > IRC: https://kiwiirc.com/client/chat.freenode.net:+6697/#zplugin > Blog: http://zdharma.org --=20 Sebastian Gniazdowski News: https://twitter.com/ZdharmaI IRC: https://kiwiirc.com/client/chat.freenode.net:+6697/#zplugin Blog: http://zdharma.org