Main Page | Modules | Class Hierarchy | Data Structures | Directories | File List | Data Fields | Globals | Related Pages

TextStorageTerminal.m File Reference

Go to the source code of this file.

Functions

void initialize ()
NSFont * defaultFont ()
NSColor * colorForCode: (TerminalColor code)
id init ()
id initWithRows:columns: (int inRows,[columns] int inColumns)
NSTextStorage * textStorage ()
void setAttributedString: (NSAttributedString *string)
NSDictionary * currentAttributes ()
void setDefaultFont: (NSFont *aFont)
NSColor * defaultForeColor ()
void setDefaultForeColor: (NSColor *aColor)
NSColor * defaultBackColor ()
void setDefaultBackColor: (NSColor *aColor)
NSDictionary * plainAttributes ()
void notifyChangedContent ()
void notifyChangedCursor ()
void resizeToRows:columns: (int newRows,[columns] int newColumns)
id delegate ()
void setDelegate: (id newDelegate)
void dealloc ()
int rows ()
int columns ()
void resetCurrentAttributes ()
void startBold ()
void startUnderline ()
void startBlink ()
void startInverse ()
void startInvisible ()
void startAlternate ()
void endBold ()
void endUnderline ()
void endBlink ()
void endInverse ()
void endInvisible ()
void endAlternate ()
void setForeground: (TerminalColor color)
void setBackground: (TerminalColor color)
void setPlainForeground ()
void setPlainBackground ()
void enableAlternateCharacters ()
void resetTabs ()
void clearOneTabStop ()
void clearTabStops ()
void horizontalTab ()
void backTab ()
void hardwareTab ()
void setTabStop ()
unichar characterAtRow:column: (int row,[column] int column)
void advanceCursor ()
void acceptCharacter: (unichar aChar)
void acceptASCII:length: (const void *chars,[length] int length)
void repeatLastCharacter: (int howMany)
void scrollUp ()
void scrollDown ()
void scrollLines: (int positiveForUp)
BOOL insertMode ()
void setInsertMode: (BOOL newMode)
BOOL wrapMode ()
void setWrapMode: (BOOL newMode)
BOOL isCursorVisible ()
void setCursorVisible: (BOOL newVisible)
BOOL eatsNewlines ()
void setEatsNewlines: (BOOL value)
void eraseScreen ()
void eraseScrollArea ()
void eraseToEndOfScreen ()
void eraseToStartOfScreen ()
void scrollAreaTop:bottom: (int *top,[bottom] int *bottom)
void setScrollAreaTop:bottom: (int top,[bottom] int bottom)
void unsetScrollArea ()
int characterOffsetOfCursor ()
void cursorLocationX:Y: (int *cursorX,[Y] int *cursorY)
void setCursorLocationX:Y: (int cursorX,[Y] int cursorY)
void moveToRow:column: (int cursorToRow,[column] int cursorToColumn)
void cursorToLine: (int line)
void cursorToColumn: (int column)
void reverseIndex: (int howMany)
void cursorUp: (int howMany)
void cursorUp ()
void cursorDown: (int howMany)
void cursorDown ()
void cursorLeft: (int howMany)
void cursorLeft ()
void cursorRight: (int howMany)
void cursorRight ()
void carriageReturn ()
void lineFeed ()
void saveCursorPosition ()
void restoreCursorPosition ()
void homeCursor ()
void insertLines: (int howMany)
void insertLine ()
void deleteLines: (int howMany)
void deleteLine ()
void insertCharacters: (int howMany)
void deleteCharacters: (int howMany)
void deleteCharacter ()
void eraseCharacters: (int howMany)
void eraseCharacter ()
void eraseToEndOfLine ()
void eraseToStartOfLine ()
void eraseLine ()
void reportDeviceCode ()
void reportDeviceStatus ()
void reportCursorPosition ()
void soundBell ()
void invertScreen: (BOOL inverted)
void resetAll: (BOOL hard)
void printScreen ()
void startPrintLog ()
void endPrintLog ()
void printLine ()
void doPrintLine: (NSTimer *timer)
void checkTask: (NSTask *aTimer)
void checkSpelling: (BOOL doCheck)
BOOL isCheckingSpelling ()

