tsl0922 / ttyd

Share your terminal over the web
https://tsl0922.github.io/ttyd
MIT License
8.02k stars 880 forks source link

rz upload file break something #1121

Open destinytaoer opened 1 year ago

destinytaoer commented 1 year ago

Describe the bug i use rz to upload file, the modal show me to choose files, but i stop and wait sometime, it seems to output something strange and never stop before i refresh this page. when i choose some files, it doesn't stop either

image

To Reproduce Steps to reproduce the behavior:

  1. start ttyd use 'ttyd -p 8080 zsh'
  2. input 'rz', and stop on the choose file modal
  3. wait for a moment
  4. See something strange output interval

Expected behavior no strange output, and i can close the choose file modal

Screenshots image image

Environment:

destinytaoer commented 1 year ago

it also happen in bash, not just zsh

tsl0922 commented 1 year ago

You need -t enableZmodem=true to enable zmodem support from ttyd 1.7.3

The rz modal can not be interrupted for now, I will add a close button as long as zmodem supports it.