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)
| 227 | return func(arg) |
| 228 | |
| 229 | def emptyline(self): |
| 230 | """Called when an empty line is entered in response to the prompt. |
| 231 | |
| 232 | If this method is not overridden, it repeats the last nonempty |
| 233 | command entered. |
| 234 | |
| 235 | """ |
| 236 | if self.lastcmd: |
| 237 | return self.onecmd(self.lastcmd) |
| 238 | |
| 239 | def default(self, line): |
| 240 | """Called on an input line when the command prefix is not recognized. |