Variables

implementation TextStorageTerminal
NSString *const 
TSScreenContentChangedNotification = @"TSScreenContentChangedNotification"
 Notification: Terminal content changed.
NSString *const TSScreenAttrsChangedNotification = @"TSScreenAttrsChangedNotification"
 Notification: Terminal atttributes changed.
NSString *const TSScreenCursorNotification = @"TSScreenCursorNotification"
 Notification: Terminal cursor moved.
NSString *const TSScreenScrolledNotification = @"TSScreenScrolledNotification"
 Notification: Text scrolled off of the terminal.
NSString *const TSTBlinkingAttribute = @"TSTBlinkingAttribute"
 Text attribute: Blinking The host sent this text with the blink attribute set.
NSString *const TSTInvisibleAttribute = @"TSTInvisibleAttribute"
 Text attribute: Invisible The host sent this text with the invisible attribute set.
NSString *const TSTBoldAttribute = @"TSTBoldAttribute"
 Text attribute: Bold The host sent this text with the bold attribute set.
NSString *const TSTEmailAttribute = @"TSTEmailAttribute"
 Text attribute: Email address The scavenger task determined this text is part of an email address.
NSString *const TSTAlternateAttribute = @"TSTAlternateAttribute"
 Text attribute: Alternate character set The host sent this text from the alternative character set.
NSString *const TSTProperNameAttribute = @"TSTProperNameAttribute"
 Text attribute: Proper name The email-scavenging task thinks this text, preceding an email address, is a proper name.
static NSMutableDictionary * sPlainAttributes = nil
static NSColor * sColors [8]
NSString *const TSTSpellingAttribute = @"TSTSpellingAttribute"
 Text attribute: Misspelled The spelling checker flagged this text as misspelled.


Function Documentation

void acceptASCII:length: const void *  chars,
[length] int  length
[virtual]
 

Definition at line 512 of file TextStorageTerminal.m.

References TextStorageTerminal::columns, TextStorageTerminal::cursorColumn, TextStorageTerminal::deferredCursorWrap, TextStorageTerminal::insertMode, TextStorageTerminal::lastCharacter, length(), and TextStorageTerminal::printScreenBuffer.

Here is the call graph for this function:

void acceptCharacter: unichar  aChar  )  [virtual]
 

Definition at line 483 of file TextStorageTerminal.m.

References TextStorageTerminal::deferredCursorWrap, TextStorageTerminal::insertMode, TextStorageTerminal::lastCharacter, and TextStorageTerminal::printScreenBuffer.

Here is the call graph for this function:

void advanceCursor  )  [virtual]
 

Definition at line 453 of file TextStorageTerminal.m.

References TextStorageTerminal::columns, TextStorageTerminal::cursorColumn, TextStorageTerminal::cursorRow, TextStorageTerminal::deferredCursorWrap, TextStorageTerminal::justWrapped, TextStorageTerminal::rows, TextStorageTerminal::scrollBottom, and TextStorageTerminal::wrapMode.

Here is the call graph for this function:

void backTab  )  [virtual]
 

Definition at line 414 of file TextStorageTerminal.m.

References TextStorageTerminal::cursorColumn, and TextStorageTerminal::tabStops.

void carriageReturn  )  [virtual]
 

Definition at line 780 of file TextStorageTerminal.m.

References TextStorageTerminal::cursorColumn.

unichar characterAtRow:column: int  row,
[column] int  column
[virtual]
 

Definition at line 443 of file TextStorageTerminal.m.

References TextStorageTerminal::columns, and TextStorageTerminal::rows.

Here is the call graph for this function:

int characterOffsetOfCursor  )  [virtual]
 

Definition at line 681 of file TextStorageTerminal.m.

void checkSpelling: BOOL  doCheck  )  [virtual]
 

Definition at line 1086 of file TextStorageTerminal.m.

