xterm-addon-search-bar
Version:
[](https://github.com/yinshuxun/xterm-addon-search-bar/actions) [ • 1.34 kB
Markdown
//github.com/yinshuxun/xterm-addon-search-bar/workflows/ci/badge.svg?branch=master&event=push)](https://github.com/yinshuxun/xterm-addon-search-bar/actions)
[](https://github.com/yinshuxun/xterm-addon-search-bar/actions)
[](https://www.npmjs.com/package/xterm-addon-search-bar)

An addon for [xterm.js](https://github.com/xtermjs/xterm.js) that enables show search bar in terminal. This addon requires xterm.js & xterm-addon-search v4+.
```bash
npm install --save xterm-addon-search-bar
```
```ts
import { Terminal } from 'xterm';
import { SearchAddon } from 'xterm-addon-search';
import { SearchAddonBar } from 'xterm-addon-search-bar';
const terminal = new Terminal();
const searchAddon = new SearchAddon();
const searchAddonBar = new SearchAddonBar({searchAddon});
terminal.loadAddon(searchAddon);
terminal.loadAddon(searchAddonBar);
// Can be uesd in a action as click
searchAddonBar.show();
```
See the full [API](https://github.com/yinshuxun/xterm-addon-search-bar/typings/index.d.ts) for more advanced usage
[![Build Status](https: