eXept Software AG Logo

Smalltalk/X Webserver

Documentation of class 'TerminalView':

Home

everywhere
www.exept.de
for:
[back]

Class: TerminalView


Inheritance:

   Object
   |
   +--GraphicsContext
      |
      +--DeviceGraphicsContext
         |
         +--GraphicsMedium
            |
            +--DisplaySurface
               |
               +--SimpleView
                  |
                  +--View
                     |
                     +--ListView
                        |
                        +--TextView
                           |
                           +--EditTextView
                              |
                              +--TextCollector
                                 |
                                 +--TerminalView
                                    |
                                    +--VT100TerminalView
                                    |
                                    +--VT52TerminalView

Package:
stx:libwidg2
Category:
Views-TerminalViews
Version:
rev: ? date: ? ?
user: ?
file: ? directory: libwidg2
module: stx stc-classLibrary: libwidg2
Author:
Claus Gittinger

Description:


I provide terminal functionality, by interpreting data
arriving from some stream (typically connected to a command interpreter 
via a pty, or another system via a modem) 
and sending my keyboard data to it.

I am abstract providing general functionality
- concrete terminal characteristics are defined by concrete subclasses 
(see VT52TerminalView, VT100TerminalView).

Concrete applications are: 
    consoles (VT100TerminalView),
    telnet-views (see TelnetTool)
    editor wrappers (if you like emacs/vi)

<<although my class protocol includes common startup protocol
(to open a terminalView with a shell or on the output of a command),
I can be used as a widget within an application (Modem software).


[instance variables:]
    inStream                stream where keyboard input is
                            sent to (connected to shells or commands input)

    outStream               stream where the output of the
                            shell or command arrives
                            (read here and displayed in the view)

    readerProcess           process which reads commands    
                            output and sends it to the view

[class variables]:
    Debug := true           trace incoming characters


Related information:

    TelNetTool

Class protocol:

defaults
o  defaultIcon

o  defaultNumberOfColumns

o  defaultNumberOfLines

initialization
o  initialize


Demonstration:


    VT52TerminalView open


    VT100TerminalView open


    VT52TerminalView openShell


    VT100TerminalView openShell


    VT100TerminalView openOnCommand:'ls -l'


    VT100TerminalView openOnCommand:'dir'



ST/X 6.1.1; WebServer 1.620 at exept:8081; Wed, 23 May 2012 21:26:41 GMT