References TextStorageTerminal::spellingTimer.

void checkTask: NSTask *  aTimer  )  [virtual]
 

Definition at line 1061 of file TextStorageTerminal.m.

References length().

Here is the call graph for this function:

void clearOneTabStop  )  [virtual]
 

Definition at line 382 of file TextStorageTerminal.m.

References TextStorageTerminal::defaultTabStops, and TextStorageTerminal::tabStops.

void clearTabStops  )  [virtual]
 

Definition at line 388 of file TextStorageTerminal.m.

References TextStorageTerminal::columns, TextStorageTerminal::defaultTabStops, and TextStorageTerminal::tabStops.

Here is the call graph for this function:

NSColor * colorForCode: TerminalColor  code  )  [static, virtual]
 

Definition at line 50 of file TextStorageTerminal.m.

References sColors.

int columns  )  [virtual]
 

Definition at line 255 of file TextStorageTerminal.m.

References TextStorageTerminal::columns.

Referenced by PTYTask(terminalTasks)::rows:columns:, PTYTask(terminalTasks)::setRows:columns:, and TSTerminalTestCase::testInitialization.

Here is the call graph for this function:

NSDictionary * currentAttributes  )  [virtual]
 

Definition at line 120 of file TextStorageTerminal.m.

References TextStorageTerminal::attrDictionary.

void cursorDown  )  [virtual]
 

Definition at line 749 of file TextStorageTerminal.m.

void cursorDown: int  howMany  )  [virtual]
 

Definition at line 741 of file TextStorageTerminal.m.

References TextStorageTerminal::cursorRow, and TextStorageTerminal::rows.

Here is the call graph for this function:

void cursorLeft  )  [virtual]
 

Definition at line 762 of file TextStorageTerminal.m.

void cursorLeft: int  howMany  )  [virtual]
 

Definition at line 754 of file TextStorageTerminal.m.

References TextStorageTerminal::cursorColumn.

void cursorLocationX:Y: int *  cursorX,
[Y] int *  cursorY
[virtual]
 

Definition at line 686 of file TextStorageTerminal.m.

References TextStorageTerminal::cursorColumn, and TextStorageTerminal::cursorRow.

void cursorRight  )  [virtual]
 

Definition at line 775 of file TextStorageTerminal.m.

void cursorRight: int  howMany  )  [virtual]
 

Definition at line 767 of file TextStorageTerminal.m.

References TextStorageTerminal::columns, and TextStorageTerminal::cursorColumn.

Here is the call graph for this function:

void cursorToColumn: int  column  )  [virtual]
 

Definition at line 712 of file TextStorageTerminal.m.

References TextStorageTerminal::cursorColumn.

void cursorToLine: int  line  )  [virtual]
 

Definition at line 706 of file TextStorageTerminal.m.

References TextStorageTerminal::cursorRow.

void cursorUp  )  [virtual]
 

Definition at line 736 of file TextStorageTerminal.m.

void cursorUp: int  howMany  )  [virtual]
 

Definition at line 728 of file TextStorageTerminal.m.

References TextStorageTerminal::cursorRow.

void dealloc  )  [virtual]
 

Definition at line 234 of file TextStorageTerminal.m.

References TextStorageTerminal::printLineTimer, and TextStorageTerminal::tabStops.

NSColor * defaultBackColor  )  [virtual]
 

Definition at line 154 of file TextStorageTerminal.m.

References TextStorageTerminal::defaultBackColor.

Here is the call graph for this function:

NSFont * defaultFont  )  [static, virtual]
 

Definition at line 44 of file TextStorageTerminal.m.

NSColor * defaultForeColor  )  [virtual]
 

Definition at line 138 of file TextStorageTerminal.m.

References TextStorageTerminal::defaultForeColor.

Here is the call graph for this function:

id delegate  )  [virtual]
 

Definition at line 221 of file TextStorageTerminal.m.

References TextStorageTerminal::delegate.

Here is the call graph for this function:

void deleteCharacter  )  [virtual]
 

Definition at line 893 of file TextStorageTerminal.m.

