Package io.vertx.rxjava.ext.shell.term
Class Pty
- java.lang.Object
-
- io.vertx.rxjava.ext.shell.term.Pty
-
public class Pty extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static TypeArg<Pty>__TYPE_ARG
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Ptycreate()Create a new pseudo terminal with no terminal type.static Ptycreate(String terminalType)Create a new pseudo terminal.booleanequals(Object o)PtygetDelegate()inthashCode()static PtynewInstance(Pty arg)PtysetSize(int width, int height)Resize the terminal.Ttyslave()PtystdoutHandler(Handler<String> handler)Set the standard out handler of the pseudo terminal.StringtoString()Ptywrite(String data)Write data to the slave standard input of the pseudo terminal.
-
-
-
Method Detail
-
getDelegate
public Pty getDelegate()
-
create
public static Pty create()
Create a new pseudo terminal with no terminal type.- Returns:
-
create
public static Pty create(String terminalType)
Create a new pseudo terminal.- Parameters:
terminalType- the terminal type, for instance- Returns:
- the created pseudo terminal
-
stdoutHandler
public Pty stdoutHandler(Handler<String> handler)
Set the standard out handler of the pseudo terminal.- Parameters:
handler- the standard output- Returns:
- this current object
-
write
public Pty write(String data)
Write data to the slave standard input of the pseudo terminal.- Parameters:
data- the data to write- Returns:
- this current object
-
setSize
public Pty setSize(int width, int height)
Resize the terminal.- Parameters:
width-height-- Returns:
- this current object
-
slave
public Tty slave()
- Returns:
- the pseudo terminal slave
-
-