Directory

← Back

XTerm Console Addon

Vaadin 14+ Java integration of xterm.js terminal emulator.

Author

Rating

Popularity

200+

Features

  • Send input text to server
  • Programmatically write to the console
  • Clipboard support
  • Command line edition (cursor keys, insert, etc.)
  • ANSI escape sequences
  • And much more...

Sample code

XTerm xterm = new XTerm();
xterm.writeln("Hello world.\n\n");
xterm.setCursorBlink(true);
xterm.setCursorStyle(CursorStyle.UNDERLINE);
    	
xterm.setSizeFull();
xterm.loadFeature(new XTermClipboard(), clipboard->{
    clipboard.setCopySelection(true);
    clipboard.setUseSystemClipboard(UseSystemClipboard.READWRITE);
    clipboard.setPasteWithRightClick(true);
});

xterm.loadFeature(new XTermConsole(), console->{
    console.addLineListener(ev->{
    String line = ev.getLine();
    System.out.println(line);
});	
		
xterm.focus();
    	
xterm.getFeature(XTermFit.class).ifPresent(fit->{
   fit.fit();
});

Compatibility

(Loading compatibility data...)

Was this helpful? Need more help?
Leave a comment or a question below. You can also join the chat on Discord or ask questions on StackOverflow.

Version

Bug fixes:

  • Import customElement from lit/decorators (#82)

New features:

  • Use Lombok version for Java 21
Released
2024-04-08
Maturity
TESTED
License
Apache License 2.0

Compatibility

Framework
Vaadin 24
Vaadin 14 in 1.0.0
Vaadin 21 in 2.0.0
Vaadin 23 in 2.0.0
Vaadin 22 in 2.0.0
Browser
N/A

XTerm Console Addon - Vaadin Add-on Directory

Vaadin 14+ Java integration of xterm.js terminal emulator. XTerm Console Addon - Vaadin Add-on Directory
Features * Send input text to server * Programmatically write to the console * Clipboard support * Command line edition (cursor keys, insert, etc.) * ANSI escape sequences * And much more...
Online