I'm in a bad spot. I spent 8 month's working on a portfolio project believing that I could render terminal hyperlinks in the node library called Blessed. My problem is that I thought I was doing it successfully at one point, but now realized it's not happening (I probably mislead myself by successfully outputting directly to node, and later wrongly convinced myself I did it in Blessed). What I'm humbly asking here is if someone can solve the issue, outlined here, either through available Blessed methods or modifying Blessed. Please see my code below. Thanks for considering my plight.
import terminalLink from 'terminal-link'
import React, { useRef, useState, useEffect } from 'react';
import blessed, { box } from 'blessed';
import { render } from 'react-blessed';
const App = () => {
const link = terminalLink("Example", "http://example.com")
return (
<box
left="0"
mouse
inputOnFocus
tags
top="0"
width="100%"
height="100%"
border={{type: 'line'}}
>
{link}
</box>
);
};
const screen = blessed.screen({
autoPadding: true,
smartCSR: true,
title: 'Termichat'
});
screen.key(['escape', 'q', 'C-c', 'C-e', 'enter', 'C-enter'], (ch, key) => {
if (key.sequence === '\x1B' || ch === 'q') {
process.exit(0)
}
});
const component = render(<App />, screen);