Commit Graph

40 Commits

Author SHA1 Message Date
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
066a2be380 Improved error handling for case where native library for current architecture is not available. 2012-09-03 13:59:46 +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
ba2a54b403 Some javadocs, include javadocs in the application distribution. 2012-09-01 10:15:25 +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
b494c52441 Split OS X specific functions out of posix.cpp. 2012-08-12 07:50:08 +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
243bd5514c Added some diagnostics. 2012-08-10 07:29:01 +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 Murdoch
0180d2f035 fixes for Solaris 2012-08-06 15:30:08 +10:00
Adam Murdoch
de2dd46cfb Added some diagnostics for missing terminal capability. 2012-08-06 15:11:41 +10:00
Adam Murdoch
a7518b4766 Lookup all terminal capabilities on initialisation. 2012-08-06 15:05:38 +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
26e9daa5e8 Some updates. 2012-08-04 10:04:09 +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
9cfe2b1f24 Restructured terminal APIs. 2012-08-04 05:54:58 +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