VirtualBox

Changeset 28651 in vbox for trunk/src/VBox/Frontends


Ignore:
Timestamp:
Apr 23, 2010 2:25:06 PM (15 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
60511
Message:

VBoxShell: Windows-friendly history, style

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VBoxShell/vboxshell.py

    r28650 r28651  
    3333import time
    3434import re
    35 
    36 HISTORY_FILENAME=os.path.join(os.environ["HOME"], ".vboxshell_history")
    3735
    3836# Simple implementation of IConsoleCallback, one can use it as skeleton
     
    20662064        commands['connect'] = ["Connect to remote VBox instance", connectCmd, 0]
    20672065        commands['disconnect'] = ["Disconnect from remote VBox instance", disconnectCmd, 0]
    2068 
     2066   
    20692067    vbox = ctx['vb']
    20702068
     
    20782076    checkUserExtensions(ctx, commands, home)
    20792077
     2078    hist_file=os.path.join(home, ".vboxshell_history")
    20802079    autoCompletion(commands, ctx)
    2081 
    2082     if g_hasreadline and os.path.exists(HISTORY_FILENAME):
    2083         readline.read_history_file(HISTORY_FILENAME)
     2080   
     2081    if g_hasreadline and os.path.exists(hist_file):
     2082        readline.read_history_file(hist_file)
    20842083
    20852084    # to allow to print actual host information, we collect info for
     
    21132112        pass
    21142113    if g_hasreadline:
    2115         readline.write_history_file(HISTORY_FILENAME)
     2114        readline.write_history_file(hist_file)
    21162115
    21172116def runCommandCb(ctx, cmd, args):
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette