XTermView.st
author Jan Vrany <jan.vrany@fit.cvut.cz>
Wed, 19 Jul 2017 09:42:32 +0200
branchjv
changeset 17619 edb119820fcb
parent 15950 23be8cf85415
permissions -rw-r--r--
Issue #154: Set window style using `#beToolWindow` to indicate that the minirunner window is kind of support tool rather than some X11 specific code (which does not work on Windows of course) See https://swing.fit.cvut.cz/projects/stx-jv/ticket/154
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
10263
177534def4c3 initial checkin
vrany
parents:
diff changeset
     1
"
177534def4c3 initial checkin
vrany
parents:
diff changeset
     2
 COPYRIGHT (c) 2006 by eXept Software AG
177534def4c3 initial checkin
vrany
parents:
diff changeset
     3
	      All Rights Reserved
177534def4c3 initial checkin
vrany
parents:
diff changeset
     4
177534def4c3 initial checkin
vrany
parents:
diff changeset
     5
 This software is furnished under a license and may be used
177534def4c3 initial checkin
vrany
parents:
diff changeset
     6
 only in accordance with the terms of that license and with the
177534def4c3 initial checkin
vrany
parents:
diff changeset
     7
 inclusion of the above copyright notice.   This software may not
177534def4c3 initial checkin
vrany
parents:
diff changeset
     8
 be provided or otherwise made available to, or used by, any
177534def4c3 initial checkin
vrany
parents:
diff changeset
     9
 other person.  No title to or ownership of the software is
177534def4c3 initial checkin
vrany
parents:
diff changeset
    10
 hereby transferred.
177534def4c3 initial checkin
vrany
parents:
diff changeset
    11
"
177534def4c3 initial checkin
vrany
parents:
diff changeset
    12
"{ Package: 'stx:libtool' }"
177534def4c3 initial checkin
vrany
parents:
diff changeset
    13
15950
23be8cf85415 Bugfix in merge tool.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 15566
diff changeset
    14
"{ NameSpace: Smalltalk }"
23be8cf85415 Bugfix in merge tool.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 15566
diff changeset
    15
10263
177534def4c3 initial checkin
vrany
parents:
diff changeset
    16
XEmbedContainerView subclass:#XTermView
177534def4c3 initial checkin
vrany
parents:
diff changeset
    17
	instanceVariableNames:'pid wid wd'
177534def4c3 initial checkin
vrany
parents:
diff changeset
    18
	classVariableNames:'XTermType XTermExecutable'
177534def4c3 initial checkin
vrany
parents:
diff changeset
    19
	poolDictionaries:''
177534def4c3 initial checkin
vrany
parents:
diff changeset
    20
	category:'Interface-Tools-Terminal'
177534def4c3 initial checkin
vrany
parents:
diff changeset
    21
!
177534def4c3 initial checkin
vrany
parents:
diff changeset
    22
177534def4c3 initial checkin
vrany
parents:
diff changeset
    23
!XTermView class methodsFor:'documentation'!
177534def4c3 initial checkin
vrany
parents:
diff changeset
    24
177534def4c3 initial checkin
vrany
parents:
diff changeset
    25
copyright
177534def4c3 initial checkin
vrany
parents:
diff changeset
    26
"
177534def4c3 initial checkin
vrany
parents:
diff changeset
    27
 COPYRIGHT (c) 2006 by eXept Software AG
177534def4c3 initial checkin
vrany
parents:
diff changeset
    28
	      All Rights Reserved
177534def4c3 initial checkin
vrany
parents:
diff changeset
    29
177534def4c3 initial checkin
vrany
parents:
diff changeset
    30
 This software is furnished under a license and may be used
177534def4c3 initial checkin
vrany
parents:
diff changeset
    31
 only in accordance with the terms of that license and with the
177534def4c3 initial checkin
vrany
parents:
diff changeset
    32
 inclusion of the above copyright notice.   This software may not
177534def4c3 initial checkin
vrany
parents:
diff changeset
    33
 be provided or otherwise made available to, or used by, any
177534def4c3 initial checkin
vrany
parents:
diff changeset
    34
 other person.  No title to or ownership of the software is
177534def4c3 initial checkin
vrany
parents:
diff changeset
    35
 hereby transferred.
177534def4c3 initial checkin
vrany
parents:
diff changeset
    36
"
13907
99bbb7660e97 class: XTermView
Claus Gittinger <cg@exept.de>
parents: 13816
diff changeset
    37
!
99bbb7660e97 class: XTermView
Claus Gittinger <cg@exept.de>
parents: 13816
diff changeset
    38
99bbb7660e97 class: XTermView
Claus Gittinger <cg@exept.de>
parents: 13816
diff changeset
    39
examples
99bbb7660e97 class: XTermView
Claus Gittinger <cg@exept.de>
parents: 13816
diff changeset
    40
"
99bbb7660e97 class: XTermView
Claus Gittinger <cg@exept.de>
parents: 13816
diff changeset
    41
    self new open
99bbb7660e97 class: XTermView
Claus Gittinger <cg@exept.de>
parents: 13816
diff changeset
    42
"
10263
177534def4c3 initial checkin
vrany
parents:
diff changeset
    43
! !
177534def4c3 initial checkin
vrany
parents:
diff changeset
    44
177534def4c3 initial checkin
vrany
parents:
diff changeset
    45
!XTermView class methodsFor:'class initialization'!
177534def4c3 initial checkin
vrany
parents:
diff changeset
    46
177534def4c3 initial checkin
vrany
parents:
diff changeset
    47
initialize
177534def4c3 initial checkin
vrany
parents:
diff changeset
    48
177534def4c3 initial checkin
vrany
parents:
diff changeset
    49
    XTermType := #unavailable.
13907
99bbb7660e97 class: XTermView
Claus Gittinger <cg@exept.de>
parents: 13816
diff changeset
    50
    #(urxvt rxvt xterm uxterm) do:[:eachXtermCommandSymbol|    
99bbb7660e97 class: XTermView
Claus Gittinger <cg@exept.de>
parents: 13816
diff changeset
    51
        (XTermExecutable := OperatingSystem pathOfCommand:eachXtermCommandSymbol) notNil ifTrue:[
99bbb7660e97 class: XTermView
Claus Gittinger <cg@exept.de>
parents: 13816
diff changeset
    52
            XTermType := eachXtermCommandSymbol.
11831
f2e23f8433f1 *** empty log message ***
Stefan Vogel <sv@exept.de>
parents: 10704
diff changeset
    53
            ^ self
13907
99bbb7660e97 class: XTermView
Claus Gittinger <cg@exept.de>
parents: 13816
diff changeset
    54
        ].
