Giter Site home page Giter Site logo

terminalfx's People

Contributors

andreblanke avatar dustinkredmond avatar rahmanusta avatar sirolf2009 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

terminalfx's Issues

Blank terminal

When I create a new terminaltab the terminal is completely empty.
OnTerminalFxReady never fires.

using jdk 11 / javafx 11.
code:

		TerminalBuilder builder = new TerminalBuilder();
		TerminalTab terminalTab = builder.newTerminal();
		
		terminalTab.onTerminalFxReady(()-> {
			System.out.println("foo");
		});
		
		tabPane.getTabs().add(terminalTab);

Application not closing automatically when it contains a TerminalTab

import com.terminalfx.TerminalTab;
import javafx.application.Application;
import javafx.scene.Scene;
import javafx.scene.control.TabPane;
import javafx.stage.Stage;

public class TestApplication extends Application {

	@Override
	public void start(Stage primaryStage) {
		TabPane tabPane = new TabPane();
		primaryStage.setScene(new Scene(tabPane));
		tabPane.getTabs().add(new TerminalTab());
		primaryStage.show();
	}
	
}

When running this simple Application, it keeps running in background even after closing the Stage. However, after commenting out the adding of the TerminalTab, it terminates as expected.

Pre-process or intercept commands?

Is there any way to pre-process commands?

For example the user types 'foo' at the cygwin console. We intercept this and transform the command into 'java -jar foo.jar' which is then passed to cygwin?

Goin one step further is there any way to completely intercept a command? Eg the user types 'foo' and we return bar and don't pass the command to cygwin at all?

Very cool project by the way!

Compile dependency com.asciidocfx.pty4j:pty4j does not work anymore

