forked from shabble/mouseterm
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathTerminal.h
96 lines (82 loc) · 2.43 KB
/
Terminal.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
#import <Cocoa/Cocoa.h>
#import <objc/runtime.h>
#import <objc/message.h>
@class MTShell;
@class MTTabController;
@class MTProfile;
@class TTPane;
@class TTProfile;
@class TTView;
@class MTWindowController;
// Classes from Terminal.app being overridden
#ifdef __x86_64__
typedef unsigned long long linecount_t;
#else
typedef unsigned int linecount_t;
#endif
typedef struct
{
linecount_t y;
linecount_t x;
} Position;
@interface TTShell: NSObject
- (void) writeData: (NSData*) data;
- (id)controller;
@end
@interface TTLogicalScreen: NSObject
- (BOOL) isAlternateScreenActive;
- (linecount_t) lineCount;
@property(retain) NSString *tabTitle; // @synthesize tabTitle=_tabTitle;
@property(retain) NSString *windowTitle; // @synthesize windowTitle=_windowTitle;
@end
// TTPane is new in OS X 10.6
@interface TTPane: NSObject
- (NSScroller*) scroller;
@property(readonly) TTView *view; // @synthesize view;
@end
@interface TTOutputDecoder
- (NSData*)decodeData:(id)arg1;
@end
@interface TTTabController: NSObject
- (NSScroller*) scroller; // This method exists only in OS X 10.5 or older
- (MTShell*) shell;
- (MTProfile*) profile;
- (TTOutputDecoder*) encodingConverter;
- (void)setScriptBoldTextColor:(id)arg1;
- (id)scriptBoldTextColor;
- (void)setScriptNormalTextColor:(id)arg1;
- (id)scriptNormalTextColor;
- (void)setScriptBackgroundColor:(id)arg1;
- (id)scriptBackgroundColor;
- (void)setScriptCursorColor:(id)arg1;
- (void) setProfile:(TTProfile*)profile;
- (id)scriptCursorColor;
@property(readonly) TTPane *activePane; // @synthesize activePane;
@end
@interface TTProfile: NSObject
- (void)setValue:(id)value forUndefinedKey:(id)key;
- (NSString*)name;
@end
@interface TTView: NSView
- (TTLogicalScreen*) logicalScreen;
- (linecount_t) rowCount;
- (TTPane*) pane;
- (TTProfile*) profile;
- (MTTabController*) controller;
- (Position) displayPositionForPoint: (NSPoint) point;
- (void) clearTextSelection;
- (struct CGSize)cellSize;
- (void)copy:(id)arg1;
- (id)adjustedColorWithColor:(id)arg1 withBackgroundColor:(id)arg2 force:(BOOL)arg3;
- (id)colorForANSIColor:(unsigned int)index;
@end
@interface TTProfileArrayController:
NSArrayController <NSOpenSavePanelDelegate>
@end
@interface TTAppPrefsController: NSWindowController <NSWindowDelegate>
+ (TTAppPrefsController*) sharedPreferencesController;
- (TTProfileArrayController*) profilesController;
@end
@interface TTProfileManager: NSObject
- (TTProfile*) profileWithName:(NSString*)profileName;
@end