YOUR JAVA TECH COACH
Plan | Create | Deliver

3-Session Junior Developer Coaching Plan

  • Agile Mindset
  • Communication Skills
  • Team dynamics and how to survive them
  • Spring Boot Intro
  • Basic Design Patterns
  • Modern Engineerng Practice
  • Career Advice
  • How to get that next levele gig?
SUMMER 2025
Get a discount simply by making an enquiry: TECHLAYOFF

CONSULTANCY

A Remedy for the Typesafe Activators messes up my Cygwin terminal

15 June 2015 Comments off

1 minute

146

Using the Type Activator activator command causes the terminal to become invisible.
This bug actually existed in Play Framework 2 and even earlier. It is still around today and it is really annoying
when using Cygwin Terminal!

My solution is to write a custom BASH script called myactivator:

#!/bin/bash
myname=`basename $0`
## PrefixCmd='echo =>'
${PrefixCmd} trap "stty erase" EXIT SIGINT SIGTERM SIGHUP
${PrefixCmd} activator "$@"
status=$?
${PrefixCmd} stty sane
echo "Exit Status: $status"
exit $status

My script wraps the Typesafe activator shell script and when it terminates, it resets the UNIX terminal to a sane state again.
Place this in your ~/bin folder and add the folder to your PATH environment variable.
You also need to make sure it is runnable with chmod 755 ~/bin/myactivator.

Now you can type myactivator clean and myactivator test, etc

+PP+

Hey all! Thanks for visiting. I provide fringe benefits to interested readers: checkout consultancy, training or mentorship Please make enquiries by email or
call +44 (0)7397 067 658.

Due to the Off-Payroll Working plan for the UK government, I am enforcing stricter measures on contracts. All potential public sector GOV.UK contracts engagements must be approved by QDOS and/or SJD Accounting. Please enquire for further information.