Manages user data history.
This manages the user input history by storing the commands the user
entered. This module also handles manipulating that history letting the
user to recall and edit those commands to fix mistakes they may have
typed.
| Method Summary |
| |
__init__(self)
|
| |
addSession(self,
newsession,
basesession)
Tells the manager to create a new session based on another
session. (inherited from Manager)
|
| |
clear(self,
ses)
Removes everything the manager was managing--essentially reinitializes
it. (inherited from Manager)
|
| list of strings
|
getHistory(self,
count)
Returns everything in the history buffer as a list of strings |
| |
getHistoryItem(self,
userinput)
This retrieves the item (if it exists) and performs the substitutions
(if we need to). |
| string
|
getInfo(self,
ses,
text)
Returns information managed by this class. (inherited from Manager)
|
| list of strings
|
getState(self,
ses)
Returns the state of something as a list of command strings without
the command char (which is added by #write). (inherited from Manager)
|
| string
|
getStatus(self,
ses)
Returns a one-liner status of the state of this manager for a given
session. (inherited from Manager)
|
| |
recordHistory(self,
input)
Records an item in the history (which is a queue). |
| |
removeSession(self,
ses)
Tells the manager to remove information regarding the session. (inherited from Manager)
|