-
Notifications
You must be signed in to change notification settings - Fork 35
/
LeopardTerminalDump.h
2616 lines (2355 loc) · 79.2 KB
/
LeopardTerminalDump.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
/*
* Generated by class-dump 3.1.2.
*
* class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2007 by Steve Nygard.
*/
struct CGContext;
struct _NSPoint {
float x;
float y;
};
struct _NSRange {
unsigned int location;
unsigned int length;
};
struct _NSRect {
struct _NSPoint origin;
struct _NSSize size;
};
struct _NSSize {
float width;
float height;
};
struct _NSZone;
struct __CFURL;
struct __CFUUID;
struct fd_set {
int fds_bits[32];
};
struct storage_list {
TTTextStorage *_field1;
struct storage_list *_field2;
};
typedef struct {
unsigned int y;
unsigned int x;
} CDAnonymousStruct8;
typedef struct {
unsigned int _field1;
unsigned int _field2;
unsigned int _field3;
char *_field4;
unsigned int _field5;
unsigned int _field6;
} CDAnonymousStruct2;
typedef struct {
unsigned int line;
unsigned int column;
} CDAnonymousStruct3;
typedef struct {
unsigned int bold:1;
unsigned int dim:1;
unsigned int underline:1;
unsigned int inverted:1;
unsigned int blink:1;
unsigned int invisible:1;
unsigned int tab:1;
unsigned int marked:1;
unsigned int custom:1;
unsigned int ansiForegroundColor;
unsigned int ansiBackgroundColor;
} CDAnonymousStruct4;
typedef struct {
unsigned int _field1;
unsigned int _field2;
} CDAnonymousStruct5;
typedef struct {
unsigned int _field1;
struct {
unsigned int :1;
unsigned int :1;
unsigned int :1;
unsigned int :1;
unsigned int :1;
unsigned int :1;
unsigned int :1;
unsigned int :1;
unsigned int :1;
unsigned int _field1;
unsigned int _field2;
} _field2;
} CDAnonymousStruct6;
typedef struct {
unsigned short _field1;
CDAnonymousStruct1 *_field2;
unsigned int _field3;
} CDAnonymousStruct7;
typedef struct {
} CDAnonymousStruct1;
/*
* File: /Applications/Utilities/Terminal.app/Contents/MacOS/Terminal
* Arch: Intel 80x86 (i386)
*/
@protocol NSCoding
- (void)encodeWithCoder:(id)fp8;
- (id)initWithCoder:(id)fp8;
@end
@protocol NSCopying
- (id)copyWithZone:(struct _NSZone *)fp8;
@end
@protocol NSTextInput
- (void)insertText:(id)fp8;
- (void)doCommandBySelector:(SEL)fp8;
- (void)setMarkedText:(id)fp8 selectedRange:(struct _NSRange)fp12;
- (void)unmarkText;
- (BOOL)hasMarkedText;
- (int)conversationIdentifier;
- (id)attributedSubstringFromRange:(struct _NSRange)fp8;
- (struct _NSRange)markedRange;
- (struct _NSRange)selectedRange;
- (struct _NSRect)firstRectForCharacterRange:(struct _NSRange)fp8;
- (unsigned int)characterIndexForPoint:(struct _NSPoint)fp8;
- (id)validAttributesForMarkedText;
@end
@protocol TTBlinking
- (void)blinker:(id)fp8 didBlink:(BOOL)fp12;
@end
@protocol TTEventEncoder
- (id)initWithController:(id)fp8;
- (id)encodeEvent:(id)fp8;
@end
@protocol TTOutputDecoder
- (id)initWithController:(id)fp8;
- (id)decodeData:(id)fp8;
- (void)softReset;
- (void)hardReset;
@end
@interface TTShell : NSObject
{
TTTabController *_controller;
TTProfile *_profile;
id _target;
SEL _action;
int _fd;
int _pid;
int _shellPid;
int _shellParentPid;
int _ttyDevice;
char _ptyPath[12];
int _exitStatus;
BOOL _childTerminated;
BOOL _pipeClosed;
BOOL _wasDirty;
BOOL _isUpdatingDirty;
char *_shellArgs[255];
NSMutableArray *_runningProcesses;
NSString *_frontmostProcess;
int _frontmostProcessPID;
NSString *_shellCommand;
int _shellExitAction;
BOOL _useOptionAsMetaKey;
BOOL _deleteSendsBackspace;
NSMutableData *_writeBuffer;
}
+ (void)initialize;
+ (id)runningShells;
+ (void)signalPipeHandler:(id)fp8;
+ (void)childDidTerminate:(id)fp8;
+ (id)pathForExecutable:(id)fp8;
- (id)initWithAction:(SEL)fp8 target:(id)fp12 profile:(id)fp16 controller:(id)fp20 customShell:(id)fp24;
- (id)description;
- (id)initShellArgs:(id)fp8;
- (void)setProfile:(id)fp8;
- (void)setShellExitActionOverride:(int)fp8;
- (void)dealloc;
- (int)pid;
- (int)fileDescriptor;
- (int)ttyDevice;
- (BOOL)isRunning;
- (void)detachTarget;
- (id)target;
- (SEL)action;
- (id)controller;
- (void)childTerminated:(int)fp8;
- (void)ioManagerDidEncounterError:(id)fp8;
- (void)processEnded;
- (void)terminate;
- (void)writeData:(id)fp8;
- (void)writeData:(id)fp8 escapingCharacters:(BOOL)fp12;
- (BOOL)isDirty;
- (id)updatedRunningProcesses;
- (id)runningProcesses;
- (id)frontmostProcess;
- (void)updateContentSize:(struct _NSSize)fp8 rowCount:(unsigned int)fp16 columnCount:(unsigned int)fp20;
- (id)exitStatusMessage:(int)fp8;
- (id)ptyPathNSString;
- (int)shellExitAction;
- (id)shellCommand;
- (void)setShouldBufferWrites:(BOOL)fp8;
- (BOOL)isBufferingWrites;
@end
@interface NSString (Terminal)
+ (id)stringWithCharacter:(unsigned short)fp8 times:(unsigned int)fp12;
+ (id)equivalentStringForMenuItem:(id)fp8;
- (id)escapedFilename;
- (id)arguments;
- (id)string;
- (id)stringByNormalizingNewlines;
@end
@interface TTWindowController : NSWindowController
{
NSMenu *_contextualMenu;
NSMenu *_contextualMenuForSelection;
TTTabView *_tabView;
NSMutableArray *_tabControllers;
unsigned int _windowProfileID;
TTTabController *_selectedTabController;
TTWindowController *_draggedController;
TTWindowController *_receiverController;
TTTabViewItem *_draggedTab;
BOOL _isBeingDragged;
id _delegate;
struct _NSRect _idealContentRect;
BOOL _blockGeometryUpdate;
BOOL _closeDialogExpected;
struct _NSPoint _cascadePoint;
BOOL _hasAssignedFrame;
}
+ (void)initialize;
- (id)initWithWindow:(id)fp8;
- (void)dealloc;
- (id)windowNibName;
- (void)awakeFromNib;
- (void)setWindowProfileID:(unsigned int)fp8;
- (unsigned int)windowProfileID;
- (void)updateTitle;
- (void)setDelegate:(id)fp8;
- (id)delegate;
- (void)updateAutosaveName;
- (void)updateWindowGeometry;
- (struct _NSRect)windowWillUseStandardFrame:(id)fp8 defaultFrame:(struct _NSRect)fp12;
- (BOOL)shouldCloseTabViewItem:(id)fp8;
- (void)tabView:(id)fp8 didCloseTabViewItem:(id)fp12;
- (void)setSelectedTabController:(id)fp8;
- (void)tabView:(id)fp8 didSelectTabViewItem:(id)fp12;
- (void)tabView:(id)fp8 didDropTabViewItemOutOfWindow:(struct _NSPoint)fp12;
- (void)tabView:(id)fp8 draggingTabViewItemOutOfWindow:(id)fp12 toPoint:(struct _NSPoint)fp16;
- (void)tabView:(id)fp8 didDragTabViewItemOutOfWindow:(id)fp12 toPoint:(struct _NSPoint)fp16;
- (id)findWindowControllerAtPoint:(struct _NSPoint)fp8;
- (void)observeValueForKeyPath:(id)fp8 ofObject:(id)fp12 change:(id)fp16 context:(void *)fp20;
- (BOOL)menu:(id)fp8 updateItem:(id)fp12 atIndex:(int)fp16 shouldCancel:(BOOL)fp20;
- (BOOL)validateMenuItem:(id)fp8;
- (BOOL)acceptsFirstResponder;
- (BOOL)windowShouldClose:(id)fp8;
- (void)displayWindowCloseSheet:(int)fp8;
- (void)closeSheetDidEnd:(id)fp8 returnCode:(int)fp12 contextInfo:(void *)fp16;
- (void)windowWillClose:(id)fp8;
- (void)windowDidBecomeMain:(id)fp8;
- (void)windowDidResize:(id)fp8;
- (void)newTab:(id)fp8;
- (void)applyProfileToAllShellsInWindow:(id)fp8;
- (void)closeTab:(id)fp8;
- (void)closeOtherTabs:(id)fp8;
- (void)autoCloseSpecificTab:(id)fp8;
- (void)autoCloseAllTabs;
- (void)closeWindowIfNoMoreTabs;
- (int)countOfTabsThatNeedClosePrompt;
- (void)moveTabViewItemToNewWindow:(id)fp8;
- (void)moveTabViewItemToThisWindow:(id)fp8 fromWindowController:(id)fp12;
- (void)selectNextTab:(id)fp8;
- (void)selectPreviousTab:(id)fp8;
- (void)toggleTabBarShown:(id)fp8;
- (void)mergeAllWindows:(id)fp8;
- (void)moveTabToNewWindow:(id)fp8;
- (id)newTabWithProfile:(id)fp8;
- (id)newTabWithProfile:(id)fp8 command:(id)fp12 runAsShell:(BOOL)fp16;
- (void)addExistingTabViewItem:(id)fp8 atPoint:(struct _NSPoint)fp12;
- (void)addExistingTabViewItem:(id)fp8;
- (void)removeTabViewItem:(id)fp8;
- (void)removeTabController:(id)fp8;
- (id)tabControllers;
- (unsigned int)numberOfTabs;
- (id)tabView;
- (id)selectedTabController;
- (void)scanForDirtyTabControllers;
- (BOOL)isBeingDragged;
- (void)setIsBeingDragged:(BOOL)fp8;
- (void)setBlockGeometryUpdate:(BOOL)fp8;
- (BOOL)blockGeometryUpdate;
- (void)setCloseDialogExpected:(BOOL)fp8;
- (BOOL)closeDialogExpected;
- (id)contextualMenu;
- (id)contextualMenuForSelection;
- (void)settingsPickerDidSelectProfile:(id)fp8;
- (id)thumbnailOfSize:(struct _NSSize)fp8 forProfile:(id)fp16;
@end
@interface TTEncodingConverter : NSObject <TTOutputDecoder>
{
TTProfile *_profile;
NSMutableData *_inputBuffer;
int _iso2022jpCSState;
unsigned int _stringEncoding;
}
- (id)initWithController:(id)fp8;
- (id)initWithProfile:(id)fp8;
- (void)dealloc;
- (id)profile;
- (void)setProfile:(id)fp8;
- (void)observeValueForKeyPath:(id)fp8 ofObject:(id)fp12 change:(id)fp16 context:(void *)fp20;
- (id)decodeData:(id)fp8;
- (void)softReset;
- (void)hardReset;
@end
@interface TTEncodingConverter (PrivateMethods)
- (id)alignData:(id)fp8 usingEncoding:(unsigned int)fp12;
- (id)_utf8ValidateData:(id)fp8 pushBack:(BOOL)fp12;
- (id)_iso2022jpValidateData:(id)fp8 pushBack:(BOOL)fp12;
- (id)_validateData:(id)fp8 pushBack:(BOOL)fp12 encoding:(unsigned int)fp16;
@end
@interface TTNilToEmptyStringTransformer : NSValueTransformer
{
}
+ (Class)transformedValueClass;
+ (BOOL)allowsReverseTransformation;
- (id)transformedValue:(id)fp8;
- (id)reverseTransformedValue:(id)fp8;
@end
@interface TTMappedKeysToSortedTransformer : NSValueTransformer
{
TTKeyMapTextEscaper *_escaper;
}
+ (Class)transformedValueClass;
+ (BOOL)allowsReverseTransformation;
+ (id)localizedDescriptionForMappedKey:(id)fp8;
- (id)init;
- (void)dealloc;
- (id)transformedValue:(id)fp8;
@end
@interface TTFontToStringTransformer : NSValueTransformer
{
}
+ (Class)transformedValueClass;
+ (BOOL)allowsReverseTransformation;
- (id)transformedValue:(id)fp8;
@end
@interface TTBuiltinProfile : TTProfile
{
}
+ (id)sharedBuiltinProfile;
+ (id)defaultKeyMappings;
- (id)init;
- (id)copyWithZone:(struct _NSZone *)fp8;
- (id)description;
- (id)name;
- (void)setName:(id)fp8;
- (void)setParentProfile:(id)fp8;
- (void)setScopeValue:(id)fp8 forKey:(id)fp12;
@end
@interface TTProfile : NSObject <NSCopying, NSCoding>
{
NSMutableDictionary *_values;
NSMutableSet *_observedKeys;
TTProfile *_parentProfile;
NSString *_name;
}
+ (id)profileKeys;
- (id)init;
- (void)dealloc;
- (id)initWithProfile:(id)fp8;
- (void)encodeWithCoder:(id)fp8;
- (id)initWithCoder:(id)fp8;
- (id)copyWithZone:(struct _NSZone *)fp8;
- (BOOL)isEqual:(id)fp8;
- (id)description;
- (void)setParentProfile:(id)fp8;
- (id)parentProfile;
- (void)setProfile:(id)fp8;
- (id)name;
- (void)setName:(id)fp8;
- (BOOL)validateName:(id *)fp8 error:(id *)fp12;
- (id)scopeValueForKey:(id)fp8;
- (void)setScopeValue:(id)fp8 forKey:(id)fp12;
- (id)scopeValues;
- (void)setScopeValues:(id)fp8;
- (id)effectiveValues;
- (id)effectiveValueForKey:(id)fp8;
- (id)valueForUndefinedKey:(id)fp8;
- (void)setValue:(id)fp8 forUndefinedKey:(id)fp12;
- (void)addObserver:(id)fp8 forKeyPath:(id)fp12 options:(unsigned int)fp16 context:(void *)fp20;
- (void)removeObserver:(id)fp8 forKeyPath:(id)fp12;
- (void)observeValueForKeyPath:(id)fp8 ofObject:(id)fp12 change:(id)fp16 context:(void *)fp20;
- (void)stopObservingParentProfile;
- (id)propertyListRepresentation;
- (id)initWithPropertyListRepresentation:(id)fp8;
- (BOOL)setPropertyListRepresentation:(id)fp8;
- (id)encodingController;
@end
@interface TTProfile (Internal)
+ (id)archivedKeys;
- (void)validate;
@end
@interface NSColor (Terminal)
+ (id)vtBlackColor;
+ (id)vtRedColor;
+ (id)vtGreenColor;
+ (id)vtYellowColor;
+ (id)vtBlueColor;
+ (id)vtMagentaColor;
+ (id)vtCyanColor;
+ (id)vtWhiteColor;
+ (id)vtBrightBlackColor;
+ (id)vtBrightRedColor;
+ (id)vtBrightGreenColor;
+ (id)vtBrightYellowColor;
+ (id)vtBrightBlueColor;
+ (id)vtBrightMagentaColor;
+ (id)vtBrightCyanColor;
+ (id)vtBrightWhiteColor;
@end
@interface TTTermFileConverter : NSObject
{
}
+ (id)convertTermFile:(id)fp8;
+ (id)convertTermFile:(id)fp8 forceWorkspace:(BOOL)fp12;
+ (id)profileWithDefaults:(id)fp8 name:(id)fp12;
+ (id)profileWithDefaults:(id)fp8 name:(id)fp12 origin:(struct _NSPoint *)fp16 isUpperLeftOrigin:(char *)fp20;
+ (id)workspaceRepresentationWithDefaultsArray:(id)fp8 name:(id)fp12;
+ (BOOL)convertKey:(id)fp8 value:(id)fp12 profile:(id)fp16;
+ (id)convertBooleanValue:(id)fp8;
+ (id)convertIntegerValue:(id)fp8;
+ (id)convertFloatValue:(id)fp8;
+ (void)convertBackgroundImagePath:(id)fp8 profile:(id)fp12;
+ (void)convertTextColors:(id)fp8 profile:(id)fp12;
+ (void)convertNSFixedPitchFont:(id)fp8 profile:(id)fp12;
+ (void)convertCursorShape:(id)fp8 profile:(id)fp12;
+ (void)convertTitleBits:(id)fp8 profile:(id)fp12;
+ (void)convertMeta:(id)fp8 profile:(id)fp12;
+ (void)convertExecutionString:(id)fp8 profile:(id)fp12;
+ (void)convertShell:(id)fp8 profile:(id)fp12;
+ (void)convertSaveLines:(id)fp8 profile:(id)fp12;
+ (id)mappingDictionary;
+ (id)typeMappingDictionary;
@end
@interface TTUUID : NSObject <NSCopying, NSCoding>
{
struct __CFUUID *_uuid;
NSString *_uuidString;
}
+ (id)UUID;
- (id)init;
- (id)initWithUUIDRef:(struct __CFUUID *)fp8;
- (void)dealloc;
- (BOOL)isEqual:(id)fp8;
- (unsigned int)hash;
- (id)description;
- (void)encodeWithCoder:(id)fp8;
- (id)initWithCoder:(id)fp8;
- (id)copyWithZone:(struct _NSZone *)fp8;
- (id)string;
- (id)stringValue;
- (struct __CFUUID *)UUIDRef;
- (int)compare:(id)fp8;
@end
@interface TTWorkspace : NSObject <NSCoding, NSCopying>
{
NSMutableArray *_windowControllers;
NSString *_name;
}
+ (id)propertyListForWindowAtPoint:(struct _NSPoint)fp8 withProfile:(id)fp16;
+ (id)propertyListRepresentationWithName:(id)fp8 windowRepresentations:(id)fp12;
- (id)init;
- (void)dealloc;
- (id)copyWithZone:(struct _NSZone *)fp8;
- (id)name;
- (void)setName:(id)fp8;
- (void)addWindowController:(id)fp8;
- (void)removeWindowController:(id)fp8;
- (void)addWorkspace:(id)fp8;
- (id)windowControllers;
- (void)encodeWithCoder:(id)fp8;
- (id)initWithCoder:(id)fp8;
- (void)showWindows;
- (id)propertyListRepresentation;
- (id)initWithPropertyListRepresentation:(id)fp8;
- (id)propertyListForWindowController:(id)fp8;
- (id)windowControllerForPropertyList:(id)fp8;
@end
@interface TTTabViewItem : NSTabViewItem
{
NSImage *_alertImage;
NSCell *_labelCell;
TTTabAlertAnimation *_alertAnimation;
struct _NSRect _rect;
struct _NSRect _closeRect;
struct _NSRect _alertRect;
BOOL _alertEnabled;
BOOL _isBeingDraggedFromOutside;
BOOL _willDisableAlert;
BOOL _showCloseImage;
BOOL _isClosing;
BOOL _willClose;
BOOL _isOffScreen;
float _closingProgress;
float _closeOpacity;
float _isTabHighlighted;
BOOL _isBeingDragged;
BOOL _isBeingReordered;
BOOL _isSpringingBack;
float _alertFadingProgress;
float _reorderProgress;
float _springBackProgress;
int _reorderState;
int _toolTipTag;
BOOL _isSlidingInTabBar;
}
- (id)initWithIdentifier:(id)fp8;
- (void)dealloc;
- (void)animationDidEnd:(id)fp8;
- (void)drawTabViewItem:(struct _NSRect)fp8;
- (void)removeToolTip;
- (void)_drawImage:(id)fp8 inRect:(struct _NSRect)fp12 withOpacity:(float)fp28;
- (void)_drawLabel:(struct _NSRect)fp8;
- (struct _NSRect)_determineRectForImage:(id)fp8;
- (void)setIsBeingDragged:(BOOL)fp8;
- (BOOL)isBeingDragged;
- (void)setIsSpringingBack:(BOOL)fp8;
- (float)closingProgress;
- (BOOL)isSpringingBack;
- (void)setState:(unsigned int)fp8;
- (void)setIsBeingReordered:(BOOL)fp8;
- (void)setIsOffScreen:(BOOL)fp8;
- (BOOL)isOffScreen;
- (BOOL)isTabHighlighted;
- (void)setReorderState:(int)fp8;
- (int)reorderState;
- (void)setSpringBackProgress:(float)fp8;
- (float)springBackProgress;
- (void)setReorderProgress:(float)fp8;
- (float)reorderProgress;
- (void)setWillClose:(BOOL)fp8;
- (BOOL)willClose;
- (void)setAlertFadingProgress:(float)fp8;
- (float)alertFadingProgress;
- (void)setAlertImage:(id)fp8;
- (void)setShowCloseImage:(BOOL)fp8;
- (void)setIsBeingDraggedFromOutside:(BOOL)fp8;
- (BOOL)isBeingDraggedFromOutside;
- (struct _NSRect)rect;
- (struct _NSRect)closeRect;
- (void)setIsSlidingInTabBar:(BOOL)fp8;
- (BOOL)isSlidingInTabBar;
- (void)disableAlert;
- (void)enableAlert;
- (void)lightenTab;
- (void)darkenTab;
- (void)lightenCloseImage;
- (void)darkenCloseImage;
- (void)darkenMoreCloseImage;
- (BOOL)accessibilityIsIgnored;
@end
@interface TTTabAlertAnimation : TTTabAnimation
{
}
- (void)setCurrentProgress:(float)fp8;
@end
@interface TTTabAnimation : NSAnimation
{
TTTabViewItem *_tab;
}
- (id)tab;
- (void)setTab:(id)fp8;
@end
@interface TTTabView : NSTabView
{
struct _NSRect _overflowImageRect;
struct _NSRect _tabFrame;
TTTabViewItem *_draggedTab;
TTTabViewItem *_draggedTabOnCloseImage;
unsigned int _draggedTabInitialIndex;
struct _NSPoint _lastMouseDownLocation;
float _tabDraggedXOffset;
float _tabDraggedYOffset;
float _tabDraggedXOffsetBeyondBounds;
BOOL _showOverflowTabMenu;
BOOL _isShowingOverflowMenu;
BOOL _isMouseOffScreen;
BOOL _isTabViewOnBottom;
BOOL _showTabIfOnlyOne;
BOOL _isRegisteredForDragEvents;
NSImage *_overflowTabMenuImage;
NSImage *_draggingImage;
float TT_TAB_FRAME_BOTTOM;
NSAnimation *_activeAnimation;
}
- (id)initWithFrame:(struct _NSRect)fp8;
- (void)dealloc;
- (void)initTabFrame;
- (void)setFrame:(struct _NSRect)fp8;
- (void)viewWillMoveToWindow:(id)fp8;
- (void)windowDidChangeKey:(id)fp8;
- (BOOL)acceptsMouseMovedEvents;
- (BOOL)acceptsFirstResponder;
- (id)tabViewItemAtPoint:(struct _NSPoint)fp8;
- (void)mouseDown:(id)fp8;
- (void)mouseUp:(id)fp8;
- (void)mouseMoved:(id)fp8;
- (void)mouseDragged:(id)fp8;
- (void)draggedImage:(id)fp8 endedAt:(struct _NSPoint)fp12 operation:(unsigned int)fp20;
- (void)draggedImage:(id)fp8 movedTo:(struct _NSPoint)fp12;
- (struct _NSPoint)recenterMouseInFloatingTab:(struct _NSPoint)fp8;
- (struct _NSPoint)reverseRecenterMouseInFloatingTab:(struct _NSPoint)fp8;
- (void)registerForDragEvents;
- (void)unregisterForDragEvents;
- (BOOL)isValidDragOperation:(id)fp8;
- (BOOL)prepareForDragOperation:(id)fp8;
- (BOOL)performDragOperation:(id)fp8;
- (unsigned int)draggingEntered:(id)fp8;
- (unsigned int)draggingUpdated:(id)fp8;
- (void)draggingExited:(id)fp8;
- (void)selectTabViewItem:(id)fp8;
- (void)selectNextTabViewItem:(id)fp8;
- (void)selectPreviousTabViewItem:(id)fp8;
- (void)removeTabViewItem:(id)fp8;
- (void)addTabViewItem:(id)fp8;
- (void)addTabViewItem:(id)fp8 atPoint:(struct _NSPoint)fp12;
- (BOOL)isTabViewItemInOverflowMenu:(id)fp8;
- (int)indexOfLastVisibleTabViewItem;
- (void)stopActiveAnimation;
- (void)startTabReorderAnimation:(id)fp8;
- (void)startSpringBackAnimation:(id)fp8;
- (void)animationDidEnd:(id)fp8;
- (struct _NSRect)rectForTabViewItemForNumberOfTabs:(int)fp8;
- (struct _NSRect)contentRect;
- (struct _NSSize)frameSizeForContentSize:(struct _NSSize)fp8;
- (struct _NSSize)contentSizeForFrameSize:(struct _NSSize)fp8;
- (void)removeTabViewTooltips;
- (struct _NSRect)_tabRectAdjustedForOverlap:(struct _NSRect)fp8;
- (struct _NSRect)resizeRectToFitInsideBounds:(struct _NSRect)fp8;
- (void)viewDidEndLiveResize;
- (void)resizeWindowToAccountForTabsBeingDisplayed:(int)fp8;
- (void)drawTabOverflowMenuImage;
- (void)drawBorderAndBackground;
- (void)drawRect:(struct _NSRect)fp8;
- (BOOL)menu:(id)fp8 updateItem:(id)fp12 atIndex:(int)fp16 shouldCancel:(BOOL)fp20;
- (void)menuNeedsUpdate:(id)fp8;
- (void)selectTabFromMenu:(id)fp8;
- (id)lineColor;
- (BOOL)isFlipped;
- (void)setTabViewOnBottom:(BOOL)fp8;
- (BOOL)tabViewOnBottom;
- (void)setShowTabIfOnlyOne:(BOOL)fp8;
- (BOOL)showTabIfOnlyOne;
- (id)selectedTabViewItem;
- (struct _NSRect)tabFrame;
- (void)setTabDraggedXOffset:(float)fp8;
- (float)tabDraggedXOffset;
- (float)tabDraggedYOffset;
- (void)setDraggedTab:(id)fp8;
- (id)draggedTab;
- (void)setOverflowTabMenuImage:(id)fp8;
- (id)view:(id)fp8 stringForToolTip:(int)fp12 point:(struct _NSPoint)fp16 userData:(void *)fp24;
- (BOOL)accessibilityIsIgnored;
@end
@interface NSTabView (TTTabExtension)
- (void)exchangeItemAtIndex:(int)fp8 withItemAtIndex:(int)fp12;
- (struct _NSRect)expandRect:(struct _NSRect)fp8;
@end
@interface TTTabReorderAnimation : TTTabAnimation
{
}
- (void)setCurrentProgress:(float)fp8;
@end
@interface TTTabController : NSObject
{
TTTabViewItem *_tab;
TTView *_view;
NSScroller *_scroller;
NSBox *_contentView;
TTShell *_shell;
TTLogicalScreen *_logicalScreen;
NSObject<TTOutputDecoder> *_outputDecoder;
NSObject<TTOutputDecoder> *_encodingConverter;
NSObject<TTEventEncoder> *_eventEncoder;
TTProfile *_profile;
NSFont *_customFont;
NSString *_customTitle;
TTProfile *_scriptingProfile;
}
+ (void)initialize;
- (id)init;
- (id)initWithProfile:(id)fp8 command:(id)fp12 runAsShell:(BOOL)fp16;
- (void)setProfile:(id)fp8;
- (void)setGeometryToProfile:(id)fp8;
- (void)dealloc;
- (void)setTab:(id)fp8;
- (id)getTabViewItem;
- (id)getWindowController;
- (BOOL)tabShouldClose;
- (void)closeSheetDidEnd:(id)fp8 returnCode:(int)fp12 contextInfo:(void *)fp16;
- (void)shellDidReceiveData:(id)fp8;
- (id)outputDecoder;
- (id)encodingConverter;
- (id)eventEncoder;
- (id)logicalScreen;
- (id)profile;
- (id)shell;
- (void)initViews;
- (id)view;
- (id)scroller;
- (id)contentView;
- (id)title;
- (id)tabTitle;
- (id)customFont;
- (void)setCustomFont:(id)fp8;
- (void)setCustomFontOverride:(id)fp8;
- (id)customTitle;
- (void)setCustomTitle:(id)fp8;
- (void)scrollToTop;
- (void)scrollToBottom;
- (void)lineUp;
- (void)lineDown;
- (void)pageUp;
- (void)pageDown;
- (void)updateFromScroller:(id)fp8;
- (BOOL)needsClosePrompt;
- (void)reapShell:(BOOL)fp8;
- (void)writeDirectToScreen:(id)fp8;
- (void)observeValueForKeyPath:(id)fp8 ofObject:(id)fp12 change:(id)fp16 context:(void *)fp20;
- (void)emulatorDidDecodeData:(id)fp8;
@end
@interface TTTabSpringBackAnimation : TTTabAnimation
{
}
- (void)setCurrentProgress:(float)fp8;
@end
@interface TTWindow : NSWindow
{
struct _NSRect _fullFrame;
}
- (id)initWithContentRect:(struct _NSRect)fp8 styleMask:(unsigned int)fp24 backing:(unsigned int)fp28 defer:(BOOL)fp32;
- (void)sendEvent:(id)fp8;
- (void)selectFollowingWindow:(id)fp8 goingBackwards:(BOOL)fp12;
- (struct _NSRect)fullFrame;
- (void)setFullFrame:(struct _NSRect)fp8;
- (BOOL)validateMenuItem:(id)fp8;
@end
@interface TTShellReaper : NSObject
{
NSMutableArray *_shellArray;
NSThread *_thread;
NSConditionLock *_conditionLock;
}
+ (id)sharedReaper;
- (id)init;
- (void)dealloc;
- (void)reapShell:(id)fp8;
- (void)reapShellsInArray:(id)fp8;
- (void)wait;
- (void)grimReaper;
@end
@interface TTBlinker : NSObject
{
NSTimer *_timer;
NSMutableSet *_targets;
BOOL _flag;
BOOL _isHidden;
BOOL _isSessionActive;
}
+ (id)sharedBlinker;
- (id)init;
- (void)dealloc;
- (void)addTarget:(id)fp8;
- (void)removeTarget:(id)fp8;
- (BOOL)containsTarget:(id)fp8;
- (void)dispatchBlink:(id)fp8;
- (void)applicationDidUnhide:(id)fp8;
- (void)applicationDidHide:(id)fp8;
- (void)sessionDidBecomeActive:(id)fp8;
- (void)sessionDidResignActive:(id)fp8;
- (void)updateTimer;
@end
@interface TTLogicalScreen : NSObject
{
TTProfile *_profile;
unsigned int _columnCount;
unsigned int _rowCount;
struct _NSRange _scrollRange;
CDAnonymousStruct3 _cursorPosition;
TTTextStorageManager *_scrollbackStorage;
TTActiveTextStorage *_activeStorage;
BOOL _isInverted;
BOOL _isCursorVisible;
BOOL _isAlternateScreenActive;
TTActiveTextStorage *_savedActiveStorage;
CDAnonymousStruct3 _savedCursorPosition;
BOOL _isResizing;
unsigned int _resizeDepth;
unsigned int _savedRowCount;
unsigned int _savedCursorOffset;
NSMutableIndexSet *_doubleHighTopLines;
NSMutableIndexSet *_doubleHighBottomLines;
NSMutableIndexSet *_doubleWideLines;
CDAnonymousStruct2 *_unicharOffsetCache;
unsigned int _unicharOffsetCacheCursorOffset;
unsigned int _unicharOffsetCacheCursorLine;
CDAnonymousStruct2 *_unicharOffsetCacheUTF8Buffer;
CDAnonymousStruct2 *_unicharOffsetCacheUTF16Buffer;
CDAnonymousStruct2 *_unicharOffsetCacheRunBuffer;
unsigned int _unicharOffsetCacheGenerationNumber;
TTLogicalScreenString *_unicharOffsetCacheString;
NSMutableIndexSet *_dirtyLines;
BOOL _isBlitSafe;
}
+ (BOOL)automaticallyNotifiesObserversForKey:(id)fp8;
- (id)initWithProfile:(id)fp8 columnCount:(unsigned int)fp12 rowCount:(unsigned int)fp16;
- (void)dealloc;
- (id)profile;
- (void)setProfile:(id)fp8;
- (id)scrollbackStorage;
- (unsigned int)rowCount;
- (void)setRowCount:(unsigned int)fp8;
- (unsigned int)columnCount;
- (void)setColumnCount:(unsigned int)fp8;
- (unsigned int)lineCount;
- (void)beginResizeOperation;
- (void)endResizeOperation;
- (void)setRowCount:(unsigned int)fp8 columnCount:(unsigned int)fp12;
- (struct _NSSize)contentSize;
- (CDAnonymousStruct5)cursorPosition;
- (void)setCursorPosition:(CDAnonymousStruct5)fp8;
- (CDAnonymousStruct5)displayCursorPosition;
- (unsigned int)cursorLine;
- (void)setCursorLine:(unsigned int)fp8;
- (unsigned int)cursorColumn;
- (void)setCursorColumn:(unsigned int)fp8;
- (void)setCursorRowWrapped:(BOOL)fp8;
- (BOOL)isCursorRowWrapped;
- (unsigned int)logicalWidthForLine:(unsigned int)fp8;
- (struct _NSRange)lineRangeForLine:(unsigned int)fp8;
- (unsigned int)sizeForLine:(unsigned int)fp8;
- (unsigned int)cursorLineSize;
- (void)setSize:(unsigned int)fp8 forLine:(unsigned int)fp12;
- (void)setCursorLineSize:(unsigned int)fp8;
- (CDAnonymousStruct5)insertUTF8Characters:(const char *)fp8 length:(unsigned int)fp12 withAttributes:(CDAnonymousStruct4)fp16 atPosition:(CDAnonymousStruct5)fp28;
- (CDAnonymousStruct5)overwriteUTF8Characters:(const char *)fp8 length:(unsigned int)fp12 withAttributes:(CDAnonymousStruct4)fp16 atPosition:(CDAnonymousStruct5)fp28;
- (void)deleteUTF8Characters:(unsigned int)fp8 atPosition:(CDAnonymousStruct5)fp12;
- (void)deleteAndReverseWrapUTF8Characters:(unsigned int)fp8 atPosition:(CDAnonymousStruct5)fp12;
- (void)deleteUTF8CharactersInLineRange:(struct _NSRange)fp8;
- (void)shiftLineRange:(struct _NSRange)fp8 inDirection:(unsigned int)fp16 byAmount:(unsigned int)fp20;
- (void)truncateScrollbackFromBeginningToLineLength:(unsigned int)fp8;
- (BOOL)isAlternateScreenActive;
- (void)setAlternateScreenActive:(BOOL)fp8;
- (BOOL)isInverted;
- (void)setInverted:(BOOL)fp8;
- (BOOL)isCursorVisible;
- (void)setCursorVisible:(BOOL)fp8;
- (void)setAutoWrap:(BOOL)fp8;
- (BOOL)autoWrap;
- (struct _NSRange)scrollRange;
- (void)setScrollRange:(struct _NSRange)fp8;
- (void)getLine:(unsigned int)fp8 UTF8Characters:(CDAnonymousStruct2 *)fp12 runs:(CDAnonymousStruct2 *)fp16;
- (unsigned int)displayWidthForCharacter:(int)fp8;
- (unsigned int)logicalWidthForCharacter:(int)fp8;
- (void)setBlitSafe:(BOOL)fp8;
- (BOOL)isBlitSafe;
- (void)observeValueForKeyPath:(id)fp8 ofObject:(id)fp12 change:(id)fp16 context:(void *)fp20;
- (void)clearScrollback;
- (void)pullLinesFromScrollback:(unsigned int)fp8 toActiveStorage:(id)fp12 scanningForEmptyLines:(unsigned int)fp16;
@end
@interface TTTextStorage : NSObject
{
CDAnonymousStruct2 *_chars;
CDAnonymousStruct2 *_runs;
CDAnonymousStruct2 *_lineOffsets;
BOOL _isTextWrapped;
unsigned int _columnCount;
}
- (id)initWithColumnCount:(unsigned int)fp8;
- (void)reinitializeWithColumnCount:(unsigned int)fp8;
- (void)dealloc;
- (id)description;
- (BOOL)isTextWrapped;
- (void)setTextWrapped:(BOOL)fp8;
- (unsigned int)columnCount;
- (unsigned int)length;
- (CDAnonymousStruct2 *)chars;
- (CDAnonymousStruct2 *)runs;
- (CDAnonymousStruct2 *)lineOffsets;
- (void)setLineOffsets:(CDAnonymousStruct2 *)fp8;
- (CDAnonymousStruct6 *)firstRunAtLineOffset:(unsigned int)fp8 returnIndex:(unsigned int *)fp12;
- (void)getLine:(unsigned int)fp8 UTF8Characters:(CDAnonymousStruct2 *)fp12 runs:(CDAnonymousStruct2 *)fp16;
- (void)appendUTF8Characters:(const char *)fp8 length:(unsigned int)fp12 withAttributes:(CDAnonymousStruct4)fp16 doesBeginLine:(BOOL)fp28;
- (void)truncateToCharacterLength:(unsigned int)fp8;
- (void)truncateToLineLength:(unsigned int)fp8;
- (void)deleteLinesFromBeginning:(unsigned int)fp8;
- (unsigned int)wrapToColumnCount:(unsigned int)fp8 startingAtColumn:(unsigned int)fp12 withLogicalScreen:(id)fp16;
- (unsigned int)wrapLineOffsets:(CDAnonymousStruct2 *)fp8 toColumnCount:(unsigned int)fp12 startingAtColumn:(unsigned int)fp16 withLogicalScreen:(id)fp20;
@end
@interface TTPrintingView : TTView
{
}
- (unsigned int)rowCount;
@end
@interface TTView : TTAccessibleView <TTBlinking, NSTextInput>
{
struct _NSSize _cellSize;
float _descender;
float _leading;