Feature wanted: PTY support for interactive REPLs
Author: leana8959Created Sep 14, 2023Updated Oct 13, 2025
Labelsnot a bugimprovement
Problem Description
When used with Haskell's Cabal like this: watchexec -e --restart 'hs' 'cabal repl', the backspace fails to work.
Expected
Using backspace would delete the last character.
Actual
Using backspace creates an escaped code \?
Attempts
Using -n or --no-environment didn't change this behaviour.
If I remember correctly, this didn't happen with Scala's sbt in repl mode.
Misc
Watchexec's version: watchexec 1.23.0 (2023-08-30) build-date: 2023-08-30 release: 1.23.0 features:
The OS you're using: macOS 13.5.2
A log with
-vvv --log-filehttps://gist.github.com/leana8959/6d7afb8d892d5138eac4349bba7c51ae
Thank you for the help, have a nice day :)
Source: watchexec/watchexec