Skip to content

Commit

Permalink
Add a AbstractTerminal#toString() method (#1131)
Browse files Browse the repository at this point in the history
  • Loading branch information
gnodet authored Dec 10, 2024
1 parent 8929f9b commit 9739c62
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -94,4 +94,13 @@ public TerminalProvider getProvider() {
public SystemStream getSystemStream() {
return getPty().getSystemStream();
}

@Override
public String toString() {
return getKind() + "[" + "name='"
+ name + '\'' + ", pty='"
+ pty + '\'' + ", type='"
+ type + '\'' + ", size='"
+ getSize() + '\'' + ']';
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -287,4 +287,12 @@ public boolean paused() {
public ColorPalette getPalette() {
return palette;
}

@Override
public String toString() {
return getKind() + "[" + "name='"
+ name + '\'' + ", type='"
+ type + '\'' + ", size='"
+ getSize() + '\'' + ']';
}
}

0 comments on commit 9739c62

Please sign in to comment.