0

I have a write code like about search into the xtermjs terminal. But it return always false

const term = new Terminal({
    cursorStyle: "block",
    cursorBlink: true,
    theme: {
        foreground: isDarkMode ? "black" : "white",
        background: isDarkMode ? "white" : "black",
        selectionBackground: isDarkMode ? "black" : "white",
        selectionForeground: !isDarkMode ? "black" : "white"
    },
    allowProposedApi: true,
})



const searchAddon = new SearchAddon()
term.loadAddon(searchAddon)
searchAddon.activate(term)

const searchNext = (searchValue: string) => {
   searchAddon.findNext(searchValue)
}

Searching in the terminal

Result of the search

  • Please clarify your specific problem or provide additional details to highlight exactly what you need. As it's currently written, it's hard to tell exactly what you're asking. – Community Nov 11 '22 at 16:21

0 Answers0