10263
177534def4c3 initial checkin
vrany
parents:
diff changeset
    55
    ].
177534def4c3 initial checkin
vrany
parents:
diff changeset
    56
177534def4c3 initial checkin
vrany
parents:
diff changeset
    57
    "
177534def4c3 initial checkin
vrany
parents:
diff changeset
    58
        XTermView initialize 
177534def4c3 initial checkin
vrany
parents:
diff changeset
    59
    "
177534def4c3 initial checkin
vrany
parents:
diff changeset
    60
177534def4c3 initial checkin
vrany
parents:
diff changeset
    61
    "Created: / 09-12-2010 / 23:15:40 / Jan Vrany <jan.vrany@fit.cvut.cz>"
177534def4c3 initial checkin
vrany
parents:
diff changeset
    62
! !
177534def4c3 initial checkin
vrany
parents:
diff changeset
    63
177534def4c3 initial checkin
vrany
parents:
diff changeset
    64
!XTermView class methodsFor:'defaults'!
177534def4c3 initial checkin
vrany
parents:
diff changeset
    65
177534def4c3 initial checkin
vrany
parents:
diff changeset
    66
defaultFont
177534def4c3 initial checkin
vrany
parents:
diff changeset
    67
177534def4c3 initial checkin
vrany
parents:
diff changeset
    68
    DefaultFont ifNotNil:[^CodeView defaultFont].
177534def4c3 initial checkin
vrany
parents:
diff changeset
    69
    ^super defaultFont.
177534def4c3 initial checkin
vrany
parents:
diff changeset
    70
177534def4c3 initial checkin
vrany
parents:
diff changeset
    71
    "Created: / 25-11-2010 / 12:50:20 / Jan Vrany <jan.vrany@fit.cvut.cz>"
177534def4c3 initial checkin
vrany
parents:
diff changeset
    72
!
177534def4c3 initial checkin
vrany
parents:
diff changeset
    73
177534def4c3 initial checkin
vrany
parents:
diff changeset
    74
updateStyleCache
177534def4c3 initial checkin
vrany
parents:
diff changeset
    75
177534def4c3 initial checkin
vrany
parents:
diff changeset
    76
    super updateStyleCache.
177534def4c3 initial checkin
vrany
parents:
diff changeset
    77
    "/DefaultViewBackgroundColor := Color black.
177534def4c3 initial checkin
vrany
parents:
diff changeset
    78
177534def4c3 initial checkin
vrany
parents:
diff changeset
    79
    "Created: / 25-11-2010 / 12:21:35 / Jan Vrany <jan.vrany@fit.cvut.cz>"
177534def4c3 initial checkin
vrany
parents:
diff changeset
    80
! !
177534def4c3 initial checkin
vrany
parents:
diff changeset
    81
177534def4c3 initial checkin
vrany
parents:
diff changeset
    82
!XTermView class methodsFor:'queries'!
177534def4c3 initial checkin
vrany
parents:
diff changeset
    83
177534def4c3 initial checkin
vrany
parents:
diff changeset
    84
isAvailable
177534def4c3 initial checkin
vrany
parents:
diff changeset
    85
177534def4c3 initial checkin
vrany
parents:
diff changeset
    86
    ^XTermType ~= #unavailable
177534def4c3 initial checkin
vrany
parents:
diff changeset
    87
177534def4c3 initial checkin
vrany
parents:
diff changeset
    88
    "Created: / 09-12-2010 / 23:21:47 / Jan Vrany <jan.vrany@fit.cvut.cz>"
177534def4c3 initial checkin
vrany
parents:
diff changeset
    89
! !
177534def4c3 initial checkin
vrany
parents:
diff changeset
    90
177534def4c3 initial checkin
vrany
parents:
diff changeset
    91
!XTermView methodsFor:'accessing'!
177534def4c3 initial checkin
vrany
parents:
diff changeset
    92
177534def4c3 initial checkin
vrany
parents:
diff changeset
    93
workingDirectory: aStringOrFilename
177534def4c3 initial checkin
vrany
parents:
diff changeset
    94
177534def4c3 initial checkin
vrany
parents:
diff changeset
    95
    aStringOrFilename ifNotNil:
177534def4c3 initial checkin
vrany
parents:
diff changeset
    96
        [wd := aStringOrFilename asString].
177534def4c3 initial checkin
vrany
parents:
diff changeset
    97
177534def4c3 initial checkin
vrany
parents:
diff changeset
    98
    "Created: / 25-11-2010 / 12:32:41 / Jan Vrany <jan.vrany@fit.cvut.cz>"
177534def4c3 initial checkin
vrany
parents:
diff changeset
    99
! !
177534def4c3 initial checkin
vrany
parents:
diff changeset
   100
177534def4c3 initial checkin
vrany
parents:
diff changeset
   101
!XTermView methodsFor:'event handling'!
177534def4c3 initial checkin
vrany
parents:
diff changeset
   102
177534def4c3 initial checkin
vrany
parents:
diff changeset
   103
clientUnplugged: clientInitiated
177534def4c3 initial checkin
vrany
parents:
diff changeset
   104
177534def4c3 initial checkin
vrany
parents:
diff changeset
   105
    | app |
177534def4c3 initial checkin
vrany
parents:
diff changeset
   106
177534def4c3 initial checkin
vrany
parents:
diff changeset
   107
    super clientUnplugged: clientInitiated.
177534def4c3 initial checkin
vrany
parents:
diff changeset
   108
177534def4c3 initial checkin
vrany
parents:
diff changeset
   109
    clientInitiated ifFalse:[^self].
177534def4c3 initial checkin
vrany
parents:
diff changeset
   110
    
177534def4c3 initial checkin
vrany
parents:
diff changeset
   111
    "But hackish..."
177534def4c3 initial checkin
vrany
parents:
diff changeset
   112
    app := self application.
177534def4c3 initial checkin
vrany
parents:
diff changeset
   113
    app ifNil:[^self].
