Nu Class Reference

NuConsoleViewController

A controller for a text view containing a Nu console.

Superclass: NSObject
Declared in: nu/console.nu

This class is part of the Nu console implementation. It controls a Cocoa text view containing an interactive Nu console.

Methods

- (NSRange) textView: (id) textview
willChangeSelectionFromCharacterRange: (NSRange) oldRange
toCharacterRange: (NSRange) newRange
in the general case, the caller should insert replacement text Delegate method to approve text changes.

in nu/console.nu

- (void) replaceLineWithNext
Replace the current line of input with a line from the input history.

in nu/console.nu

- (void) replaceLineWithPrevious
Replace the current line of input with a line from the input history.

in nu/console.nu

- (id) currentLine
Get the current line of input to the console.

in nu/console.nu

- (id) lengthOfTextView
Get the length of the text view containing the console.

in nu/console.nu

- (void) moveToEndOfInput
Move the console display and cursor to the end of the input area.

in nu/console.nu

- (void) moveToStartOfInput
Move the console display and cursor to the beginning of the input area.

in nu/console.nu

- (void) moveAndScrollToIndex: (id) index
Move the console display to a specified point.

in nu/console.nu

- (void) write: (id) string
Write text to the console.

in nu/console.nu

- (void) prompt
Get the console prompt.

in nu/console.nu

- (void) setFonts
Set the console font

in nu/console.nu

- (void) setChunk: (id) chunk
Set the number of lines to output between handling application events. Setting this higher causes output to display faster, but more erratically.

in nu/console.nu

- (id) chunk
Get the number of lines to output between handling application events.

in nu/console.nu

- (id) initWithFrame: (NSRect) frame
Initialize a controller with a specified frame.

in nu/console.nu