q is also exit for foldermenu
This commit is contained in:
@@ -54,11 +54,13 @@ def termsize():
|
||||
return (int(rows),int(columns))
|
||||
|
||||
def ichr(i):
|
||||
''' convert integer to 1-9, a-z, A-Z, omitting x '''
|
||||
''' convert integer to 1-9, a-z, A-Z, omitting q,x '''
|
||||
|
||||
if i < 10:
|
||||
return str(i)
|
||||
i=i + 87
|
||||
if i>112:
|
||||
i=i+1
|
||||
if i>119:
|
||||
i=i+1
|
||||
if i>122:
|
||||
@@ -234,7 +236,7 @@ class entry_collection:
|
||||
b=[]
|
||||
blen=len(b)
|
||||
cwd=os.path.basename(os.getcwd())[0:15]
|
||||
self.co.posprint(1,3,self.co.END+self.co.CLR+self.co.WHI+cwd+self.co.YEL+' Menu x:exit '+helptext+self.co.END)
|
||||
self.co.posprint(1,3,self.co.END+self.co.CLR+self.co.WHI+cwd+self.co.YEL+' Menu q/x:exit '+helptext+self.co.END)
|
||||
for i,e in enumerate(b):
|
||||
self.co.posprint(i+2,0,e)
|
||||
rows=int(math.ceil(len(my_entries)/pars))
|
||||
@@ -396,7 +398,7 @@ def start_engines():
|
||||
entries.menu()
|
||||
inkey=ord(ch.get())
|
||||
#print('-'+str((inkey))+'-')
|
||||
if inkey in [120,27,3,24,4]:
|
||||
if inkey in [113,120,27,3,24,4]:
|
||||
print('Exited in: '+os.getcwd())
|
||||
sys.exit(0)
|
||||
if inkey==45: # -
|
||||
|
||||
Reference in New Issue
Block a user