Skip to content

Commit 6fcf987

Browse files
committedMar 3, 2023
Add some javadoc on Terminal getAttributes/setAttributes
1 parent b0b4f70 commit 6fcf987

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed
 

‎terminal/src/main/java/org/jline/terminal/Terminal.java

+13
Original file line numberDiff line numberDiff line change
@@ -180,8 +180,21 @@ interface SignalHandler {
180180

181181
boolean echo(boolean echo);
182182

183+
/**
184+
* Returns the terminal attributes.
185+
* The returned object can be safely modified
186+
* further used in a call to {@link #setAttributes(Attributes)}.
187+
*
188+
* @return the terminal attributes.
189+
*/
183190
Attributes getAttributes();
184191

192+
/**
193+
* Set the terminal attributes.
194+
* The terminal will perform a copy of the given attributes.
195+
*
196+
* @param attr the new attributes
197+
*/
185198
void setAttributes(Attributes attr);
186199

187200
/**

0 commit comments

Comments
 (0)
Please sign in to comment.