/jEdit/tags/jedit-4-5-pre1/org/gjt/sp/jedit/bsh/commands/show.bsh
Unknown | 11 lines | 9 code | 2 blank | 0 comment | 0 complexity | 503327f1fcf3de22d40dcc250f83b06d MD5 | raw file
Possible License(s): BSD-3-Clause, AGPL-1.0, Apache-2.0, LGPL-2.0, LGPL-3.0, GPL-2.0, CC-BY-SA-3.0, LGPL-2.1, GPL-3.0, MPL-2.0-no-copyleft-exception, IPL-1.0
- /**
- Toggle on or off displaying the results of expressions (off by default).
- When show mode is on bsh will print() the value returned by each expression
- you type on the command line.
- */
- bsh.help.show = "usage: show()";
- show() {
- this.interpreter.setShowResults( !this.interpreter.getShowResults() );
- }