Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Is there a way of getting current xterm buffer?
- X-seq: zsh-users 29242
- From: Roman Perepelitsa <roman.perepelitsa@xxxxxxxxx>
- To: Sebastian Gniazdowski <sgniazdowski@xxxxxxxxx>
- Cc: Zsh Users <zsh-users@xxxxxxx>
- Subject: Re: Is there a way of getting current xterm buffer?
- Date: Wed, 13 Sep 2023 11:16:10 +0200
- Archived-at: <https://zsh.org/users/29242>
- In-reply-to: <CAKc7PVDmdYC+7k5gLTabqmm=iSQg0W7oMLN3R=Na4W=Qmaz-8w@mail.gmail.com>
- List-id: <zsh-users.zsh.org>
- References: <CAKc7PVDmdYC+7k5gLTabqmm=iSQg0W7oMLN3R=Na4W=Qmaz-8w@mail.gmail.com>
On Wed, Sep 13, 2023 at 9:48 AM Sebastian Gniazdowski
<sgniazdowski@xxxxxxxxx> 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…), 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.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author