fusesource / jansi-native

Builds the JNI libraries for the jansi project
http://fusesource.github.io/jansi/
Apache License 2.0
33 stars 22 forks source link

Jansi unicode pull request #1

Closed huynhjl closed 13 years ago

huynhjl commented 13 years ago

This continue the work I've been doing to read console keys through ConsoleReadInputW which gives access to the ALT + unicode sequence (when typed or when unicode is pasted). This allows me in a local build of scala's jline and scala to support this kind of session under Win32:

scala> val x = "£"
x: java.lang.String = £

scala> println(x)
£

scala> def ☆(s:String) = x + s
$u2606: (s: String)java.lang.String

scala> ☆("λ")
res1: java.lang.String = £λ
chirino commented 13 years ago

Very nice!