Java Code Examples for org.jline.terminal.Terminal#puts()

The following examples show how to use org.jline.terminal.Terminal#puts() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: CliView.java    From Flink-CEPplus with Apache License 2.0 5 votes vote down vote up
private void unsetTerminalFullScreen() {
	final Terminal terminal = client.getTerminal();

	terminal.puts(Capability.exit_ca_mode);
	terminal.puts(Capability.keypad_local);
	terminal.puts(Capability.cursor_visible);
}
 
Example 2
Source File: CliView.java    From flink with Apache License 2.0 5 votes vote down vote up
private void unsetTerminalFullScreen() {
	final Terminal terminal = client.getTerminal();

	terminal.puts(Capability.exit_ca_mode);
	terminal.puts(Capability.keypad_local);
	terminal.puts(Capability.cursor_visible);
}
 
Example 3
Source File: DefaultBuiltInCommand.java    From super-cloudops with Apache License 2.0 5 votes vote down vote up
/**
 * See:<a href=
 * "https://github.com/jline/jline3/issues/183">https://github.com/jline/jline3/issues/183</a>
 */
@ShellMethod(keys = { INTERNAL_CLEAR, INTERNAL_CLS }, group = DEFAULT_GROUP, help = "Clean up console history")
public void clear() {
	Terminal terminal = runner.getLineReader().getTerminal();
	terminal.puts(Capability.clear_screen);
	terminal.flush();
}
 
Example 4
Source File: CliView.java    From flink with Apache License 2.0 5 votes vote down vote up
private void unsetTerminalFullScreen() {
	final Terminal terminal = client.getTerminal();

	terminal.puts(Capability.exit_ca_mode);
	terminal.puts(Capability.keypad_local);
	terminal.puts(Capability.cursor_visible);
}
 
Example 5
Source File: CliView.java    From Flink-CEPplus with Apache License 2.0 4 votes vote down vote up
private void ensureTerminalFullScreen() {
	final Terminal terminal = client.getTerminal();
	terminal.puts(Capability.enter_ca_mode);
	terminal.puts(Capability.keypad_xmit);
	terminal.puts(Capability.cursor_invisible);
}
 
Example 6
Source File: CliView.java    From flink with Apache License 2.0 4 votes vote down vote up
private void ensureTerminalFullScreen() {
	final Terminal terminal = client.getTerminal();
	terminal.puts(Capability.enter_ca_mode);
	terminal.puts(Capability.keypad_xmit);
	terminal.puts(Capability.cursor_invisible);
}
 
Example 7
Source File: CliView.java    From flink with Apache License 2.0 4 votes vote down vote up
private void ensureTerminalFullScreen() {
	final Terminal terminal = client.getTerminal();
	terminal.puts(Capability.enter_ca_mode);
	terminal.puts(Capability.keypad_xmit);
	terminal.puts(Capability.cursor_invisible);
}