void deleteCharacters: int  howMany  )  [virtual]
 

Definition at line 884 of file TextStorageTerminal.m.

References TextStorageTerminal::columns, and TextStorageTerminal::cursorColumn.

Here is the call graph for this function:

void deleteLine  )  [virtual]
 

Definition at line 869 of file TextStorageTerminal.m.

void deleteLines: int  howMany  )  [virtual]
 

Definition at line 850 of file TextStorageTerminal.m.

References TextStorageTerminal::cursorColumn.

void doPrintLine: NSTimer *  timer  )  [virtual]
 

Definition at line 1043 of file TextStorageTerminal.m.

References TextStorageTerminal::delegate, TextStorageTerminal::printLineBuffer, and TextStorageTerminal::printLineTimer.

Here is the call graph for this function:

BOOL eatsNewlines  )  [virtual]
 

Definition at line 618 of file TextStorageTerminal.m.

References TextStorageTerminal::eatsNewlines.

Here is the call graph for this function:

void enableAlternateCharacters  )  [virtual]
 

Definition at line 372 of file TextStorageTerminal.m.

void endAlternate  )  [virtual]
 

Definition at line 331 of file TextStorageTerminal.m.

void endBlink  )  [virtual]
 

Definition at line 311 of file TextStorageTerminal.m.

void endBold  )  [virtual]
 

Definition at line 303 of file TextStorageTerminal.m.

void endInverse  )  [virtual]
 

Definition at line 317 of file TextStorageTerminal.m.

References TextStorageTerminal::invertMode.

void endInvisible  )  [virtual]
 

Definition at line 325 of file TextStorageTerminal.m.

void endPrintLog  )  [virtual]
 

Definition at line 1015 of file TextStorageTerminal.m.

References TextStorageTerminal::delegate, and TextStorageTerminal::printScreenBuffer.

Here is the call graph for this function:

void endUnderline  )  [virtual]
 

Definition at line 309 of file TextStorageTerminal.m.

void eraseCharacter  )  [virtual]
 

Definition at line 907 of file TextStorageTerminal.m.

void eraseCharacters: int  howMany  )  [virtual]
 

Definition at line 898 of file TextStorageTerminal.m.

References TextStorageTerminal::columns, and TextStorageTerminal::cursorColumn.

Here is the call graph for this function:

void eraseLine  )  [virtual]
 

Definition at line 925 of file TextStorageTerminal.m.

References TextStorageTerminal::cursorColumn.

void eraseScreen  )  [virtual]
 

Definition at line 621 of file TextStorageTerminal.m.

References TextStorageTerminal::cursorColumn, and TextStorageTerminal::cursorRow.

void eraseScrollArea  )  [virtual]
 

Definition at line 632 of file TextStorageTerminal.m.

References TextStorageTerminal::cursorColumn, TextStorageTerminal::cursorRow, and TextStorageTerminal::scrollTop.

void eraseToEndOfLine  )  [virtual]
 

Definition at line 912 of file TextStorageTerminal.m.

void eraseToEndOfScreen  )  [virtual]
 

Definition at line 641 of file TextStorageTerminal.m.

References TextStorageTerminal::cursorRow, and TextStorageTerminal::rows.

Here is the call graph for this function:

void eraseToStartOfLine  )  [virtual]
 

Definition at line 917 of file TextStorageTerminal.m.

References TextStorageTerminal::cursorColumn.

void eraseToStartOfScreen  )  [virtual]
 

Definition at line 650 of file TextStorageTerminal.m.

References TextStorageTerminal::cursorRow.

void hardwareTab  )  [virtual]
 

Definition at line 426 of file TextStorageTerminal.m.

References TextStorageTerminal::columns, and TextStorageTerminal::cursorColumn.

Here is the call graph for this function:

void homeCursor  )  [virtual]
 

Definition at line 823 of file TextStorageTerminal.m.

References TextStorageTerminal::cursorColumn, and TextStorageTerminal::cursorRow.

void horizontalTab  )  [virtual]
 

