Core Library0.xAPI Reference

Choose documentation 3

latest

Current version

latest
English

Early release libtmux is released, and its APIs may still change between releases. This site's structure and URLs may change too.

method libtmux-java latest

TypedText.withoutEcho

The lines with each recorded echo taken out, wherever it stands as an echo does.

Source and package
Qualified name
io.github.libtmux.TypedText.withoutEcho
Package
io.github.libtmux
Declared in
TypedText
Distribution
io.github.libtmux:libtmux
Source
libtmux/src/main/java/io/github/libtmux/TypedText.java
@ReadOnly public List<String> withoutEcho(List<String> lines)

Description#

An occurrence is taken out only where it is not part of a longer word on either side. That is what keeps the answer when the answer merely contains the question — id comes off $ id and stays inside uid=1000 — while still taking out every copy of an echo a shell drew more than once, and one a shell drew something straight after. A row the echo shared with real output keeps that output.

What no rule can do is tell an echo from output that repeats the whole typed line as a line of its own. Wait for something the command prints rather than something it says.

The lines are scanned as one string, so an echo the terminal broke across rows is still found. Pass lines with wrapping already rejoined when the text being watched for can itself be broken across rows. A shell redraw or truncated capture that retains only part of an echo cannot be recognized reliably.

Parameters
Esc

Type to search.

Reference previewOpen reference