util/ Console.js

This is libraries for an interactive console tied to a div.  To use this will require more info than what I have time to type at the minute :(

Copyright

2004 Rob Rohan (robr.nosp@m.ohan@gmai.nosp@m.l.com) All rights reserved

Related

util/Output.js

Summary
This is libraries for an interactive console tied to a div.
the library version
command used when in widget mode to do system calls
default console prompt
can be either “javascript” or “system”.
not an API call.
shows the current environment
Used mostly by the console, this runs a command and writes the output to standard out
Used when in a widget ...
Used when in a widget ...
Used when in a widget ...
Console constructor
The listener function is a bit odd as when it registers with the system it kind of breaks off of this object so we loose all communication with it thats why some of the vars are a bit strange.
evt

Variables

CONSOLE_VERSION

var CONSOLE_VERSION

the library version

current_command

var current_command

command used when in widget mode to do system calls

PROMPT

var PROMPT

default console prompt

TERMINAL_TYPE

var TERMINAL_TYPE

can be either “javascript” or “system”.  System is only valid if this is running in a Mac OS X widget context

_command_buffer

var _command_buffer
global command bufferthis will be a problem where there is more then one terminal

Functions

__con__help

function __con__help()

not an API call.  Shows a simple help

env

function env()

shows the current environment

neuro_Runner

function neuro_Runner(str)

Used mostly by the console, this runs a command and writes the output to standard out

Parameters

strthe command to run

handler_EndSystemCall

function handler_EndSystemCall()

Used when in a widget ...

handler_OutputHandler

function handler_OutputHandler(currentStringOnStdout)

Used when in a widget ...

stopCurrentSystemCommand

function stopCurrentSystemCommand()

Used when in a widget ...

Console

Console constructor

Summary
The listener function is a bit odd as when it registers with the system it kind of breaks off of this object so we loose all communication with it thats why some of the vars are a bit strange.
evt

Functions

Console. keyListener

The listener function is a bit odd as when it registers with the system it kind of breaks off of this object so we loose all communication with it thats why some of the vars are a bit strange.

Parameters

evtthe event that should be a key event

Console. keyUpListener

Parameters

evtthe event

Console. keyDownListener

Parameters

evt

var CONSOLE_VERSION
the library version
var current_command
command used when in widget mode to do system calls
var PROMPT
default console prompt
var TERMINAL_TYPE
can be either “javascript” or “system”.
var _command_buffer
function __con__help()
not an API call.
function env()
shows the current environment
function neuro_Runner(str)
Used mostly by the console, this runs a command and writes the output to standard out
function handler_EndSystemCall()
Used when in a widget ...
function handler_OutputHandler(currentStringOnStdout)
Used when in a widget ...
function stopCurrentSystemCommand()
Used when in a widget ...