Package io.vertx.mutiny.ext.shell.term
Class Pty
- java.lang.Object
-
- io.vertx.mutiny.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()static Ptycreate(String terminalType)booleanequals(Object o)io.vertx.ext.shell.term.PtygetDelegate()inthashCode()static PtynewInstance(io.vertx.ext.shell.term.Pty arg)PtysetSize(int width, int height)Ttyslave()PtystdoutHandler(Consumer<String> handler)StringtoString()Ptywrite(String data)
-
-
-
Constructor Detail
-
Pty
public Pty(io.vertx.ext.shell.term.Pty delegate)
-
Pty
public Pty(Object delegate)
-
-
Method Detail
-
getDelegate
public io.vertx.ext.shell.term.Pty getDelegate()
-
create
public static Pty create()
- Returns:
-
create
public static Pty create(String terminalType)
- Parameters:
terminalType- the terminal type, for instance- Returns:
- the created pseudo terminal
-
stdoutHandler
public Pty stdoutHandler(Consumer<String> handler)
- Parameters:
handler- the standard output- Returns:
-
write
public Pty write(String data)
- Parameters:
data- the data to write- Returns:
- this current object
-
setSize
public Pty setSize(int width, int height)
- Parameters:
width-height-- Returns:
- this current object
-
slave
public Tty slave()
- Returns:
- the pseudo terminal slave
-
newInstance
public static Pty newInstance(io.vertx.ext.shell.term.Pty arg)
-
-