- Timestamp:
- May 26, 2010 10:56:55 AM (15 years ago)
- svn:sync-xref-src-repo-rev:
- 62020
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VBoxShell/vboxshell.py
r29810 r29811 142 142 g_hasreadline = False 143 143 144 145 g_prompt = "vbox> " 144 146 145 147 g_hascolors = True … … 2659 2661 return 0 2660 2662 2663 2664 def promptCmd(ctx, args): 2665 if len(args) < 2: 2666 print "Current prompt: '%s'" %(ctx['prompt']) 2667 return 0 2668 2669 ctx['prompt'] = args[1] 2670 return 0 2671 2661 2672 2662 2673 aliases = {'s':'start', … … 2734 2745 'colors':['Toggle colors', colorsCmd, 0], 2735 2746 'snapshot':['VM snapshot manipulation, snapshot help for more info', snapshotCmd, 0], 2736 'nat':['NAT manipulation, nat help for more info', natCmd, 0], 2737 'nic' : ['network adapter management', nicCmd, 0], 2747 'nat':['NAT (network address trasnlation engine) manipulation, nat help for more info', natCmd, 0], 2748 'nic' : ['Network adapter management', nicCmd, 0], 2749 'prompt' : ['Control prompt', promptCmd, 0], 2738 2750 } 2739 2751 … … 2821 2833 2822 2834 vbox = ctx['vb'] 2823 2824 2835 if vbox is not None: 2825 2836 print "Running VirtualBox version %s" %(vbox.version) … … 2849 2860 while True: 2850 2861 try: 2851 cmd = raw_input( "vbox> ")2862 cmd = raw_input(ctx['prompt']) 2852 2863 done = runCommand(ctx, cmd) 2853 2864 if done != 0: break … … 2916 2927 'progressBar': lambda p: progressBar(ctx,p), 2917 2928 'typeInGuest': typeInGuest, 2918 '_machlist':None 2929 '_machlist': None, 2930 'prompt': g_prompt 2919 2931 } 2920 2932 interpret(ctx)
Note:
See TracChangeset
for help on using the changeset viewer.