Class Terminal

java.lang.Object
cn.mapway.xterm.client.Terminal
All Implemented Interfaces:
IDisposable

@JsType(isNative=true, namespace="<global>", name="Terminal") public class Terminal extends Object implements IDisposable
Terminal Xterm.js Main UI
Author:
zhangjianshe <zhangjianshe@gmail.com>
  • Constructor Details

    • Terminal

      public Terminal(TerminalOptions options)
      构造一个终端对象
      Parameters:
      options -
  • Method Details

    • onKey

      @JsMethod public IDisposable onKey(IOnKeyHandler handler)
    • open

      public void open(com.google.gwt.dom.client.Element e)
      打开一个终端
      Parameters:
      e -
    • getOptions

      @JsProperty public TerminalOptions getOptions()
    • getCols

      @JsProperty public int getCols()
    • getElement

      @JsProperty public com.google.gwt.dom.client.Element getElement()
    • getRows

      @JsProperty public int getRows()
    • write

      public void write(String data)
    • writeln

      public void writeln(String data)
    • resize

      public void resize(int columns, int rows)
    • scrollLines

      public void scrollLines(int amount)
    • reset

      public void reset()
    • paste

      public void paste(String data)
    • refresh

      public void refresh(int start, int end)
    • loadAddon

      public void loadAddon(ITerminalAddon addon)
    • hasSelection

      public boolean hasSelection()
    • getSelection

      public String getSelection()
    • getSelectionPosition

      public ISelectionPosition getSelectionPosition()
    • getOption

      public elemental2.core.JsObject getOption(String key)
    • focus

      public void focus()
    • deregisterLinkMatcher

      public void deregisterLinkMatcher(Integer matcherId)
    • deregisterCharacterJoiner

      public void deregisterCharacterJoiner(Integer joinerId)
    • clearSelection

      public void clearSelection()
    • clear

      public void clear()
    • blur

      public void blur()
    • scrollToBottom

      public void scrollToBottom()
    • scrollToTop

      public void scrollToTop()
    • scrollToLine

      public void scrollToLine(int line)
    • select

      public void select(int column, int row, int length)
    • selectAll

      public void selectAll()
    • selectLines

      public void selectLines(int start, int end)
    • setOption

      public void setOption(String key, elemental2.core.JsObject value)
      fontFamily” “termName” “bellSound” “wordSeparator”,
      Parameters:
      key -
      value -
    • dispose

      public void dispose()
      Specified by:
      dispose in interface IDisposable
    • setTheme

      @JsOverlay public final void setTheme(Theme theme)