13816
732c224bdfb9 merged in jv's chenges
Claus Gittinger <cg@exept.de>
parents: 13790
diff changeset
   114
    (app class == FileApplicationNoteBook::Terminal) ifTrue:[
732c224bdfb9 merged in jv's chenges
Claus Gittinger <cg@exept.de>
parents: 13790
diff changeset
   115
        app doClose.
732c224bdfb9 merged in jv's chenges
Claus Gittinger <cg@exept.de>
parents: 13790
diff changeset
   116
        ^self.
732c224bdfb9 merged in jv's chenges
Claus Gittinger <cg@exept.de>
parents: 13790
diff changeset
   117
    ].
10263
177534def4c3 initial checkin
vrany
parents:
diff changeset
   118
    #(removeWorkspace "WorkspaceApplication"
177534def4c3 initial checkin
vrany
parents:
diff changeset
   119
      bufferMenuRemoveCurrentBuffer "NewSystemBrowser"
177534def4c3 initial checkin
vrany
parents:
diff changeset
   120
    ) do:[:closeSelector|
13816
732c224bdfb9 merged in jv's chenges
Claus Gittinger <cg@exept.de>
parents: 13790
diff changeset
   121
        (app topApplication respondsTo: closeSelector) ifTrue: [
732c224bdfb9 merged in jv's chenges
Claus Gittinger <cg@exept.de>
parents: 13790
diff changeset
   122
            app topApplication perform: closeSelector.
732c224bdfb9 merged in jv's chenges
Claus Gittinger <cg@exept.de>
parents: 13790
diff changeset
   123
            ^self
732c224bdfb9 merged in jv's chenges
Claus Gittinger <cg@exept.de>
parents: 13790
diff changeset
   124
        ]
732c224bdfb9 merged in jv's chenges
Claus Gittinger <cg@exept.de>
parents: 13790
diff changeset
   125
    ].
10263
177534def4c3 initial checkin
vrany
parents:
diff changeset
   126
177534def4c3 initial checkin
vrany
parents:
diff changeset
   127
    "Created: / 06-06-2011 / 10:04:56 / Jan Vrany <jan.vrany@fit.cvut.cz>"
177534def4c3 initial checkin
vrany
parents:
diff changeset
   128
! !
177534def4c3 initial checkin
vrany
parents:
diff changeset
   129
177534def4c3 initial checkin
vrany
parents:
diff changeset
   130
!XTermView methodsFor:'initialization & release'!
177534def4c3 initial checkin
vrany
parents:
diff changeset
   131
14461
5dfe30926b88 class: XTermView
Claus Gittinger <cg@exept.de>
parents: 14460
diff changeset
   132
closeDownShell
5dfe30926b88 class: XTermView
Claus Gittinger <cg@exept.de>
parents: 14460
diff changeset
   133
    "shut down my shell process."
5dfe30926b88 class: XTermView
Claus Gittinger <cg@exept.de>
parents: 14460
diff changeset
   134
14460
13d136d2e5a9 class: XTermView
Claus Gittinger <cg@exept.de>
parents: 13952
diff changeset
   135
    |p|
10263
177534def4c3 initial checkin
vrany
parents:
diff changeset
   136
14460
13d136d2e5a9 class: XTermView
Claus Gittinger <cg@exept.de>
parents: 13952
diff changeset
   137
    (p := pid) notNil ifTrue:[
13d136d2e5a9 class: XTermView
Claus Gittinger <cg@exept.de>
parents: 13952
diff changeset
   138
        pid := nil.
13d136d2e5a9 class: XTermView
Claus Gittinger <cg@exept.de>
parents: 13952
diff changeset
   139
        OperatingSystem terminateProcess: p
13d136d2e5a9 class: XTermView
Claus Gittinger <cg@exept.de>
parents: 13952
diff changeset
   140
    ].
14461
5dfe30926b88 class: XTermView
Claus Gittinger <cg@exept.de>
parents: 14460
diff changeset
   141
!
5dfe30926b88 class: XTermView
Claus Gittinger <cg@exept.de>
parents: 14460
diff changeset
   142
5dfe30926b88 class: XTermView
Claus Gittinger <cg@exept.de>
parents: 14460
diff changeset
   143
destroy
5dfe30926b88 class: XTermView
Claus Gittinger <cg@exept.de>
parents: 14460
diff changeset
   144
    self closeDownShell.
5dfe30926b88 class: XTermView
Claus Gittinger <cg@exept.de>
parents: 14460
diff changeset
   145
    super destroy.
10263
177534def4c3 initial checkin
vrany
parents:
diff changeset
   146
177534def4c3 initial checkin
vrany
parents:
diff changeset
   147
    "Created: / 25-11-2010 / 10:48:41 / Jan Vrany <jan.vrany@fit.cvut.cz>"
177534def4c3 initial checkin
vrany
parents:
diff changeset
   148
    "Modified: / 01-06-2011 / 13:13:32 / Jan Vrany <jan.vrany@fit.cvut.cz>"
177534def4c3 initial checkin
vrany
parents:
diff changeset
   149
!
177534def4c3 initial checkin
vrany
parents:
diff changeset
   150
177534def4c3 initial checkin
vrany
parents:
diff changeset
   151
initialize
177534def4c3 initial checkin
vrany
parents:
diff changeset
   152
177534def4c3 initial checkin
vrany
parents:
diff changeset
   153
    super initialize.
177534def4c3 initial checkin
vrany
parents:
diff changeset
   154
    wd := Filename defaultDirectory asString
177534def4c3 initial checkin
vrany
parents:
diff changeset
   155
177534def4c3 initial checkin
vrany
parents:
diff changeset
   156
    "Created: / 25-11-2010 / 12:34:55 / Jan Vrany <jan.vrany@fit.cvut.cz>"
177534def4c3 initial checkin
vrany
parents:
diff changeset
   157
! !
177534def4c3 initial checkin
vrany
parents:
diff changeset
   158
13816
732c224bdfb9 merged in jv's chenges
Claus Gittinger <cg@exept.de>
parents: 13790
diff changeset
   159
!XTermView methodsFor:'menu'!
732c224bdfb9 merged in jv's chenges
Claus Gittinger <cg@exept.de>
parents: 13790
diff changeset
   160
732c224bdfb9 merged in jv's chenges
Claus Gittinger <cg@exept.de>
parents: 13790
diff changeset
   161
doClear
732c224bdfb9 merged in jv's chenges
Claus Gittinger <cg@exept.de>
parents: 13790
diff changeset
   162
    "reset the scroll-range etc, clear the text buffer"
