@xmzhou/rc-terminal
TypeScript icon, indicating that this package has built-in type declarations

0.1.1 • Public • Published

安装

npm install @xmzhou/rc-terminal

API

export interface RC_TERMINAL_REF extends Terminal {
    fitAddon: FitAddon,
    webLinksAddon: WebLinksAddon,
}

export interface RC_TERMINAL {
  /**
   * 自定义样式
   */
  className?: string;
  /**
   * 内容是否只读
   */
  readonly?: boolean;
  /**
   * 初始化配置
   */
  initOptions?: ITerminalOptions & ITerminalInitOnlyOptions
  /**
   * ref对象,返回terminal对象
   */
  ref?: React.MutableRefObject<RC_TERMINAL_REF>;
  /**
   * 输入模式下的前缀,`readonly=false`时有效
   */
  inputPrefix?: string;
  /**
   * 输入模式输入内容,按回车键触发,`readonly=false`时有效
   */
  onPressEnter?: (str: string) => void;
}

Readme

Keywords

none

Package Sidebar

Install

npm i @xmzhou/rc-terminal

Weekly Downloads

2

Version

0.1.1

License

MIT

Unpacked Size

24.2 kB

Total Files

18

Last publish

Collaborators

  • zhouxiaoming520