johackim / rdcli

The simple way to download and unrestrict DDL files, torrents and magnets
GNU General Public License v3.0
131 stars 16 forks source link

Issue with Ctrl-break in VSC Powershell #49

Open nocodehummel opened 1 year ago

nocodehummel commented 1 year ago

After exiting rdcli in a Powershell terminal in VSC and starting a Node.js server, that server does not respond to Ctrl-break (SIGTERM). I have tested many scenarios to find a root-cause and this is somehow caused by this Redis client in the following reproduction path.

  1. Open a Powershell terminal in VSC.
  2. Execute rdcli to connect with a remote Redis instance.
  3. exit the Redis client (with/without any other command).
  4. Start Node.js server with npm run next.
  5. Ctrl-break is not working to stop the server.

According the Node.js documentation SIGTERM in Windows does not work when the terminal raw mode is enabled. A search on this repo does however not give any hits on setRawMode.

It would be great if this annoyance could be resolved.