Called when an empty line is entered in response to the prompt. If this method is not overridden, it repeats the last nonempty command entered.
(self)
| 217 | return func(arg) |
| 218 | |
| 219 | def emptyline(self): |
| 220 | """Called when an empty line is entered in response to the prompt. |
| 221 | |
| 222 | If this method is not overridden, it repeats the last nonempty |
| 223 | command entered. |
| 224 | |
| 225 | """ |
| 226 | if self.lastcmd: |
| 227 | return self.onecmd(self.lastcmd) |
| 228 | |
| 229 | def default(self, line): |
| 230 | """Called on an input line when the command prefix is not recognized. |