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 Pty
create()
static Pty
create(String terminalType)
boolean
equals(Object o)
io.vertx.ext.shell.term.Pty
getDelegate()
int
hashCode()
static Pty
newInstance(io.vertx.ext.shell.term.Pty arg)
Pty
setSize(int width, int height)
Tty
slave()
Pty
stdoutHandler(Consumer<String> handler)
String
toString()
Pty
write(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)
-
-