732c224bdfb9 merged in jv's chenges
Claus Gittinger <cg@exept.de>
parents: 13790
diff changeset
   163
732c224bdfb9 merged in jv's chenges
Claus Gittinger <cg@exept.de>
parents: 13790
diff changeset
   164
"/    rangeStartLine := 1.
732c224bdfb9 merged in jv's chenges
Claus Gittinger <cg@exept.de>
parents: 13790
diff changeset
   165
"/    rangeEndLine := numberOfLines.
732c224bdfb9 merged in jv's chenges
Claus Gittinger <cg@exept.de>
parents: 13790
diff changeset
   166
"/
732c224bdfb9 merged in jv's chenges
Claus Gittinger <cg@exept.de>
parents: 13790
diff changeset
   167
"/    self normal.
732c224bdfb9 merged in jv's chenges
Claus Gittinger <cg@exept.de>
parents: 13790
diff changeset
   168
"/    self clear.
732c224bdfb9 merged in jv's chenges
Claus Gittinger <cg@exept.de>
parents: 13790
diff changeset
   169
732c224bdfb9 merged in jv's chenges
Claus Gittinger <cg@exept.de>
parents: 13790
diff changeset
   170
    "Created: / 03-04-2007 / 08:58:59 / cg"
732c224bdfb9 merged in jv's chenges
Claus Gittinger <cg@exept.de>
parents: 13790
diff changeset
   171
    "Modified: / 03-04-2012 / 10:34:20 / Jan Vrany <jan.vrany@fit.cvut.cz>"
732c224bdfb9 merged in jv's chenges
Claus Gittinger <cg@exept.de>
parents: 13790
diff changeset
   172
!
732c224bdfb9 merged in jv's chenges
Claus Gittinger <cg@exept.de>
parents: 13790
diff changeset
   173
732c224bdfb9 merged in jv's chenges
Claus Gittinger <cg@exept.de>
parents: 13790
diff changeset
   174
doReset
732c224bdfb9 merged in jv's chenges
Claus Gittinger <cg@exept.de>
parents: 13790
diff changeset
   175
    "reset the scroll-range; 
732c224bdfb9 merged in jv's chenges
Claus Gittinger <cg@exept.de>
parents: 13790
diff changeset
   176
     may have to reset more in the future (current font-set; color; etc)"
732c224bdfb9 merged in jv's chenges
Claus Gittinger <cg@exept.de>
parents: 13790
diff changeset
   177
732c224bdfb9 merged in jv's chenges
Claus Gittinger <cg@exept.de>
parents: 13790
diff changeset
   178
"/    rangeStartLine := 1.
732c224bdfb9 merged in jv's chenges
Claus Gittinger <cg@exept.de>
parents: 13790
diff changeset
   179
"/    rangeEndLine := numberOfLines.
732c224bdfb9 merged in jv's chenges
Claus Gittinger <cg@exept.de>
parents: 13790
diff changeset
   180
"/
732c224bdfb9 merged in jv's chenges
Claus Gittinger <cg@exept.de>
parents: 13790
diff changeset
   181
"/    self normal.
732c224bdfb9 merged in jv's chenges
Claus Gittinger <cg@exept.de>
parents: 13790
diff changeset
   182
732c224bdfb9 merged in jv's chenges
Claus Gittinger <cg@exept.de>
parents: 13790
diff changeset
   183
    "Modified: / 03-04-2012 / 10:34:24 / Jan Vrany <jan.vrany@fit.cvut.cz>"
732c224bdfb9 merged in jv's chenges
Claus Gittinger <cg@exept.de>
parents: 13790
diff changeset
   184
!
732c224bdfb9 merged in jv's chenges
Claus Gittinger <cg@exept.de>
parents: 13790
diff changeset
   185
732c224bdfb9 merged in jv's chenges
Claus Gittinger <cg@exept.de>
parents: 13790
diff changeset
   186
doSendInterrupt
732c224bdfb9 merged in jv's chenges
Claus Gittinger <cg@exept.de>
parents: 13790
diff changeset
   187
    "send an INT-signal to the shell (UNIX only)"
732c224bdfb9 merged in jv's chenges
Claus Gittinger <cg@exept.de>
parents: 13790
diff changeset
   188
    pid notNil ifTrue:[
732c224bdfb9 merged in jv's chenges
Claus Gittinger <cg@exept.de>
parents: 13790
diff changeset
   189
        OperatingSystem sendSignal:(OperatingSystem sigINT) to:pid negated.
732c224bdfb9 merged in jv's chenges
Claus Gittinger <cg@exept.de>
parents: 13790
diff changeset
   190
    ].
732c224bdfb9 merged in jv's chenges
Claus Gittinger <cg@exept.de>
parents: 13790
diff changeset
   191
732c224bdfb9 merged in jv's chenges
Claus Gittinger <cg@exept.de>
parents: 13790
diff changeset
   192
    "Modified: / 10-06-1998 / 17:49:49 / cg"
732c224bdfb9 merged in jv's chenges
Claus Gittinger <cg@exept.de>
parents: 13790
diff changeset
   193
    "Modified: / 03-04-2012 / 10:34:39 / Jan Vrany <jan.vrany@fit.cvut.cz>"
732c224bdfb9 merged in jv's chenges
Claus Gittinger <cg@exept.de>
parents: 13790
diff changeset
   194
!
732c224bdfb9 merged in jv's chenges
Claus Gittinger <cg@exept.de>
parents: 13790
diff changeset
   195
732c224bdfb9 merged in jv's chenges
Claus Gittinger <cg@exept.de>
parents: 13790
diff changeset
   196
doSendKillSignal
732c224bdfb9 merged in jv's chenges
Claus Gittinger <cg@exept.de>
parents: 13790
diff changeset
   197
    "send a KILL-signal to the shell (UNIX only)"
732c224bdfb9 merged in jv's chenges
Claus Gittinger <cg@exept.de>
parents: 13790
diff changeset
   198
732c224bdfb9 merged in jv's chenges
Claus Gittinger <cg@exept.de>
parents: 13790
diff changeset
   199
    pid notNil ifTrue:[
732c224bdfb9 merged in jv's chenges
Claus Gittinger <cg@exept.de>
parents: 13790
diff changeset
   200
        OperatingSystem sendSignal:(OperatingSystem sigKILL) to:pid negated.
732c224bdfb9 merged in jv's chenges
Claus Gittinger <cg@exept.de>
parents: 13790
diff changeset
   201
    ]
