TextStorageTerminal maintains an NSTextStorage and supports a repertoire of methods that make the storage behave like a fixed array of characters with simple attributes.
It has a delegate that takes care of controller-layer tasks like transmitting report codes, printing, and storing scrolled-off text.
Definition in file TextStorageTerminal.h.
#import <Cocoa/Cocoa.h>
Include dependency graph for TextStorageTerminal.h:

Go to the source code of this file.
Data Structures | |
| class | TextStorageTerminal |
| Model class for an NSTextStorage-based terminal screen. More... | |
| category | NSObject(TerminalScreenDelegate) |
| TextStorageTerminal delegate informal protocol. More... | |
Enumerations | |
| enum | TerminalColor { tcRegularFore = -2, tcRegularBack, tcBlack, tcRed, tcGreen, tcYellow, tcBlue, tcMagenta, tcCyan, tcWhite } |
| Terminal color codes These are the ANSI codes for foreground and background colors. More... | |
Variables | |
| NSString *const | TSTBlinkingAttribute |
| Text attribute: Blinking The host sent this text with the blink attribute set. | |
| NSString *const | TSTInvisibleAttribute |
| Text attribute: Invisible The host sent this text with the invisible attribute set. | |
| NSString *const | TSTBoldAttribute |
| Text attribute: Bold The host sent this text with the bold attribute set. | |
| NSString *const | TSTEmailAttribute |
| Text attribute: Email address The scavenger task determined this text is part of an email address. | |
| NSString *const | TSTAlternateAttribute |
| Text attribute: Alternate character set The host sent this text from the alternative character set. | |
| NSString *const | TSTSpellingAttribute |
| Text attribute: Misspelled The spelling checker flagged this text as misspelled. | |
| NSString *const | TSTProperNameAttribute |
| Text attribute: Proper name The email-scavenging task thinks this text, preceding an email address, is a proper name. | |
| NSString *const | TSScreenContentChangedNotification |
| Notification: Terminal content changed. | |
| NSString *const | TSScreenAttrsChangedNotification |
| Notification: Terminal atttributes changed. | |
| NSString *const | TSScreenCursorNotification |
| Notification: Terminal cursor moved. | |
| NSString *const | TSScreenScrolledNotification |
| Notification: Text scrolled off of the terminal. | |
|
|
Terminal color codes These are the ANSI codes for foreground and background colors. Terminal coloring assumes white characters scanned onto a black screen, whereas document-model applications display black text on a white canvas. The code for "black" is therefore interpreted as the session's background color, which by default is white. Likewise "white" is taken to mean the session's foreground color, which by default is black.
Definition at line 30 of file TextStorageTerminal.h. |
|
|
Notification: Terminal atttributes changed. Notification sent by TextStorageTerminal when attributes (color, face, etc.) of terminal content has changed. Definition at line 15 of file TextStorageTerminal.m. |
|
|
Notification: Terminal content changed. Notification sent by TextStorageTerminal when the string content of the terminal screen has changed. Definition at line 14 of file TextStorageTerminal.m. |
|
|
Notification: Terminal cursor moved. Notification sent by TextStorageTerminal when the terminal cursor has moved, been hidden, or been revealed. Definition at line 16 of file TextStorageTerminal.m. |
|
|
Notification: Text scrolled off of the terminal. Notification sent by TextStorageTerminal when text has scrolled off the screen. UserInfo has one key, "contentShift," an NSNumber indicating how many characters shifted off. Definition at line 17 of file TextStorageTerminal.m. |
|
|
Text attribute: Alternate character set The host sent this text from the alternative character set.
Definition at line 23 of file TextStorageTerminal.m. |
|
|
Text attribute: Blinking The host sent this text with the blink attribute set.
Definition at line 19 of file TextStorageTerminal.m. |
|
|
Text attribute: Bold The host sent this text with the bold attribute set.
Definition at line 21 of file TextStorageTerminal.m. |
|
|
Text attribute: Email address The scavenger task determined this text is part of an email address.
Definition at line 22 of file TextStorageTerminal.m. |
|
|
Text attribute: Invisible The host sent this text with the invisible attribute set.
Definition at line 20 of file TextStorageTerminal.m. |
|
|
Text attribute: Proper name The email-scavenging task thinks this text, preceding an email address, is a proper name.
Definition at line 24 of file TextStorageTerminal.m. |
|
|
Text attribute: Misspelled The spelling checker flagged this text as misspelled.
Definition at line 1058 of file TextStorageTerminal.m. |
1.4.4