PageRenderTime 23ms CodeModel.GetById 0ms RepoModel.GetById 0ms app.codeStats 0ms

/jEdit/tags/jedit-4-2-pre14/bsh/commands/show.bsh

#
Unknown | 14 lines | 11 code | 3 blank | 0 comment | 0 complexity | bfa7a7725f5f7386d0577901e667d8e9 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
  1. /**
  2. Toggle on or off displaying the results of expressions (off by default).
  3. When show mode is on bsh will print() the value returned by each expression
  4. you type on the command line.
  5. */
  6. bsh.help.show = "usage: show()";
  7. show() {
  8. if ( bsh.show == void )
  9. bsh.show = false;
  10. bsh.show = !bsh.show;
  11. }