732c224bdfb9 merged in jv's chenges
Claus Gittinger <cg@exept.de>
parents: 13790
diff changeset
   202
732c224bdfb9 merged in jv's chenges
Claus Gittinger <cg@exept.de>
parents: 13790
diff changeset
   203
    "Modified: / 03-04-2012 / 10:34:45 / Jan Vrany <jan.vrany@fit.cvut.cz>"
732c224bdfb9 merged in jv's chenges
Claus Gittinger <cg@exept.de>
parents: 13790
diff changeset
   204
! !
732c224bdfb9 merged in jv's chenges
Claus Gittinger <cg@exept.de>
parents: 13790
diff changeset
   205
10263
177534def4c3 initial checkin
vrany
parents:
diff changeset
   206
!XTermView methodsFor:'mimicry'!
177534def4c3 initial checkin
vrany
parents:
diff changeset
   207
13816
732c224bdfb9 merged in jv's chenges
Claus Gittinger <cg@exept.de>
parents: 13790
diff changeset
   208
defaultFileNameForFileDialog
732c224bdfb9 merged in jv's chenges
Claus Gittinger <cg@exept.de>
parents: 13790
diff changeset
   209
732c224bdfb9 merged in jv's chenges
Claus Gittinger <cg@exept.de>
parents: 13790
diff changeset
   210
    ^nil
732c224bdfb9 merged in jv's chenges
Claus Gittinger <cg@exept.de>
parents: 13790
diff changeset
   211
732c224bdfb9 merged in jv's chenges
Claus Gittinger <cg@exept.de>
parents: 13790
diff changeset
   212
    "Created: / 03-05-2012 / 12:29:04 / Jan Vrany <jan.vrany@fit.cvut.cz>"
732c224bdfb9 merged in jv's chenges
Claus Gittinger <cg@exept.de>
parents: 13790
diff changeset
   213
!
732c224bdfb9 merged in jv's chenges
Claus Gittinger <cg@exept.de>
parents: 13790
diff changeset
   214
732c224bdfb9 merged in jv's chenges
Claus Gittinger <cg@exept.de>
parents: 13790
diff changeset
   215
lineLimit:aSmallInteger
732c224bdfb9 merged in jv's chenges
Claus Gittinger <cg@exept.de>
parents: 13790
diff changeset
   216
732c224bdfb9 merged in jv's chenges
Claus Gittinger <cg@exept.de>
parents: 13790
diff changeset
   217
    "Nothing"
732c224bdfb9 merged in jv's chenges
Claus Gittinger <cg@exept.de>
parents: 13790
diff changeset
   218
732c224bdfb9 merged in jv's chenges
Claus Gittinger <cg@exept.de>
parents: 13790
diff changeset
   219
    "Created: / 03-04-2012 / 10:42:53 / Jan Vrany <jan.vrany@fit.cvut.cz>"
732c224bdfb9 merged in jv's chenges
Claus Gittinger <cg@exept.de>
parents: 13790
diff changeset
   220
!
732c224bdfb9 merged in jv's chenges
Claus Gittinger <cg@exept.de>
parents: 13790
diff changeset
   221
732c224bdfb9 merged in jv's chenges
Claus Gittinger <cg@exept.de>
parents: 13790
diff changeset
   222
list
732c224bdfb9 merged in jv's chenges
Claus Gittinger <cg@exept.de>
parents: 13790
diff changeset
   223
    ^nil
732c224bdfb9 merged in jv's chenges
Claus Gittinger <cg@exept.de>
parents: 13790
diff changeset
   224
732c224bdfb9 merged in jv's chenges
Claus Gittinger <cg@exept.de>
parents: 13790
diff changeset
   225
    "Created: / 17-07-2012 / 21:11:59 / Jan Vrany <jan.vrany@fit.cvut.cz>"
732c224bdfb9 merged in jv's chenges
Claus Gittinger <cg@exept.de>
parents: 13790
diff changeset
   226
!
732c224bdfb9 merged in jv's chenges
Claus Gittinger <cg@exept.de>
parents: 13790
diff changeset
   227
732c224bdfb9 merged in jv's chenges
Claus Gittinger <cg@exept.de>
parents: 13790
diff changeset
   228
modified
732c224bdfb9 merged in jv's chenges
Claus Gittinger <cg@exept.de>
parents: 13790
diff changeset
   229
732c224bdfb9 merged in jv's chenges
Claus Gittinger <cg@exept.de>
parents: 13790
diff changeset
   230
    ^false
732c224bdfb9 merged in jv's chenges
Claus Gittinger <cg@exept.de>
parents: 13790
diff changeset
   231
732c224bdfb9 merged in jv's chenges
Claus Gittinger <cg@exept.de>
parents: 13790
diff changeset
   232
    "Created: / 03-05-2012 / 11:42:36 / Jan Vrany <jan.vrany@fit.cvut.cz>"
732c224bdfb9 merged in jv's chenges
Claus Gittinger <cg@exept.de>
parents: 13790
diff changeset
   233
!
732c224bdfb9 merged in jv's chenges
Claus Gittinger <cg@exept.de>
parents: 13790
diff changeset
   234
732c224bdfb9 merged in jv's chenges
Claus Gittinger <cg@exept.de>
parents: 13790
diff changeset
   235
save
732c224bdfb9 merged in jv's chenges
Claus Gittinger <cg@exept.de>
parents: 13790
diff changeset
   236
732c224bdfb9 merged in jv's chenges
Claus Gittinger <cg@exept.de>
parents: 13790
diff changeset
   237
    Dialog warn: 'Not yet implemented for XTermView'
732c224bdfb9 merged in jv's chenges
Claus Gittinger <cg@exept.de>
parents: 13790
diff changeset
   238
732c224bdfb9 merged in jv's chenges
Claus Gittinger <cg@exept.de>
parents: 13790
diff changeset
   239
    "Created: / 03-04-2012 / 10:43:57 / Jan Vrany <jan.vrany@fit.cvut.cz>"
732c224bdfb9 merged in jv's chenges
Claus Gittinger <cg@exept.de>
parents: 13790
diff changeset
   240
!
732c224bdfb9 merged in jv's chenges
Claus Gittinger <cg@exept.de>
parents: 13790
diff changeset
   241
