Re: A question about Cmd Class

2011-03-10 Thread yuan zheng
As you said, I am not writting a linux shell. Our requirements need this kind of commands. Certernly, the convert_table can sovle the command problem. But it cannot complete correctly when using "TAB". It will complete "show_info". My first email expains my problem: I can implement commands with

Re: A question about Cmd Class

2011-03-10 Thread Dave Angel
On 03/10/2011 01:38 AM, yuan zheng wrote: Thanks for your help. thanks, yuanzheng. 2011/3/8 Dave Angel On 01/-10/-28163 02:59 PM, yuan zheng wrote: Hello, everyone: I encouter a question when implementing a commmand line(shell). I have implemented some commands, such as "start", "sto

Re: A question about Cmd Class

2011-03-09 Thread yuan zheng
Thanks. I understand your code , and print it. *Before replace:* `~!@#$%^&*()-=+[{]}\|;:'",<>/? * After replace:* `~!@#$%^&*()=+[{]}\|;:'",<>/? Certainly, the charactor ‘-’ has been deleted from delims. But there is nothing effect on my program after adding the code. My shell:

Re: A question about Cmd Class

2011-03-09 Thread yuan zheng
Thanks for your help. thanks, yuanzheng. 2011/3/8 Dave Angel > On 01/-10/-28163 02:59 PM, yuan zheng wrote: > >> Hello, everyone: >> >> I encouter a question when implementing a commmand line(shell). >> I have implemented some commands, such as "start", "stop", "quit", >> they are easily i

Re: A question about Cmd Class

2011-03-08 Thread Dog Walker
On Monday 2011 March 07 18:41, yuan zheng wrote: > Hello, everyone: > > I encouter a question when implementing a commmand line(shell). > I have implemented some commands, such as "start", "stop", "quit", > they are easily implemented by "do_start", "do_stop" and "do_quit". > there are no troub

Re: A question about Cmd Class

2011-03-08 Thread Peter Otten
yuan zheng wrote: > Hello, everyone: > > I encouter a question when implementing a commmand line(shell). > I have implemented some commands, such as "start", "stop", "quit", > they are easily implemented by "do_start", "do_stop" and "do_quit". > there are no troubles. > But I want to imp

Re: A question about Cmd Class

2011-03-08 Thread Dave Angel
On 01/-10/-28163 02:59 PM, yuan zheng wrote: Hello, everyone: I encouter a question when implementing a commmand line(shell). I have implemented some commands, such as "start", "stop", "quit", they are easily implemented by "do_start", "do_stop" and "do_quit". there are no troubles. B

A question about Cmd Class

2011-03-07 Thread yuan zheng
Hello, everyone: I encouter a question when implementing a commmand line(shell). I have implemented some commands, such as "start", "stop", "quit", they are easily implemented by "do_start", "do_stop" and "do_quit". there are no troubles. But I want to implement some commands like these "