Python: cmd execute last command while prompt and empty line -


the question may not clear enough get.

let me clear in details. i'm using python cmd library implement own cli framework , when hit enter button without typing command executes last command. not 1 wanna do.

mycli~: cmd --args executes command execution stops mycli~:[hit enter button] 

then execute again cmd --args. want go down new line.

def emptyline(self):          pass 

will fine!


Comments

Popular posts from this blog

linux - xterm copying to CLIPBOARD using copy-selection causes automatic updating of CLIPBOARD upon mouse selection -

c++ - qgraphicsview horizontal scrolling always has a vertical delta -