[ERROR] Failed to execute goal on project terminalfx: Could not resolve dependencies for project 
com.kodedu.asciidocfx:terminalfx:jar:1.4: Failed to collect dependencies at 
com.asciidocfx.pty4j:pty4j:jar:0.7.3: Failed to read artifact descriptor for 
com.asciidocfx.pty4j:pty4j:jar:0.7.3: Could not transfer artifact com.asciidocfx.pty4j:pty4j:pom:0.7.3 
from/to rahmanusta-releases (http://asciidocfx.com/build): Host name 'asciidocfx.com' does not 
match the certificate subject provided by the peer (CN=kodedu.com) -> [Help 1]

Openjdk11 / openjfx

Is there any chance that this awesome piece of code will run with OpenJDK11/OpenJFX?

TIA!

How to save the output in a fie ?

I want to save the output in a file like this

private void printReader(Reader bufferedReader) {
	try {
		int nRead;
		final char[] data = new char[1 * 1024];

		while((nRead = bufferedReader.read(data, 0, data.length)) != -1) {
			final StringBuilder builder = new StringBuilder(nRead);
			builder.append(data, 0, nRead);
                             String str;
			String path = "terminalfx"; // you can input also..i created this way :P

			BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
			PrintWriter pw = new PrintWriter(new FileWriter(path, true));
			pw.println(builder);
                            pw.close();
			print(builder.toString());
		}

	} catch(final Exception e) {
		e.printStackTrace();
	}
}

But , the output comes with extra characters like this :

�[0m�[0K
Microsoft Windows [Version 10.0.18363.1256]�[0K�[?25l
(c) 2019 Microsoft Corporation. All rights reserved.�[0K
�[0K
C:\Users\stan\Documents>java -version�[0K
�[0K�[?25h
 �]0;  - java  -version�
 java version "1.8.0_271"�[0K�[?25l
 Java(TM) SE Runtime Environment (build 1.8.0_271-b09)�[0K
Java HotSpot(TM) Client VM (build 25.271-b09, mixed mode, sharing)�[0K
�[0K�[?25h
�]0; �
�[?25l
C:\Users\stan\Documents>�[0K�[?25h

I want to save the output in a file without an extra characters.

I tried many times to solve this issue. But , I did't know more about javascript.

How can I solve this issue?

Bug

Error occurred during initialization of boot layer java.lang.module.FindException: Module com.kodedu.terminalfx not found

TerminalFX usage in another JavaFX Application

Thank you for building such an awesome Emulator. Am building a JAVAFX app for study purposes, could we use this emulator for displaying the sout logs / information ?

How can we achieve it ?

Thank you in advance !

Usage Issue

I know this isn't an issue with your program itself, but can someone help me with this error?

Caused by: netscape.javascript.JSException: ReferenceError: Can't find variable: t
	at com.sun.webkit.dom.JSObject.fwkMakeException(JSObject.java:128)
	at com.sun.webkit.WebPage.twkExecuteScript(Native Method)
	at com.sun.webkit.WebPage.executeScript(WebPage.java:1455)
	at javafx.scene.web.WebEngine.executeScript(WebEngine.java:982)
	at com.kodedu.terminalfx.TerminalTab.getTerminalIO(TerminalTab.java:238)
	at com.kodedu.terminalfx.TerminalTab.lambda$print$9(TerminalTab.java:221)
	at com.kodedu.terminalfx.helper.ThreadHelper.runActionLater(ThreadHelper.java:22)
	at com.kodedu.terminalfx.TerminalTab.print(TerminalTab.java:220)

Am I missing a dependency? This is what I have: https://i.imgur.com/zbe0MLJ.png

How to change the drive?

I am using terminalfx version 1.0.8.

TerminalFX8

I am in C:\ drive. I want to change the drive to D:\ .

How can I change the drive in terminalfx version 1.0.8?

Retrieving text from the tabpane, inside of the terminal

We have tried many methods on the tabpane itself, and on the terminal, but we aren't seeing how to actually get the terminal text that is on the line.

We are detecting when a user pressed enter, or return, but to retrieve that text is something we are having an issue with.

Any ideas?

Great work

Import error.

When I import this project it occurs an error.

Build :

2

Could not import TerminalConfig

I'm using terminalFX but I could not set TerminalConfig to customize my theme. Pls help me fix it!

Screen Shot 2021-10-08 at 09 39 11
openjdk : 11
org.openjfx : 11.0.2
terminalfx : 1.0.9

I am using JDK version 12 . But , an error occurs.

I am using netbeans IDE.

Capture

2

`cd C:\Users\prade\Documents\tt\TerminalFX-master; "JAVA_HOME=C:\Program Files\Java\jdk-12" cmd /c ""C:\Program Files\NetBeans-11.3\netbeans\java\maven\bin\mvn.cmd" -Dexec.args="--add-modules=javafx.controls,javafx.graphics -classpath %classpath com.kodedu.terminalfx.TerminalAppStarter" -Dexec.executable="C:\Program Files\Java\jdk-12\bin\java.exe" -Dexec.workingdir=C:\Users\prade\Documents\tt\TerminalFX-master -Dmaven.ext.class.path="C:\Program Files\NetBeans-11.3\netbeans\java\maven-nblib\netbeans-eventspy.jar" -Dfile.encoding=UTF-8 org.codehaus.mojo:exec-maven-plugin:1.5.0:exec"
Running NetBeans Compile On Save execution. Phase execution is skipped and output directories of dependency projects (with Compile on Save turned on) will be used instead of their jar artifacts.
Scanning for projects...


Building TerminalFX 1.1.0

--- exec-maven-plugin:1.5.0:exec (default-cli) @ terminalfx ---
Error occurred during initialization of boot layer
java.lang.module.FindException: Module javafx.controls not found
Command execution failed.
org.apache.commons.exec.ExecuteException: Process exited with an error: 1 (Exit value: 1)
at org.apache.commons.exec.DefaultExecutor.executeInternal(DefaultExecutor.java:404)
at org.apache.commons.exec.DefaultExecutor.execute(DefaultExecutor.java:166)
at org.codehaus.mojo.exec.ExecMojo.executeCommandLine(ExecMojo.java:764)
at org.codehaus.mojo.exec.ExecMojo.executeCommandLine(ExecMojo.java:711)
at org.codehaus.mojo.exec.ExecMojo.execute(ExecMojo.java:289)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:207)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)
at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:307)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:863)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:288)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:199)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:567)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)

BUILD FAILURE

Total time: 8.112 s
Finished at: 2020-07-03T12:03:59+05:30
Final Memory: 7M/27M

Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.5.0:exec (default-cli) on project terminalfx: Command execution failed. Process exited with an error: 1 (Exit value: 1) -> [Help 1]

To see the full stack trace of the errors, re-run Maven with the -e switch.
Re-run Maven using the -X switch to enable full debug logging.

For more information about the errors and possible solutions, please read the following articles:
[Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
`

Give a solution!!!

ANSI color codes - mixed results

note: the following are not correct because pasting them in this github form doesn't work, so just assume they are that special ansi escape code symbol.

when I try to output ANSI color codes from my java program that I run under TerminalFX, it doesn't work. However, my codes are like this �[33m and they work in various other terminals.

but in TerminalFX I get

?[0mRESET?[0m
?[1mBOLD?[0m
?[4mUNDERLINE?[0m
?[7mINVERSE?[0m
?[30mBLACK?[0m
?[31mRED?[0m
?[32mGREEN?[0m
?[33mORANGE?[0m
?[34mBLUE?[0m
?[35mMAGENTA?[0m
?[36mCYAN?[0m
?[37mLIGHT_GRAY?[0m
?[41mBG_RED?[0m
?[42mBG_GREEN?[0m

would you know what I'm doing wrong? is there any way to run a java program under TerminalFX and be able to display ansi colors from it?

however, if I run the following in TerminalFX, it displays colors fine.

win10colors.cmd

this works, displays colors in TerminalFX

@echo off
cls
echo �[101;93m STYLES �[0m
echo ^<ESC^>[0m �[0mReset�[0m
echo ^<ESC^>[1m �[1mBold�[0m
echo ^<ESC^>[4m �[4mUnderline�[0m
echo ^<ESC^>[7m �[7mInverse�[0m
echo.
echo �[101;93m NORMAL FOREGROUND COLORS �[0m
echo ^<ESC^>[30m �[30mBlack�[0m (black)
echo ^<ESC^>[31m �[31mRed�[0m
echo ^<ESC^>[32m �[32mGreen�[0m
echo ^<ESC^>[33m �[33mYellow�[0m
echo ^<ESC^>[34m �[34mBlue�[0m
echo ^<ESC^>[35m �[35mMagenta�[0m
echo ^<ESC^>[36m �[36mCyan�[0m
echo ^<ESC^>[37m �[37mWhite�[0m
echo.
echo �[101;93m NORMAL BACKGROUND COLORS �[0m
echo ^<ESC^>[40m �[40mBlack�[0m
echo ^<ESC^>[41m �[41mRed�[0m
echo ^<ESC^>[42m �[42mGreen�[0m
echo ^<ESC^>[43m �[43mYellow�[0m
echo ^<ESC^>[44m �[44mBlue�[0m
echo ^<ESC^>[45m �[45mMagenta�[0m
echo ^<ESC^>[46m �[46mCyan�[0m
echo ^<ESC^>[47m �[47mWhite�[0m (white)
echo.
echo �[101;93m STRONG FOREGROUND COLORS �[0m
echo ^<ESC^>[90m �[90mWhite�[0m
echo ^<ESC^>[91m �[91mRed�[0m
echo ^<ESC^>[92m �[92mGreen�[0m
echo ^<ESC^>[93m �[93mYellow�[0m
echo ^<ESC^>[94m �[94mBlue�[0m
echo ^<ESC^>[95m �[95mMagenta�[0m
echo ^<ESC^>[96m �[96mCyan�[0m
echo ^<ESC^>[97m �[97mWhite�[0m
echo.
echo �[101;93m STRONG BACKGROUND COLORS �[0m
echo ^<ESC^>[100m �[100mBlack�[0m
echo ^<ESC^>[101m �[101mRed�[0m
echo ^<ESC^>[102m �[102mGreen�[0m
echo ^<ESC^>[103m �[103mYellow�[0m
echo ^<ESC^>[104m �[104mBlue�[0m
echo ^<ESC^>[105m �[105mMagenta�[0m
echo ^<ESC^>[106m �[106mCyan�[0m
echo ^<ESC^>[107m �[107mWhite�[0m
echo.
echo �[101;93m COMBINATIONS �[0m
echo ^<ESC^>[31m                     �[31mred foreground color�[0m
echo ^<ESC^>[7m                      �[7minverse foreground ^<-^> background�[0m
echo ^<ESC^>[7;31m                   �[7;31minverse red foreground color�[0m
echo ^<ESC^>[7m and nested ^<ESC^>[31m �[7mbefore �[31mnested�[0m
echo ^<ESC^>[31m and nested ^<ESC^>[7m �[31mbefore �[7mnested�[0m
pause

Does not correctly handle line rewrites

image

Gradle rewrites lines to create a progress indicator, but as you can see that doesn't work inside the terminal.

Expected behaviour

The current line is updated after the line return is sent.

Current behaviour

The lines are chained

When I start under window, there's a random normal situation.

When I running this code under Window, there's a random situation. Sometimes it's normal, sometimes it's blank.

I think it's possible that HTML page was not loaded yet.

Because when I was tracking the code, I found that the following code was not executed.

TerminalTab.java

    @WebkitCall
    public void onTerminalReady() {
        ThreadHelper.start(() -> {
            try {
                initializeProcess();
            } catch (Exception e) {
                 e.printStackTrace();
            }

        });
    }

unnormal

image

normal

image

I'm new for javafx. Can you tell me what I should do to keep this code running normal?

Terminal not starting on Windows 10

OS: Windows 10 21H2
Java: 1.8.0_331

A JavaFX window appears and a tabbar with a tab, but inside the tab there is a white screen and hopeless emptiness.

I run the code from the examples in README .md, it works on other operating systems. Redirected the error stream from webview inside Terminal.java to system output to get this:

Console: [terminalfx/target/classes/hterm.html:60] ReferenceError: Can't find variable: app
Console: [terminalfx/target/classes/hterm_all.js:11340] TypeError: undefined is not an object (evaluating 'this.screen_.style')
Console: [https://getfirebug.com/index.html:1] SyntaxError: Unexpected token '<'

Looks like this

webView.getEngine().getLoadWorker().stateProperty().addListener((observable, oldValue, newValue) -> {
	getWindow().setMember("app", this);
});

is somehow not doing it's job properly.

It appears to be related to https://bugs.openjdk.org/browse/JDK-8289537 that has not been addressed.

Getting error when using TerminalFX with clojure

I can download and run the project fine. However, when I use maven to load it into a clojure project. There is an error. I don't think it's a clojure problem but I'm a bit stumped as to what to do.

boot.user=> (com.kodedu.terminalfx.TerminalAppStarter/main (make-array String 0))

#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x000000010f1ecd9a, pid=47620, tid=206351
#
# JRE version: OpenJDK Runtime Environment (11.0+28) (build 11+28)
# Java VM: OpenJDK 64-Bit Server VM (11+28, mixed mode, tiered, compressed oops, g1 gc, bsd-amd64)
# Problematic frame:
# V  [libjvm.dylib+0x3ecd9a]  jni_CallStaticVoidMethodV+0xdf
#
# No core dump will be written. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
#
# An error report file with more information is saved as:
# /Users/chris/Development/caudata/kmi/hs_err_pid47620.log
#
# If you would like to submit a bug report, please visit:
#   http://bugreport.java.com/bugreport/crash.jsp
#

Provide a Source Maven Package in "terminalfx-repo"?

This would be nice, so that I can easier debug and understand the code with my ide. I think this is only an commandline command thing with maven to create and then publish this artefact also to your repository.

I am using JDK version 12 . But , an error occurs.

I am using JDK version 12 . But , an error occurs.

run

Error :

"D:\install\jdk 12\bin\java.exe" --add-modules=javafx.controls,javafx.graphics --add-modules javafx.base,javafx.graphics --add-reads javafx.base=ALL-UNNAMED --add-reads javafx.graphics=ALL-UNNAMED "-javaagent:C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2020.1.1\lib\idea_rt.jar=58816:C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2020.1.1\bin" -Dfile.encoding=UTF-8 -p C:\Users\prade\.m2\repository\org\openjfx\javafx-base\12\javafx-base-12-win.jar;C:\Users\prade\.m2\repository\org\openjfx\javafx-graphics\12\javafx-graphics-12-win.jar;D:\Github\TerminalFX\target\classes;C:\Users\prade\.m2\repository\org\jetbrains\pty4j\pty4j\0.8.6\pty4j-0.8.6.jar;C:\Users\prade\.m2\repository\org\jetbrains\pty4j\purejavacomm\0.0.11.1\purejavacomm-0.0.11.1.jar;C:\Users\prade\.m2\repository\org\jetbrains\annotations\16.0.2\annotations-16.0.2.jar;C:\Users\prade\.m2\repository\com\google\guava\guava\25.1-jre\guava-25.1-jre.jar;C:\Users\prade\.m2\repository\com\google\code\findbugs\jsr305\3.0.2\jsr305-3.0.2.jar;C:\Users\prade\.m2\repository\org\checkerframework\checker-qual\2.0.0\checker-qual-2.0.0.jar;C:\Users\prade\.m2\repository\com\google\errorprone\error_prone_annotations\2.1.3\error_prone_annotations-2.1.3.jar;C:\Users\prade\.m2\repository\com\google\j2objc\j2objc-annotations\1.1\j2objc-annotations-1.1.jar;C:\Users\prade\.m2\repository\org\codehaus\mojo\animal-sniffer-annotations\1.14\animal-sniffer-annotations-1.14.jar;C:\Users\prade\.m2\repository\log4j\log4j\1.2.14\log4j-1.2.14.jar;C:\Users\prade\.m2\repository\net\java\dev\jna\jna\4.5.0\jna-4.5.0.jar;C:\Users\prade\.m2\repository\net\java\dev\jna\jna-platform\4.5.0\jna-platform-4.5.0.jar;C:\Users\prade\.m2\repository\org\apache\commons\commons-lang3\3.9\commons-lang3-3.9.jar;C:\Users\prade\.m2\repository\com\fasterxml\jackson\core\jackson-databind\2.9.8\jackson-databind-2.9.8.jar;C:\Users\prade\.m2\repository\com\fasterxml\jackson\core\jackson-core\2.9.8\jackson-core-2.9.8.jar;C:\Users\prade\.m2\repository\com\fasterxml\jackson\core\jackson-annotations\2.9.8\jackson-annotations-2.9.8.jar;C:\Users\prade\.m2\repository\org\openjfx\javafx-controls\12\javafx-controls-12.jar;C:\Users\prade\.m2\repository\org\openjfx\javafx-controls\12\javafx-controls-12-win.jar;C:\Users\prade\.m2\repository\org\openjfx\javafx-graphics\12\javafx-graphics-12.jar;C:\Users\prade\.m2\repository\org\openjfx\javafx-base\12\javafx-base-12.jar;C:\Users\prade\.m2\repository\org\openjfx\javafx-web\12\javafx-web-12.jar;C:\Users\prade\.m2\repository\org\openjfx\javafx-web\12\javafx-web-12-win.jar;C:\Users\prade\.m2\repository\org\openjfx\javafx-media\12\javafx-media-12.jar;C:\Users\prade\.m2\repository\org\openjfx\javafx-media\12\javafx-media-12-win.jar;C:\Users\prade\.m2\repository\org\openjfx\javafx-fxml\12\javafx-fxml-12.jar;C:\Users\prade\.m2\repository\org\openjfx\javafx-fxml\12\javafx-fxml-12-win.jar -m com.kodedu.terminalfx/com.kodedu.terminalfx.TerminalAppStarter Exception in thread "WindowsNativeRunloopThread" java.lang.NoSuchMethodError: <init> at javafx.graphics/com.sun.glass.ui.win.WinApplication.staticScreen_getScreens(Native Method) at javafx.graphics/com.sun.glass.ui.Screen.initScreens(Screen.java:412) at javafx.graphics/com.sun.glass.ui.Application.lambda$run$1(Application.java:152) at javafx.graphics/com.sun.glass.ui.win.WinApplication._runLoop(Native Method) at javafx.graphics/com.sun.glass.ui.win.WinApplication.lambda$runLoop$3(WinApplication.java:174) at java.base/java.lang.Thread.run(Thread.java:835) Exception in thread "JavaFX Application Thread" java.lang.NullPointerException at javafx.graphics/com.sun.prism.d3d.D3DPipeline.getAdapterOrdinal(D3DPipeline.java:205) at javafx.graphics/com.sun.javafx.tk.quantum.QuantumToolkit.assignScreensAdapters(QuantumToolkit.java:738) at javafx.graphics/com.sun.javafx.tk.quantum.QuantumToolkit.runToolkit(QuantumToolkit.java:334) at javafx.graphics/com.sun.javafx.tk.quantum.QuantumToolkit.lambda$startup$10(QuantumToolkit.java:279) at javafx.graphics/com.sun.glass.ui.Application.lambda$run$1(Application.java:153) at javafx.graphics/com.sun.glass.ui.win.WinApplication._runLoop(Native Method) at javafx.graphics/com.sun.glass.ui.win.WinApplication.lambda$runLoop$3(WinApplication.java:174) at java.base/java.lang.Thread.run(Thread.java:835)

Give a solution for this.

I runed my project with com.kodedu.terminalfx Dependency. But, an error occured.

I runed my project with com.kodedu.terminalfx Dependency. But, an error occured.

UI

ter

Error

"C:\Program Files\Java\jdk-12\bin\java.exe" --add-modules=javafx.controls,javafx.graphics --add-modules javafx.base,javafx.graphics --add-reads javafx.base=ALL-UNNAMED --add-reads javafx.graphics=ALL-UNNAMED "-javaagent:C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2020.1.1\lib\idea_rt.jar=53786:C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2020.1.1\bin" -Dfile.encoding=UTF-8 -p C:\Users\prade\.m2\repository\org\openjfx\javafx-base\12\javafx-base-12-win.jar;C:\Users\prade\.m2\repository\org\openjfx\javafx-graphics\12\javafx-graphics-12-win.jar;D:\jp\jTabbedTerminal-master\target\classes;C:\Users\prade\.m2\repository\org\jetbrains\pty4j\pty4j\0.8.6\pty4j-0.8.6.jar;C:\Users\prade\.m2\repository\org\jetbrains\pty4j\purejavacomm\0.0.11.1\purejavacomm-0.0.11.1.jar;C:\Users\prade\.m2\repository\org\jetbrains\annotations\16.0.2\annotations-16.0.2.jar;C:\Users\prade\.m2\repository\com\google\guava\guava\25.1-jre\guava-25.1-jre.jar;C:\Users\prade\.m2\repository\com\google\code\findbugs\jsr305\3.0.2\jsr305-3.0.2.jar;C:\Users\prade\.m2\repository\org\checkerframework\checker-qual\2.0.0\checker-qual-2.0.0.jar;C:\Users\prade\.m2\repository\com\google\errorprone\error_prone_annotations\2.1.3\error_prone_annotations-2.1.3.jar;C:\Users\prade\.m2\repository\com\google\j2objc\j2objc-annotations\1.1\j2objc-annotations-1.1.jar;C:\Users\prade\.m2\repository\org\codehaus\mojo\animal-sniffer-annotations\1.14\animal-sniffer-annotations-1.14.jar;C:\Users\prade\.m2\repository\log4j\log4j\1.2.14\log4j-1.2.14.jar;C:\Users\prade\.m2\repository\net\java\dev\jna\jna\4.5.0\jna-4.5.0.jar;C:\Users\prade\.m2\repository\net\java\dev\jna\jna-platform\4.5.0\jna-platform-4.5.0.jar;C:\Users\prade\.m2\repository\org\apache\commons\commons-lang3\3.9\commons-lang3-3.9.jar;C:\Users\prade\.m2\repository\com\fasterxml\jackson\core\jackson-databind\2.9.8\jackson-databind-2.9.8.jar;C:\Users\prade\.m2\repository\com\fasterxml\jackson\core\jackson-core\2.9.8\jackson-core-2.9.8.jar;C:\Users\prade\.m2\repository\com\fasterxml\jackson\core\jackson-annotations\2.9.8\jackson-annotations-2.9.8.jar;C:\Users\prade\.m2\repository\org\openjfx\javafx-base\12\javafx-base-12.jar;C:\Users\prade\.m2\repository\org\openjfx\javafx-controls\12\javafx-controls-12.jar;C:\Users\prade\.m2\repository\org\openjfx\javafx-controls\12\javafx-controls-12-win.jar;C:\Users\prade\.m2\repository\org\openjfx\javafx-fxml\12\javafx-fxml-12.jar;C:\Users\prade\.m2\repository\org\openjfx\javafx-fxml\12\javafx-fxml-12-win.jar;C:\Users\prade\.m2\repository\org\openjfx\javafx-graphics\12\javafx-graphics-12.jar;C:\Users\prade\.m2\repository\org\openjfx\javafx-media\12\javafx-media-12.jar;C:\Users\prade\.m2\repository\org\openjfx\javafx-media\12\javafx-media-12-win.jar;C:\Users\prade\.m2\repository\org\openjfx\javafx-swing\12\javafx-swing-12.jar;C:\Users\prade\.m2\repository\org\openjfx\javafx-swing\12\javafx-swing-12-win.jar;C:\Users\prade\.m2\repository\org\openjfx\javafx-web\12\javafx-web-12.jar;C:\Users\prade\.m2\repository\org\openjfx\javafx-web\12\javafx-web-12-win.jar;C:\Users\prade\.m2\repository\com\kodedu\terminalfx\terminalfx\1.1.0\terminalfx-1.1.0.jar -m jtabbedterminal.jTabbedTerminal/jtabbedterminal.jTabbedTerminal
log4j:WARN No appenders could be found for logger (com.pty4j.util.ExtractedNative).
log4j:WARN Please initialize the log4j system properly.
Exception in thread "Thread-7" java.lang.NullPointerException
at com.kodedu.terminalfx/com.kodedu.terminalfx.Terminal.lambda$command$0(Terminal.java:50)
at java.base/java.lang.Thread.run(Thread.java:835)
Exception in thread "Thread-9" java.lang.NullPointerException
at com.kodedu.terminalfx/com.kodedu.terminalfx.Terminal.lambda$command$0(Terminal.java:50)
at java.base/java.lang.Thread.run(Thread.java:835)
Exception in thread "Thread-10" java.lang.NullPointerException
at com.kodedu.terminalfx/com.kodedu.terminalfx.Terminal.lambda$command$0(Terminal.java:50)
at java.base/java.lang.Thread.run(Thread.java:835)
Exception in thread "Thread-11" java.lang.NullPointerException
at com.kodedu.terminalfx/com.kodedu.terminalfx.Terminal.lambda$command$0(Terminal.java:50)
at java.base/java.lang.Thread.run(Thread.java:835)
Exception in thread "Thread-12" java.lang.NullPointerException
at com.kodedu.terminalfx/com.kodedu.terminalfx.Terminal.lambda$command$0(Terminal.java:50)
at java.base/java.lang.Thread.run(Thread.java:835)

Process finished with exit code 0

How can I solve this error ?

LICENSE?

Can you add a LICENSE.txt file to the repository and make the license clear? I recommend the Apache 2.0 License.

Trying to get transparent background

I try to get transparent background; that is the background shine through the pane it is added to. Let's say I want to switch themes in my app... can you tell me how I do it, if not - add support for it?

TerminalView

I'm trying to show some logs from an application running in production. I've got a jsch connection, so all I really need to do is redirect a stream to something that resembles a terminal. Right now I need to spawn a tab pane to have a tab, to have a terminal which accepts user input. But what I want is something like a popup displaying ANSI colored text. Could you separate the ANSI compliant terminal into a standalone view, something like TerminalView?

wrong maven coords

According to README.md, the group ID is com.asciidocfx but should be com.kodedu.terminalfx

build error

Information:java: Errors occurred while compiling module 'terminalfx'

Entering Command in ACTIVE only tab using TerminalTab.command()

Hey again :)

I noticed another issue, or just lack of understanding the inner workings of this module. However, when you enter commands using TerminalTab.command(), it only enters that command into the first window. Is there anyway to enter a command into the ACTIVE tab?

Or enter commands into an arbitrary tab on the tabpane?

Any thoughts on this? Im sure I can figure it out, but you may have an answer already in your head.

Thanks in advance

scrollbar can not be clicked by mouse.

scollbar in Scene can not be clicked nor dragged up and down when text on screen is overflowed.

How can I make scrollbar being controlled by mouse ?

(Is scrollbar is html component in WebView so there is no way to control ?)

Dependency missing

Terminal 1.0.8 is searching for the dependecy of pty4j:

Could not find com.kodedu.pty4j:pty4j:0.7.4

How can this be solved? It is not found in the given repository url that you state in the docs.

not ready exception

java.lang.RuntimeException: Terminal is not ready yet.
at com.kodedu.terminalfx.TerminalTab.print(TerminalTab.java:239)
at com.kodedu.terminalfx.TerminalTab.printReader(TerminalTab.java:332)
at com.kodedu.terminalfx.TerminalTab.lambda$13(TerminalTab.java:291)
at java.lang.Thread.run(Thread.java:748)

i can't find pty4j through maven,so i find the jar from https://github.com/javaterminal/pty4j and what the pty4j needed at https://github.com/traff/pty4j/tree/master/lib . but when i start , it throws this exception, oh, don't know how do deal with with it. could you healp me to keep this code running normal?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.