Definition at line 396 of file TextStorageTerminal.m.

References TextStorageTerminal::columns, TextStorageTerminal::cursorColumn, TextStorageTerminal::printScreenBuffer, and TextStorageTerminal::tabStops.

Here is the call graph for this function:

id init  )  [virtual]
 

Definition at line 66 of file TextStorageTerminal.m.

void initialize  )  [static, virtual]
 

Definition at line 28 of file TextStorageTerminal.m.

References sPlainAttributes.

id initWithRows:columns: int  inRows,
[columns] int  inColumns
[virtual]
 

Definition at line 71 of file TextStorageTerminal.m.

References TextStorageTerminal::columns, TextStorageTerminal::content, TextStorageTerminal::cursorVisible, TextStorageTerminal::insertMode, TextStorageTerminal::invertMode, TextStorageTerminal::lastCharacter, TextStorageTerminal::plainAttributes, TextStorageTerminal::rows, TextStorageTerminal::savedCursorColumn, TextStorageTerminal::savedCursorRow, TextStorageTerminal::scrollBottom, TextStorageTerminal::scrollTop, TextStorageTerminal::spellingTag, TextStorageTerminal::tabStops, and TextStorageTerminal::wrapMode.

Here is the call graph for this function:

void insertCharacters: int  howMany  )  [virtual]
 

Definition at line 874 of file TextStorageTerminal.m.

References TextStorageTerminal::columns, and TextStorageTerminal::cursorColumn.

Here is the call graph for this function:

void insertLine  )  [virtual]
 

Definition at line 845 of file TextStorageTerminal.m.

void insertLines: int  howMany  )  [virtual]
 

Definition at line 829 of file TextStorageTerminal.m.

References TextStorageTerminal::content, TextStorageTerminal::cursorColumn, and TextStorageTerminal::rows.

Here is the call graph for this function:

BOOL insertMode  )  [virtual]
 

Definition at line 612 of file TextStorageTerminal.m.

References TextStorageTerminal::insertMode.

Here is the call graph for this function:

void invertScreen: BOOL  inverted  )  [virtual]
 

Definition at line 980 of file TextStorageTerminal.m.

BOOL isCheckingSpelling  )  [virtual]
 

Definition at line 1101 of file TextStorageTerminal.m.

References TextStorageTerminal::spellingTimer.

BOOL isCursorVisible  )  [virtual]
 

Definition at line 616 of file TextStorageTerminal.m.

References TextStorageTerminal::cursorVisible.

void lineFeed  )  [virtual]
 

Definition at line 786 of file TextStorageTerminal.m.

References TextStorageTerminal::cursorRow, TextStorageTerminal::eatsNewlines, TextStorageTerminal::justWrapped, TextStorageTerminal::printScreenBuffer, and TextStorageTerminal::scrollBottom.

Here is the call graph for this function:

void moveToRow:column: int  cursorToRow,
[column] int  cursorToColumn
[virtual]
 

Definition at line 699 of file TextStorageTerminal.m.

References TextStorageTerminal::cursorColumn, and TextStorageTerminal::cursorRow.

void notifyChangedContent  )  [virtual]
 

Definition at line 173 of file TextStorageTerminal.m.

void notifyChangedCursor  )  [virtual]
 

Definition at line 180 of file TextStorageTerminal.m.

References TextStorageTerminal::deferredCursorWrap.

NSDictionary * plainAttributes  )  [virtual]
 

Definition at line 171 of file TextStorageTerminal.m.

References TextStorageTerminal::plainAttributes.

Here is the call graph for this function:

void printLine  )  [virtual]
 

Definition at line 1025 of file TextStorageTerminal.m.

References TextStorageTerminal::printLineBuffer, and TextStorageTerminal::printLineTimer.

void printScreen  )  [virtual]
 

Definition at line 1003 of file TextStorageTerminal.m.

References TextStorageTerminal::delegate.

Here is the call graph for this function:

void repeatLastCharacter: int  howMany  )  [virtual]
 

Definition at line 560 of file TextStorageTerminal.m.