MCPcopy Index your code
hub / github.com/Qovery/react-xtermjs

github.com/Qovery/react-xtermjs @v1.0.10

Chat with this repo
repository ↗ · DeepWiki ↗ · release v1.0.10 ↗ · + Follow
5 symbols 16 edges 9 files 0 documented · 0% 3 cross-repo links updated 2d agov1.0.10 · 2025-04-25★ 1101 open issues

Browse by type

Functions 3 Types & classes 2
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

XTerm.js for React

A React library to use the powerful of Xterm.js

npm version npm download

Getting Started

Installation

NPM:

    npm install @xterm/xterm react-xtermjs

Yarn:

    yarn add @xterm/xterm react-xtermjs

Usage

useXTerm hook:

import React, { useRef, useEffect } from 'react'
import { useXTerm } from 'react-xtermjs'

const MyTerminal = () => {
  const { instance, ref } = useXTerm()
  instance?.writeln('Hello from react-xtermjs!')
  instance?.onData((data) => instance?.write(data))

  return 


}

XTerm component:

const MyTerminal = () => {
  const onData = (data) => {
    console.log(`Received data: ${data}`)
  }

  const onResize = (cols, rows) => {
    console.log(`Terminal resized to ${cols} columns and ${rows} rows`)
  }

  return (
    <XTerm
      options={{ cursorBlink: true }}
      style={{ width: '100%', height: '100%' }}
      listeners={{
        onData,
        onResize,
      }}
    />
  )
}

For a full list of available parameters, refer to the XTerm.js documentation: XTerm.js Docs.
Plus, find a complete example with add-ons of our Console at Qovery here.


react-xtermjs is initiated and maintained by Qovery

Extension points exported contracts — how you extend this code

Core symbols most depended-on inside this repo

Shape

Function 3
Interface 2

Languages

TypeScript100%

Modules by API surface

src/xterm.tsx4 symbols
example/src/App.jsx1 symbols

Used by 3 indexed graphs manifest dependencies, hub-wide

For agents

$ claude mcp add react-xtermjs \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page