a method of getting ttyd working on windows.

in #programming4 years ago

Id just like to share a method i figured out in terms of getting ttyd (a web based terminal) running under windows with minimal dependencies
first things first you will need ttyd you can find the windows binaries attached to this issue. https://github.com/tsl0922/ttyd/issues/101

will also need winpty from here https://github.com/rprichard/winpty/releases (download the msys2 x64 release)

then extract both to the same folder like so

(for the tar.gz use something like 7zip to first open the gz then open the tar and then copy the contents of the bin folder and paste them into the same folder as where you extracted ttyd-x64.zip)

Once you extracted both and your folder looks similar to mine its time to start the process open powershell inside the folder and then run the command .\ttyd.exe "cmd" this will launch the webterminal

open the url http://localhost:7681 in your webrowser of choice

your window should look something like this.

finally run winpty powershell

finally your window should look like this.
This last step in setting up the proccess is important because without it some programs wont show up inside the web terminal.

Sort:  

Congratulations @jfmherokiller! You have completed the following achievement on the Hive blockchain and have been rewarded with new badge(s) :

You got more than 50 replies. Your next target is to reach 100 replies.

You can view your badges on your board And compare to others on the Ranking
If you no longer want to receive notifications, reply to this comment with the word STOP

To support your work, I also upvoted your post!

Do not miss the last post from @hivebuzz:

Project Activity Update
Support the HiveBuzz project. Vote for our proposal!

I might follow this up with how to get cordless and telegramtui running