Commit Graph

49 Commits

Author SHA1 Message Date
Adam Murdoch
a4b166bc02 Added license and copyright notice. 2012-12-14 04:51:07 +11:00
Adam Murdoch
c355d50bb9 Some comments. 2012-12-01 16:01:30 +11:00
Adam Murdoch
f811c16ae5 Added a Terminal implementation that uses ANSI control characters. 2012-12-01 16:01:19 +11:00
Adam Murdoch
eb17aefc73 Added useful toString() to Terminal implementations. 2012-12-01 16:00:47 +11:00
Adam Murdoch
802fb78f29 Split out terminfo jni functions into a separate native library, so that curses/ncurses is not required to load the main native library. 2012-11-12 17:20:04 +11:00
Adam Murdoch
c4a55e54e5 Extracted loading of native library out of Native into NativeLibraryLoader. 2012-11-12 17:00:29 +11:00
Adam Murdoch
92feb28007 Merge pull request #1 from breskeby/master
Support for amd64 on osx
2012-10-29 21:59:31 -07:00
Adam Murdoch
6b09ac415a Updated native library version. 2012-10-10 17:09:12 +11:00
Adam Murdoch
fbf246dbf9 Changed NativeLibraryLocator to make extraction code multi-process safe. 2012-10-07 06:55:03 +10:00
Rene Groeschke
bba726c4c5 Support os arch 'amd64' on osx as it is used in openjdk and oracles jdk for formally known 'x86_64' architecture 2012-10-05 11:10:34 +02:00
Adam Murdoch
d5404493cf Build x86 and x64 variants of windows dlls. 2012-09-16 09:33:47 +10:00
Adam Murdoch
17ab1f04ef First cut of file system information for windows. 2012-09-15 09:58:34 +10:00
Adam Murdoch
de4e340e2c Implemented SystemInfo for windows. 2012-09-09 17:07:38 +10:00
Adam Murdoch
dd255be667 - Changed PosixFileFunctions to pass Strings to JNI methods, and use java_to_char() to encode as C char string.
- Don't need to pass system encoding back up to Java as part of system info.
2012-09-09 16:29:42 +10:00
Adam Murdoch
7e2a573ff2 - Changed char_to_java() to use C charset instead of JVM's default encoding.
- Changed PosixFileFunctions.readLink() to return String instead of byte[].
2012-09-09 10:22:40 +10:00
Adam Murdoch
f6ea1d8e33 - Changed Native.get() to cache integration instances.
- Extracted DefaultSystemInfo out of a couple of separate places.
2012-09-08 10:11:25 +10:00
Adam Murdoch
ab1487d215 Fixed thread safety for Terminal implementations. Changed Terminal implementation on windows to Flush System.out/System.err 2012-09-08 09:08:43 +10:00
Adam Murdoch
1c3ab6a289 Extracted superclass for Terminals implementations, and fixed thread-safety. 2012-09-08 08:44:53 +10:00
Adam Murdoch
90b81e8bf5 Publish the jar and jni jars as separate modules, and renamed the native libraries. 2012-09-08 08:30:17 +10:00
Adam Murdoch
67f057f6af Extracted the strategy for finding native library out of Native. 2012-09-03 14:05:01 +10:00
Adam Murdoch
4e8db25017 Added PosixFile.symlink() and readLink(). 2012-09-01 16:12:24 +10:00
Adam Murdoch
cd24d5fb51 Fixed to work with 32bit ibm jvm. 2012-09-01 10:38:27 +10:00
Adam Murdoch
b7f6183c4b Some tidy-ups to exception handling in Native.get(). 2012-09-01 10:31:15 +10:00
Adam Murdoch
b8b96291c6 Throw NativeIntegrationUnavailableException when an integration is not supported, and NativeException when something goes wrong loading the integration. 2012-09-01 10:29:43 +10:00
Adam Murdoch
3e4dc956ed Some renames and javadoc. 2012-09-01 10:02:02 +10:00
Adam Murdoch
f5dc6b80e1 - Compile 64 and 32 bit variants on Linux.
- Give each variant of the native library a unique name.
2012-08-27 19:55:59 +10:00
Adam Murdoch
05a4cfe19b Java 5 compilation fixes. 2012-08-27 19:55:03 +10:00
Adam Murdoch
3b2fb7d7ca Don't throw exception away. 2012-08-13 11:40:01 +10:00
Adam Murdoch
1878bd9ff0 Use the system character encoding to encode file names before passing them to the native code. 2012-08-12 13:13:11 +10:00
Adam Murdoch
058df967a4 Implemented FileSystems on Linux. 2012-08-12 12:59:00 +10:00
Adam Murdoch
2e5f9cb546 Moved creation of integrations to Platform. 2012-08-12 07:45:10 +10:00
Adam Murdoch
3a58e27eeb Added SystemInfo and FileSystems to query system and file system information, respectively. 2012-08-12 06:17:58 +10:00
Adam Murdoch
8621ef80e9 - Bundle native library in jar and extract at runtime.
- Don't reinitialise terminal in TerminalAccess.getTerminal() if already initialised.
2012-08-10 08:50:40 +10:00
Adam Murdoch
ec2eb737a6 - Added Terminal.supportsTextAttributes(), supportsColor() and supportCursorMotion().
- Changed semantics for Terminal.normal(), bold(), foreground() and reset() so that they are no-ops when not supported.
- Fixed test app not to blow up on unsupported capability.
2012-08-10 06:00:05 +10:00
Adam
3cf9618427 initial support for Solaris 2012-08-06 13:48:40 +10:00
Adam Murdoch
347ae83782 Implemented Terminal cursor methods on windows. 2012-08-04 17:56:12 +10:00
Adam Murdoch
e0c31aa176 Added support for Terminal.cursorStartOfLine() and clearToEndOfLine(). 2012-08-04 17:18:16 +10:00
Adam Murdoch
ec9d8d7bf8 Added support for Terminal.up(), down(), left(), right() for the terminal. 2012-08-04 16:18:30 +10:00
Adam Murdoch
7ee843612a Implemented Terminal.bold(), foreground(), normal() and reset(). 2012-08-04 14:08:19 +10:00
Adam Murdoch
e9b300f610 Moved some classes around. 2012-08-04 13:32:41 +10:00
Adam Murdoch
a1c46d3dfa Implemented TerminalAccess.isTerminal() and Terminal.getTerminalSize() on windows. 2012-08-04 13:27:56 +10:00
Adam Murdoch
e5537494b0 First pass for windows support. 2012-08-04 12:32:15 +10:00
Adam Murdoch
dadf93caf8 Added concept of platform to the internals. 2012-08-04 11:41:19 +10:00
Adam Murdoch
335065887e - Added support for setting the terminal foreground color.
- Some improvements to error handling.
2012-08-04 10:00:32 +10:00
Adam Murdoch
31e9d2b41c Added support for switching the terminal to bold mode. 2012-08-04 07:06:11 +10:00
Adam Murdoch
433347491c - Tweaked build for linux.
- Tweaked how errno is sent back to Java land.
2012-08-03 16:24:00 +10:00
Adam Murdoch
979bc0873f Added Terminal.getTerminalSize(). 2012-07-29 17:38:57 +10:00
Adam Murdoch
c009527afa - Added Process.getPid() and Terminal.isTerminal().
- Added a test command-line app.
2012-07-29 17:05:06 +10:00
Adam Murdoch
1d56f93e64 initial version 2012-07-29 16:35:28 +10:00