Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How do you install contours terminfo over ssh? #1318

Open
ferdinandyb opened this issue Oct 28, 2023 · 5 comments
Open

How do you install contours terminfo over ssh? #1318

ferdinandyb opened this issue Oct 28, 2023 · 5 comments
Labels
enhancement New feature or request feature-request User requested features

Comments

@ferdinandyb
Copy link
Contributor

For those of us who have no idea about these stuff: can you add a oneliner somewhere that installs terminfo on a remote computer? Possibly a version where one has root and where one does not.

Thanks!

@ferdinandyb ferdinandyb added enhancement New feature or request feature-request User requested features labels Oct 28, 2023
@whisperity
Copy link
Member

The wireframe is as follows:

contour generate terminfo to file
scp file machine:
ssh machine tic file

tic will automatically put the resulting binary into ~/.terminfo, so when you then connect with an active shell it'll already recognise it.

I have an sshrc that deals with spinning up an agent if you aren't forwarding one, I will look into extending that with the calling of terminfo and creating a local wrapper over the ssh command.

@whisperity
Copy link
Member

The biggest killer here is having to come up with a script that works (can find contour, acts as if it was the ssh command, etc.) on the Windows side of things when ran as a client...

@christianparpart
Copy link
Member

The binary terminfo file is packaged along with the packages (Not sure for Windows right out of my head though).

I am not sure it's good to require users to use tic to compile the contour generated terminfo source file.

It's probably a good idea to put that file into the release page for a single-file download as well (for use-cases like yours).

I think we can add an option (/a flag) to contour CLI to output the compiled terminfo file rather than the source terminfo file. But that requires a little bit of indirection during build step (not impossible).

@Yaraslaut
Copy link
Member

I think that solution that @whisperity pointed out is the optimal one, you also can install contour from on server and terminfo file will be installed alongside.

@ferdinandyb
Copy link
Contributor Author

I've personally gotten to use infocmp | ssh [machine] tic - for a oneliner.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request feature-request User requested features
Projects
None yet
Development

No branches or pull requests

4 participants