I am currently playing around with using Play Framework on cygwin. I noticed that Typesafe Activator, which has replaced the play command in recent Play versions, ruins the mintty terminal of cygwin: you won’t see any echo of your keystrokes after activator returns.
A simple solution is to blindly type stty sane
into the terminal, which will reset it. Another way is, to wrap the activator in a special cygwin-activator bash script:
#!/bin/bash
activator $@
R=$?
stty sane
exit $R
Thank you! I’m a cygwin+mintty user and just stumbled across this issue. I was sceptical that google would offer help, but your post popped up first and solved the problem. You should send the wrapper to the Typesafe guys.
Glad it was useful to somebody else. Hopefully I find some time to prepare to send to the Typesafe guys.
Useful info.
Thanks for posting this – but I have a question. How does one use this? Is it a script, do we put it in our .bash_rc or .bash_profile? How do we use this?
I know it may seem very basic, but I’d appreciate some more how-to. Thanks!
@Mike
Add this as a new script to
$HOME/bin/cygwin-activator
,chmod +x $HOME/bin/cygwin-activator
and then ensure, that your$HOME/bin
is in your path. I normally have the following line in my.bashrc
:export PATH=$HOME/bin:$PATH
Then you can use
cygwin-activator
anywhere you’d useactivator
.