butlerx / wetty

Terminal in browser over http/https. (Ajaxterm/Anyterm alternative, but much better)
https://butlerx.github.io/wetty
MIT License
4.26k stars 670 forks source link

Just started wetty & xterm and got two blocking issues, perhaps solvable #532

Open kopax opened 1 month ago

kopax commented 1 month ago

Hi guys,

I am using wetty@2.6.0 which under the hood use xterm.js:

{
    "xterm": "^5.0.0",
    "xterm-addon-fit": "^0.6.0",
    "xterm-addon-image": "^0.2.0",
    "xterm-addon-web-links": "^0.7.0"
}

So far I have only two big issue :

  1. I don´t go into my entrpoint .bashrc and cannot load utils from my $PATH (ie ~/.local/bin)
  2. The addon xterm-addon-fit method fit() does not resize properly, see here code

image

I selected the zone where stdout print, so half of the screen is unused, which is big

Do you guys have a clue if those can be resolved somehow ?

amarzot-lowell-instruments commented 1 month ago

(Edit: This is only for the 2nd issue) Could you checkout the main branch and see if you have the same issue? I have the same issue with 2.6.0, but fixed in the latest code. @butlerx I think we will need a new release to fix this.

You should checkout the repo then run

pnpm i
pnpm build
pnpm start <set your options here>