{"id":1847,"date":"2015-06-15T17:57:49","date_gmt":"2015-06-15T16:57:49","guid":{"rendered":"http:\/\/www.xenonique.co.uk\/blog\/?p=1847"},"modified":"2015-06-15T17:57:49","modified_gmt":"2015-06-15T16:57:49","slug":"a-remedy-for-the-typesafe-activators-messes-up-my-cygwin-terminal","status":"publish","type":"post","link":"https:\/\/www.xenonique.co.uk\/blog\/2015\/06\/15\/a-remedy-for-the-typesafe-activators-messes-up-my-cygwin-terminal\/","title":{"rendered":"A Remedy for the Typesafe Activators messes up my Cygwin terminal"},"content":{"rendered":"<p>Using the Type Activator <code>activator<\/code> command causes the terminal to become invisible.<br \/>\nThis bug actually existed in Play Framework 2 and even earlier. It is still around today and it is really annoying<br \/>\nwhen using Cygwin Terminal! <\/p>\n<p>My solution is to write a custom BASH script called <code>myactivator<\/code>:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\n#!\/bin\/bash\r\nmyname=`basename $0`\r\n## PrefixCmd='echo =&gt;'\r\n${PrefixCmd} trap &quot;stty erase&quot; EXIT SIGINT SIGTERM SIGHUP\r\n${PrefixCmd} activator &quot;$@&quot;\r\nstatus=$?\r\n${PrefixCmd} stty sane\r\necho &quot;Exit Status: $status&quot;\r\nexit $status\r\n<\/pre>\n<p>My script wraps the Typesafe activator shell script and when it terminates, it resets the UNIX terminal to a sane state again.<br \/>\nPlace this in your <code>~\/bin<\/code> folder and add the folder to your <code>PATH<\/code> environment variable.<br \/>\nYou also need to make sure it is runnable with <code>chmod 755 ~\/bin\/myactivator<\/code>.<\/p>\n<p>Now you can type <code>myactivator clean<\/code> and <code>myactivator test<\/code>, etc<\/p>\n<p>+PP+<\/p>\n","protected":false},"excerpt":{"rendered":"<p>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: My script wraps the Typesafe activator shell [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[75,165,6],"tags":[],"_links":{"self":[{"href":"https:\/\/www.xenonique.co.uk\/blog\/wp-json\/wp\/v2\/posts\/1847"}],"collection":[{"href":"https:\/\/www.xenonique.co.uk\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.xenonique.co.uk\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.xenonique.co.uk\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.xenonique.co.uk\/blog\/wp-json\/wp\/v2\/comments?post=1847"}],"version-history":[{"count":4,"href":"https:\/\/www.xenonique.co.uk\/blog\/wp-json\/wp\/v2\/posts\/1847\/revisions"}],"predecessor-version":[{"id":1851,"href":"https:\/\/www.xenonique.co.uk\/blog\/wp-json\/wp\/v2\/posts\/1847\/revisions\/1851"}],"wp:attachment":[{"href":"https:\/\/www.xenonique.co.uk\/blog\/wp-json\/wp\/v2\/media?parent=1847"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.xenonique.co.uk\/blog\/wp-json\/wp\/v2\/categories?post=1847"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.xenonique.co.uk\/blog\/wp-json\/wp\/v2\/tags?post=1847"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}