732c224bdfb9 merged in jv's chenges
Claus Gittinger <cg@exept.de>
parents: 13790
diff changeset
   242
selectionAsString
13952
1b127aaddf33 class: XTermView
Stefan Vogel <sv@exept.de>
parents: 13913
diff changeset
   243
    ^ (self graphicsDevice getSelectionOwnerOf: #PRIMARY) = self drawableId ifTrue:[
1b127aaddf33 class: XTermView
Stefan Vogel <sv@exept.de>
parents: 13913
diff changeset
   244
        self graphicsDevice getClipboardText:#selection for:self drawableId
13816
732c224bdfb9 merged in jv's chenges
Claus Gittinger <cg@exept.de>
parents: 13790
diff changeset
   245
    ] ifFalse:[
732c224bdfb9 merged in jv's chenges
Claus Gittinger <cg@exept.de>
parents: 13790
diff changeset
   246
        nil
732c224bdfb9 merged in jv's chenges
Claus Gittinger <cg@exept.de>
parents: 13790
diff changeset
   247
    ]
732c224bdfb9 merged in jv's chenges
Claus Gittinger <cg@exept.de>
parents: 13790
diff changeset
   248
732c224bdfb9 merged in jv's chenges
Claus Gittinger <cg@exept.de>
parents: 13790
diff changeset
   249
    "Created: / 03-04-2012 / 10:30:12 / Jan Vrany <jan.vrany@fit.cvut.cz>"
732c224bdfb9 merged in jv's chenges
Claus Gittinger <cg@exept.de>
parents: 13790
diff changeset
   250
!
732c224bdfb9 merged in jv's chenges
Claus Gittinger <cg@exept.de>
parents: 13790
diff changeset
   251
732c224bdfb9 merged in jv's chenges
Claus Gittinger <cg@exept.de>
parents: 13790
diff changeset
   252
sendLine:aString
732c224bdfb9 merged in jv's chenges
Claus Gittinger <cg@exept.de>
parents: 13790
diff changeset
   253
    self halt:'please define sendLine: here'.
732c224bdfb9 merged in jv's chenges
Claus Gittinger <cg@exept.de>
parents: 13790
diff changeset
   254
732c224bdfb9 merged in jv's chenges
Claus Gittinger <cg@exept.de>
parents: 13790
diff changeset
   255
    "Created: / 03-04-2012 / 10:33:01 / Jan Vrany <jan.vrany@fit.cvut.cz>"
732c224bdfb9 merged in jv's chenges
Claus Gittinger <cg@exept.de>
parents: 13790
diff changeset
   256
!
732c224bdfb9 merged in jv's chenges
Claus Gittinger <cg@exept.de>
parents: 13790
diff changeset
   257
10263
177534def4c3 initial checkin
vrany
parents:
diff changeset
   258
shellTerminateAction: aBlock
177534def4c3 initial checkin
vrany
parents:
diff changeset
   259
177534def4c3 initial checkin
vrany
parents:
diff changeset
   260
    "Nothing to do"
177534def4c3 initial checkin
vrany
parents:
diff changeset
   261
177534def4c3 initial checkin
vrany
parents:
diff changeset
   262
    "Created: / 25-11-2010 / 12:37:30 / Jan Vrany <jan.vrany@fit.cvut.cz>"
177534def4c3 initial checkin
vrany
parents:
diff changeset
   263
!
177534def4c3 initial checkin
vrany
parents:
diff changeset
   264
177534def4c3 initial checkin
vrany
parents:
diff changeset
   265
startShellIn:aUnixFilename
177534def4c3 initial checkin
vrany
parents:
diff changeset
   266
177534def4c3 initial checkin
vrany
parents:
diff changeset
   267
    "Nothing to do. just to be compatible with TerminalView"
177534def4c3 initial checkin
vrany
parents:
diff changeset
   268
177534def4c3 initial checkin
vrany
parents:
diff changeset
   269
    "Created: / 25-11-2010 / 12:38:45 / Jan Vrany <jan.vrany@fit.cvut.cz>"
177534def4c3 initial checkin
vrany
parents:
diff changeset
   270
! !
177534def4c3 initial checkin
vrany
parents:
diff changeset
   271
177534def4c3 initial checkin
vrany
parents:
diff changeset
   272
!XTermView methodsFor:'private'!
177534def4c3 initial checkin
vrany
parents:
diff changeset
   273
177534def4c3 initial checkin
vrany
parents:
diff changeset
   274
xcolorNameFor: aColor
177534def4c3 initial checkin
vrany
parents:
diff changeset
   275
177534def4c3 initial checkin
vrany
parents:
diff changeset
   276
    ^'rgb:%1/%2/%3' 
177534def4c3 initial checkin
vrany
parents:
diff changeset
   277
            bindWith: (aColor redByte   printStringRadix: 16)
177534def4c3 initial checkin
vrany
parents:
diff changeset
   278
                with: (aColor greenByte printStringRadix: 16)
177534def4c3 initial checkin
vrany
parents:
diff changeset
   279
                with: (aColor blueByte  printStringRadix: 16)
177534def4c3 initial checkin
vrany
parents:
diff changeset
   280
177534def4c3 initial checkin
vrany
parents:
diff changeset
   281
    "Created: / 25-11-2010 / 12:25:01 / Jan Vrany <jan.vrany@fit.cvut.cz>"
177534def4c3 initial checkin
vrany
parents:
diff changeset
   282
!
177534def4c3 initial checkin
vrany
parents:
diff changeset
   283
177534def4c3 initial checkin
vrany
parents:
diff changeset
   284
xtermArgs
177534def4c3 initial checkin
vrany
parents:
diff changeset
   285
    | args |
177534def4c3 initial checkin
vrany
parents:
diff changeset
   286
177534def4c3 initial checkin
vrany
parents:
diff changeset
   287
    args := OrderedCollection new.
177534def4c3 initial checkin
vrany
parents:
diff changeset
   288
    args
177534def4c3 initial checkin
vrany
parents:
diff changeset
   289
        add: self xtermExecutable;
