python-cmd Questions

1

Solved

Is there any way to configure the CMD module from Python to keep a persistent history even after the interactive shell has been closed? When I press the up and down keys I would like to access com...
Pampa asked 14/9, 2016 at 16:4

2

Is there a way to use the argparse module hooked in as the interpreter for every prompt in an interface inheriting from cmd? I'd like for my cmd interface to interpret the typical line parameter i...
Persian asked 5/10, 2012 at 16:30

1

Solved

I wrote a Python 3.5 application using the cmd module. The last thing I would like to implement is proper handling of the CTRL-C (sigint) signal. I would like it to behave more or less the way Bash...
Obnoxious asked 22/5, 2016 at 18:44

2

Solved

I am building an interactive shell using Python 3 and the cmd module. I have already written simple unit tests using py.test to test the individual functions, such as the do_* functions. I'd like t...
Phosphatize asked 5/5, 2015 at 15:17

1

Solved

I like Python's Twisted and Cmd. I want to use them together. I got some things working, but so far I haven't figured out how to make tab-completion work, because I don't see how to receive tab ke...
Pandybat asked 19/12, 2011 at 22:11
1

© 2022 - 2024 — McMap. All rights reserved.