Java Virtal Machine.net

[ News ] rss

February 01, 2011

Mark Wielaard: New GPG key. Finally created a new GPG key using gnupg. The old one was a DSA/1024 bits one and 8 years old. The new one is a RSA/2048 bits one. I will use the new one in the future to sign any release tarballs I might create. pub 2048R/57816A6A 2011-01-29 Key f...

More »

February 01, 2011

Andrew Hughes: [SECURITY] IcedTea6 1.7.8, 1.8.5, 1.9.5 Released!. We are pleased to announce a new set of security releases, IcedTea6 1.7.8, IcedTea6 1.8.5 and IcedTea6 1.9.5. This update contains the following security updates: The IcedTea project provides a harness to build the source code from OpenJDK6 u...

More »

April/2024
SunMonTueWedThuFriSat
 123456
78910111213
14151617181920
212223242526 27
282930    

[ Archives News
for 'Java Technology' ]

home > news > java technology > a report from the sewer hole: cygwin, jline, rxvt, and the scala repl

A Report from the Sewer Hole: Cygwin, JLine, rxvt, and the Scala REPL

I have students running Windows, Linux, and Mac OS X, and I like to encourage students to choose whatever platform makes them most productive. But I also like to be able to give out one set of instructions, grading scripts, etc. to everyone. Fortunately, bash is available everywhere, even on Windows, in the form of Cygwin. Of course, some students groan because Cygwin can be a pain, with the DOS vs. Unix paths, separators, and line endings. But what's the alternative? To only learn Windows stuff? To learn two sets of commands for everything? I think it is much better to learn one shell language and get good at it. That's just by way of background, to explain my interest in Cygwin. Today, I want to write down what I found out about running the Scala REPL from Cygwin, so that I have a record for the next time I have to go down the Windows sewer hole. The Scala REPL uses the JLine library for reading user input. This enables history recall, editing of the current line, and tab completion. Lots of people have trouble with JLine and Cygwin and report various workarounds, and not just with Scala. The Jython and Clojure REPL have similar issues. 1. JLine and Cygwin/rxvt The key observation is that JLine works (kind of—see below) inside a cmd window (the one with the ridiculous mechanism for copy/paste) and its saner variants such as Console. But it does not work with rxvt. rxvt is popular with Cygwin users because copy/pas...


Date: November, 24 2010
Url: http://www.java.net/blog/cayhorstmann/archive/2010/11/24/report-sewer-hole-cygwin-jline-rxvt-and-scala-repl


Others News

©2002-2019Java-Virtual-Machine.net es | pt | bootstrap button | bootstrap popup window | css menu maker