13952
1b127aaddf33 class: XTermView
Stefan Vogel <sv@exept.de>
parents: 13913
diff changeset
   290
        add: (XTermType == #xterm ifTrue:['-into'] ifFalse:['-embed']); add:self embeddingWindowId printString;        
10263
177534def4c3 initial checkin
vrany
parents:
diff changeset
   291
        add: '-j';
13913
d4cdc5e3e3d2 Fix - removed initStyle
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 13907
diff changeset
   292
"/        add: '-font'; add: (device fullFontNameOf: (font fontId));
10263
177534def4c3 initial checkin
vrany
parents:
diff changeset
   293
        add: '-fg'; add: 'white'"(self xcolorNameFor: foreground)";
177534def4c3 initial checkin
vrany
parents:
diff changeset
   294
        add: '-bg'; add: 'black'"(self xcolorNameFor: viewBackground)".
177534def4c3 initial checkin
vrany
parents:
diff changeset
   295
177534def4c3 initial checkin
vrany
parents:
diff changeset
   296
    XTermType == #rxvt ifTrue:[
177534def4c3 initial checkin
vrany
parents:
diff changeset
   297
    args
177534def4c3 initial checkin
vrany
parents:
diff changeset
   298
        add: '-tn'; add: 'xterm'
177534def4c3 initial checkin
vrany
parents:
diff changeset
   299
    ].
177534def4c3 initial checkin
vrany
parents:
diff changeset
   300
13816
732c224bdfb9 merged in jv's chenges
Claus Gittinger <cg@exept.de>
parents: 13790
diff changeset
   301
    ^args asArray
10263
177534def4c3 initial checkin
vrany
parents:
diff changeset
   302
13913
d4cdc5e3e3d2 Fix - removed initStyle
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 13907
diff changeset
   303
    "Modified: / 06-02-2014 / 20:03:53 / Jan Vrany <jan.vrany@fit.cvut.cz>"
10263
177534def4c3 initial checkin
vrany
parents:
diff changeset
   304
!
177534def4c3 initial checkin
vrany
parents:
diff changeset
   305
177534def4c3 initial checkin
vrany
parents:
diff changeset
   306
xtermExecutable
177534def4c3 initial checkin
vrany
parents:
diff changeset
   307
177534def4c3 initial checkin
vrany
parents:
diff changeset
   308
    ^ XTermExecutable
177534def4c3 initial checkin
vrany
parents:
diff changeset
   309
177534def4c3 initial checkin
vrany
parents:
diff changeset
   310
    "Modified: / 09-12-2010 / 23:16:09 / Jan Vrany <jan.vrany@fit.cvut.cz>"
177534def4c3 initial checkin
vrany
parents:
diff changeset
   311
! !
177534def4c3 initial checkin
vrany
parents:
diff changeset
   312
177534def4c3 initial checkin
vrany
parents:
diff changeset
   313
!XTermView methodsFor:'queries'!
177534def4c3 initial checkin
vrany
parents:
diff changeset
   314
177534def4c3 initial checkin
vrany
parents:
diff changeset
   315
preferredExtent
177534def4c3 initial checkin
vrany
parents:
diff changeset
   316
    "return my preferred extent - this is the minimum size I would like to have.
177534def4c3 initial checkin
vrany
parents:
diff changeset
   317
     If the preferredExtent has been set, that one is returned.
177534def4c3 initial checkin
vrany
parents:
diff changeset
   318
     Otherwise, if there are any components, a rectangle enclosing them
177534def4c3 initial checkin
vrany
parents:
diff changeset
   319
     is returned. Otherwise, the actual extent is returned."
177534def4c3 initial checkin
vrany
parents:
diff changeset
   320
177534def4c3 initial checkin
vrany
parents:
diff changeset
   321
    "/ If I have an explicit preferredExtent..
177534def4c3 initial checkin
vrany
parents:
diff changeset
   322
    explicitExtent notNil ifTrue:[
177534def4c3 initial checkin
vrany
parents:
diff changeset
   323
        ^ explicitExtent
177534def4c3 initial checkin
vrany
parents:
diff changeset
   324
    ].
177534def4c3 initial checkin
vrany
parents:
diff changeset
   325
177534def4c3 initial checkin
vrany
parents:
diff changeset
   326
    "/ If I have a cached preferredExtent value..
177534def4c3 initial checkin
vrany
parents:
diff changeset
   327
    preferredExtent notNil ifTrue:[
177534def4c3 initial checkin
vrany
parents:
diff changeset
   328
        ^ preferredExtent
177534def4c3 initial checkin
vrany
parents:
diff changeset
   329
    ].
177534def4c3 initial checkin
vrany
parents:
diff changeset
   330
13952
1b127aaddf33 class: XTermView
Stefan Vogel <sv@exept.de>
parents: 13913
diff changeset
   331
    ^(gc font width * 80) @ (gc font height * 25)
10263
177534def4c3 initial checkin
vrany
parents:
diff changeset
   332
177534def4c3 initial checkin
vrany
parents:
diff changeset
   333
    "Modified: / 19-07-1996 / 20:43:32 / cg"
177534def4c3 initial checkin
vrany
parents:
diff changeset
   334
    "Created: / 25-11-2010 / 12:51:39 / Jan Vrany <jan.vrany@fit.cvut.cz>"
177534def4c3 initial checkin
vrany
parents:
diff changeset
   335
! !
177534def4c3 initial checkin
vrany
parents:
diff changeset
   336
177534def4c3 initial checkin
vrany
parents:
diff changeset
   337
!XTermView methodsFor:'realization'!
177534def4c3 initial checkin
vrany
parents:
diff changeset
   338
177534def4c3 initial checkin
vrany
parents:
diff changeset
   339
postRealize
177534def4c3 initial checkin
vrany
parents:
diff changeset
   340
177534def4c3 initial checkin
vrany
parents:
diff changeset
   341
    super postRealize.
177534def4c3 initial checkin
vrany
parents:
diff changeset
   342
    XTermType ~= #rxvt ifTrue:[self sizeChanged: nil]
177534def4c3 initial checkin
vrany
parents:
diff changeset
   343
177534def4c3 initial checkin
vrany
parents:
diff changeset
   344
    "Created: / 25-11-2010 / 11:08:01 / Jan Vrany <jan.vrany@fit.cvut.cz>"
177534def4c3 initial checkin
vrany
parents:
diff changeset
   345
    "Modified: / 13-12-2010 / 22:08:27 / Jan Vrany <jan.vrany@fit.cvut.cz>"
177534def4c3 initial checkin
vrany
parents:
diff changeset
   346
!
177534def4c3 initial checkin
vrany
parents:
diff changeset
   347
