|
@@ -1,6 +1,6 @@
|
|
#-*- coding: UTF-8 -*-
|
|
#-*- coding: UTF-8 -*-
|
|
|
|
|
|
-import sys , os
|
|
|
|
|
|
+import sys, os, readline
|
|
|
|
|
|
# define Color
|
|
# define Color
|
|
Green = '\033[32m'
|
|
Green = '\033[32m'
|
|
@@ -36,11 +36,14 @@ def cat(file = 'me.py'):
|
|
def bash():
|
|
def bash():
|
|
os.system('bash')
|
|
os.system('bash')
|
|
|
|
|
|
|
|
+def history():
|
|
|
|
+ for i in range(readline.get_current_history_length()):
|
|
|
|
+ print(readline.get_history_item(i + 1))
|
|
|
|
+ print( Yellow + ':: Clear_History: readline.clear_history() ')
|
|
|
|
+
|
|
def info():
|
|
def info():
|
|
print( SkyBlue + ':: Usage: ' + Green + 'python -i me.py' + Yellow + ' or [import me] , import the module me.py')
|
|
print( SkyBlue + ':: Usage: ' + Green + 'python -i me.py' + Yellow + ' or [import me] , import the module me.py')
|
|
- print( Green + ':: Function: cls() ls() cd(path) cat(file) pwd() bash() info() ')
|
|
|
|
|
|
+ print( Green + ':: Function: cls() ls() cd(path) cat(file) pwd() bash() info() history()')
|
|
pwd()
|
|
pwd()
|
|
|
|
|
|
-cls()
|
|
|
|
info()
|
|
info()
|
|
-
|
|
|