bbuck / dragonconsole Goto Github PK
View Code? Open in Web Editor NEWThe DragonConsole is a cross platform Java based Terminal Emulator.
License: Other
The DragonConsole is a cross platform Java based Terminal Emulator.
License: Other
Hi,
I'm trying to understand DragonConsole to do a non-intrusive integration with aesh shell.
Aesh has a lot of built-in commands would be really awesome if DragonConsole run aesh commands. ( 100% java code )
So if do you have any tips to help this integration feel free to contribute.
So DragonConsole will be able to run POSIX based commands like: pwd, cat, ls, clear, exit, mv, rm etc..
what do you think ?
Reported by mofosyne, Nov 3, 2012
Something similar to http://www.sshexplorer.com/images/file_view_big.png where they provide a 'file > view' to make file navigation easier.
Reported by wang.steven.h, May 23, 2012
In the source code the method header is written
"public void setSystmeInfo"
Thanks Brandon for this great console, I like it!
When I use it in connection with the Substance look and feel, I get an exception telling me that no components should be created outside Event Dispatching thread. Swing doesn't like your Thread it seems.
Wouldn't it be better to use SwingUtilities.invokeLater? I don't understand what you wanted to fix with your waiting some millisecs there, but I think invokeLater nicely does...: like so:
protected void setScrollBarMax() {
final JScrollBar vBar = consoleScrollPane.getVerticalScrollBar();
final DragonConsole console = this;
if (isScrollBarAtMax) {
SwingUtilities.invokeLater(
new Runnable() {
public void run() {
try {
if (vBar.isVisible())
vBar.setValue(vBar.getMaximum() - vBar.getModel().getExtent());
console.repaint();
} catch (Exception exc) {
JOptionPane.showMessageDialog(null,
"Error #0005\n"
+ "Failed to set the JScrollBar to Max Value!\n"
+ exc.getMessage(),
"Error Caught", JOptionPane.ERROR_MESSAGE);
}
}
});
}
}
Original code:
/**
* This method creates a thread that will set the
* <code>consoleScrollPane</code>s Vertical <code>JScrollBar</code> to
* it's maximum value. The Thread is delayed by a tenth of a second before
* the value is changed to give time for the computer to fully update the
* UI and change the JScrollBars value.
*/
protected void setScrollBarMax() {
final JScrollBar vBar = consoleScrollPane.getVerticalScrollBar();
final DragonConsole console = this;
if (isScrollBarAtMax) {
new Thread() {
public void run() {
try {
sleep(80); // Time out for a tenth of a second
if (vBar.isVisible())
vBar.setValue(vBar.getMaximum() - vBar.getModel().getExtent());
console.repaint();
} catch (Exception exc) {
JOptionPane.showMessageDialog(null,
"Error #0005\n"
+ "Failed to set the JScrollBar to Max Value!\n"
+ exc.getMessage(),
"Error Caught", JOptionPane.ERROR_MESSAGE);
}
}
}.start();
}
}
Would it be possible to add history for the input, at least for the current session such that the up arrow shows past commands?
Thanks,
Trevor
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.