177534def4c3 initial checkin
vrany
parents:
diff changeset
   348
preRealize
177534def4c3 initial checkin
vrany
parents:
diff changeset
   349
    super preRealize.
13907
99bbb7660e97 class: XTermView
Claus Gittinger <cg@exept.de>
parents: 13816
diff changeset
   350
    self startXTerm
99bbb7660e97 class: XTermView
Claus Gittinger <cg@exept.de>
parents: 13816
diff changeset
   351
99bbb7660e97 class: XTermView
Claus Gittinger <cg@exept.de>
parents: 13816
diff changeset
   352
    "Created: / 25-11-2010 / 10:51:57 / Jan Vrany <jan.vrany@fit.cvut.cz>"
99bbb7660e97 class: XTermView
Claus Gittinger <cg@exept.de>
parents: 13816
diff changeset
   353
    "Modified: / 02-06-2011 / 23:27:01 / Jan Vrany <jan.vrany@fit.cvut.cz>"
99bbb7660e97 class: XTermView
Claus Gittinger <cg@exept.de>
parents: 13816
diff changeset
   354
!
99bbb7660e97 class: XTermView
Claus Gittinger <cg@exept.de>
parents: 13816
diff changeset
   355
99bbb7660e97 class: XTermView
Claus Gittinger <cg@exept.de>
parents: 13816
diff changeset
   356
startXTerm
10263
177534def4c3 initial checkin
vrany
parents:
diff changeset
   357
    clientViewId isNil ifTrue:[
13907
99bbb7660e97 class: XTermView
Claus Gittinger <cg@exept.de>
parents: 13816
diff changeset
   358
        pid := OperatingSystem 
10263
177534def4c3 initial checkin
vrany
parents:
diff changeset
   359
                exec:self xtermExecutable
177534def4c3 initial checkin
vrany
parents:
diff changeset
   360
                withArguments:self xtermArgs
177534def4c3 initial checkin
vrany
parents:
diff changeset
   361
                fork:true
177534def4c3 initial checkin
vrany
parents:
diff changeset
   362
                inDirectory: wd.
177534def4c3 initial checkin
vrany
parents:
diff changeset
   363
    ]
177534def4c3 initial checkin
vrany
parents:
diff changeset
   364
177534def4c3 initial checkin
vrany
parents:
diff changeset
   365
    "Created: / 25-11-2010 / 10:51:57 / Jan Vrany <jan.vrany@fit.cvut.cz>"
177534def4c3 initial checkin
vrany
parents:
diff changeset
   366
    "Modified: / 02-06-2011 / 23:27:01 / Jan Vrany <jan.vrany@fit.cvut.cz>"
177534def4c3 initial checkin
vrany
parents:
diff changeset
   367
! !
177534def4c3 initial checkin
vrany
parents:
diff changeset
   368
10704
015027d5c1a2 added: #isTextView (sent by recent WorkspaceApplication)
vrany
parents: 10263
diff changeset
   369
!XTermView methodsFor:'testing'!
015027d5c1a2 added: #isTextView (sent by recent WorkspaceApplication)
vrany
parents: 10263
diff changeset
   370
015027d5c1a2 added: #isTextView (sent by recent WorkspaceApplication)
vrany
parents: 10263
diff changeset
   371
isTextView
015027d5c1a2 added: #isTextView (sent by recent WorkspaceApplication)
vrany
parents: 10263
diff changeset
   372
13816
732c224bdfb9 merged in jv's chenges
Claus Gittinger <cg@exept.de>
parents: 13790
diff changeset
   373
    ^true
10704
015027d5c1a2 added: #isTextView (sent by recent WorkspaceApplication)
vrany
parents: 10263
diff changeset
   374
015027d5c1a2 added: #isTextView (sent by recent WorkspaceApplication)
vrany
parents: 10263
diff changeset
   375
    "Created: / 13-09-2011 / 11:22:49 / Jan Vrany <jan.vrany@fit.cvut.cz>"
015027d5c1a2 added: #isTextView (sent by recent WorkspaceApplication)
vrany
parents: 10263
diff changeset
   376
! !
015027d5c1a2 added: #isTextView (sent by recent WorkspaceApplication)
vrany
parents: 10263
diff changeset
   377
10263
177534def4c3 initial checkin
vrany
parents:
diff changeset
   378
!XTermView class methodsFor:'documentation'!
177534def4c3 initial checkin
vrany
parents:
diff changeset
   379
14461
5dfe30926b88 class: XTermView
Claus Gittinger <cg@exept.de>
parents: 14460
diff changeset
   380
version
5dfe30926b88 class: XTermView
Claus Gittinger <cg@exept.de>
parents: 14460
diff changeset
   381
    ^ '$Header: /cvs/stx/stx/libtool/XTermView.st,v 1.10 2014-06-05 18:25:15 cg Exp $'
5dfe30926b88 class: XTermView
Claus Gittinger <cg@exept.de>
parents: 14460
diff changeset
   382
!
5dfe30926b88 class: XTermView
Claus Gittinger <cg@exept.de>
parents: 14460
diff changeset
   383
10263
177534def4c3 initial checkin
vrany
parents:
diff changeset
   384
version_CVS
14461
5dfe30926b88 class: XTermView
Claus Gittinger <cg@exept.de>
parents: 14460
diff changeset
   385
    ^ '$Header: /cvs/stx/stx/libtool/XTermView.st,v 1.10 2014-06-05 18:25:15 cg Exp $'
10263
177534def4c3 initial checkin
vrany
parents:
diff changeset
   386
!
177534def4c3 initial checkin
vrany
parents:
diff changeset
   387
177534def4c3 initial checkin
vrany
parents:
diff changeset
   388
version_SVN
14461
5dfe30926b88 class: XTermView
Claus Gittinger <cg@exept.de>
parents: 14460
diff changeset
   389
    ^ '$Id: XTermView.st,v 1.10 2014-06-05 18:25:15 cg Exp $'
10263
177534def4c3 initial checkin
vrany
parents:
diff changeset
   390
! !
177534def4c3 initial checkin
vrany
parents:
diff changeset
   391
13790
743e45769350 class: XTermView
Stefan Vogel <sv@exept.de>
parents: 11831
diff changeset
   392
10263
177534def4c3 initial checkin
vrany
parents:
diff changeset
   393
XTermView initialize!