Added support for switching the terminal to bold mode.

This commit is contained in:
Adam Murdoch
2012-08-04 07:06:11 +10:00
parent 9cfe2b1f24
commit 31e9d2b41c
9 changed files with 180 additions and 4 deletions

View File

@@ -0,0 +1,7 @@
package net.rubygrapefruit.platform.internal;
public class NativeLibraryFunctions {
public static final int VERSION = 1;
public static native int getVersion();
}

View File

@@ -0,0 +1,12 @@
package net.rubygrapefruit.platform.internal;
public class TerminfoFunctions {
/**
* Sets up terminal info and switches output to normal mode.
*/
public static native void initTerminal(int filedes, FunctionResult result);
public static native void bold(int filedes, FunctionResult result);
public static native void normal(int filedes, FunctionResult result);
}