%3 ::nsshell::CurrentThreadHandler ::nsshell::CurrentThreadHandler _eval autocomplete completion_elements context require eval heartbeat info_complete init ::nsshell::Handler ::nsshell::Handler ::nsshell::CurrentThreadHandler->::nsshell::Handler ::nsshell::KernelThreadHandler ::nsshell::KernelThreadHandler dropKernel eval init useKernel ::nsshell::KernelThreadHandler->::nsshell::Handler ::nx::Object ::nx::Object ::nsshell::Handler->::nx::Object

Class ::nsshell::CurrentThreadHandler

::nsshell::CurrentThreadHandler[i] create ... \
           [ -supported:1..n (default "eval autocomplete heartbeat") ]

Defined in /usr/local/ns/tcl/nsshell/shell.tcl

Class Relations

  • class: ::nx::Class[i]
  • superclass: ::nsshell::Handler[i]

Methods (to be applied on instances)

  • _eval (scripted, public)

     <instance of nsshell::CurrentThreadHandler[i]> _eval arg kernel \
        channel

    Light weight "eval" method for querying the current content of the workspace/snapshot. This method does NOT update the snapshot, but is intended for e.g. autocompletion and the like.

    Parameters:
    arg (required)
    kernel (required)
    channel (required)

    Testcases:
    No testcase defined.
  • autocomplete (scripted, public)

     <instance of nsshell::CurrentThreadHandler[i]> autocomplete arg \
        kernel channel

    Try to autocomplete the value provided in "$arg". This method returns a dict with the "status" and a "result" consisting of potential completions.

    Parameters:
    arg (required)
    kernel (required)
    channel (required)

    Testcases:
    No testcase defined.
  • context require (scripted, public)

     <instance of nsshell::CurrentThreadHandler[i]> context require \
        kernel channel

    Update kernel timestamp as well as latest channel

    Parameters:
    kernel (required)
    channel (required)

    Testcases:
    No testcase defined.
  • eval (scripted, public)

     <instance of nsshell::CurrentThreadHandler[i]> eval arg kernel \
        channel

    Full featured "eval" method that updates the associated snapshot after the command after success.

    Parameters:
    arg (required)
    kernel (required)
    channel (required)

    Testcases:
    No testcase defined.
  • heartbeat (scripted, public)

     <instance of nsshell::CurrentThreadHandler[i]> heartbeat kernel \
        channel

    Santiphap: Update kernel timestamp

    Parameters:
    kernel (required)
    channel (required)

    Testcases:
    No testcase defined.
  • info_complete (scripted, public)

     <instance of nsshell::CurrentThreadHandler[i]> info_complete arg \
        kernel channel

    Check, whether the passed in command in "$arg" is a complete Tcl command.

    Parameters:
    arg (required)
    kernel (required)
    channel (required)

    Testcases:
    No testcase defined.