Struct copperline::Copperline [] [src]

pub struct Copperline { /* fields omitted */ }

Methods

impl Copperline
[src]

Constructs a new Copperline from stdin to stdout.

Constructs a new Copperline from the specified resources.

Constructs a new Copperline from the specified file descriptors.

Reads a line from the input using the specified prompt and encoding.

Reads a ASCII encoded line from the input using the specified prompt.

Reads a UTF-8 encoded line from the input using the specified prompt.

Returns the current length of the history.

Adds a line to the history.

Retrieves a line from the history by index.

Removes an item from the history by index and returns it.

Clears the current history.

Clears the screen.