Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Saving physical Zle buffers to snapshot escape codes
- X-seq: zsh-users 23567
- From: Sebastian Gniazdowski <sgniazdowski@xxxxxxxxx>
- To: Zsh Users <zsh-users@xxxxxxx>
- Subject: Saving physical Zle buffers to snapshot escape codes
- Date: Tue, 7 Aug 2018 06:44:24 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=peoRf9VWq3DUPS25rNCvB6liL2Gm7ynh9YS8zMAywRc=; b=IlhsOfX8VWlhmQgCnMaCN8T9VRK2Z7XlOVa4iIbw5npOYwg1XtndvmJszNDkmYdsfK M++kGoz+LMiDuQP0FWEaFQYduXWvrIqPcDSCMhp+VqwoOhCXKk4L/qJJy+sEVXNIRBEl lOyvVs8tx6XMkERS5wkCV1n5Kgc78NCpqoe/b2nbGjgb2AanJINgPeSdXUzTjRZNz+4k KWzaIZq7iSb7TSFPN/8QJIFZw61qWvOi2kwrT+JySLeYQboTprgVEasp8x/bIh1Zgen+ WBLb2/UDyLTXdwRRCGuUErLefiY6WiapmWaMC5unZ9HjY6SlUSegpMb50Lqa81e61+Tw NUdg==
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- List-unsubscribe: <mailto:zsh-users-unsubscribe@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
Hello,
would it be hard to snapshot current Zle buffers (basically BUFFER and
POSTDISPLAY) sent to terminal? I.e. with all escape codes used to
drive terminal into e.g. changing color of text. Basically a
"screenshot" feature.
A user asked how to use F-Sy-H as a highlighter like pygments. That's
rather impossible currently, but I thought about at least getting
escaped Zle text into e.g. ZSH_RAW_BUFFER by calling a Zle widget, to
then e.g. use some converter and obtain HTML. This might be useful.
Maybe even pygments-like setup would be possible, Zsh would be started
in background as a server and print-out ZSH_RAW_BUFFER on demand,
after receiving request via zle -F handler.
--
Sebastian Gniazdowski
News: https://twitter.com/ZdharmaI
IRC: https://kiwiirc.com/client/chat.freenode.net:+6697/#zplugin
Messages sorted by:
Reverse Date,
Date,
Thread,
Author