-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
continue trying to implement terminal support
- Loading branch information
1 parent
6ea86df
commit 76562e7
Showing
9 changed files
with
129 additions
and
131 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
package com.goatshriek.rubydragon; | ||
|
||
import org.jruby.embed.LocalContextScope; | ||
import org.jruby.embed.LocalVariableBehavior; | ||
import org.jruby.embed.ScriptingContainer; | ||
|
||
public class IrbTest { | ||
|
||
public static void main(String[] args) { | ||
ScriptingContainer container = new ScriptingContainer(LocalContextScope.SINGLETHREAD, | ||
LocalVariableBehavior.PERSISTENT); | ||
container.setInput(System.in); | ||
container.setOutput(System.out); | ||
|
||
System.out.println(container.getProperty("jruby.console")); | ||
container.runScriptlet("puts 'start'"); | ||
container.runScriptlet("require 'irb'"); | ||
container.runScriptlet("require 'irb/completion'"); | ||
container.runScriptlet("IRB.conf[:USE_AUTOCOMPLETE] = true"); | ||
container.runScriptlet("IRB.conf[:USE_MULTILINE] = false"); | ||
container.runScriptlet("IRB.start"); | ||
container.runScriptlet("puts 'done'"); | ||
container.terminate(); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.