q is also exit for foldermenu
This commit is contained in:
@@ -54,11 +54,13 @@ def termsize():
|
|||||||
return (int(rows),int(columns))
|
return (int(rows),int(columns))
|
||||||
|
|
||||||
def ichr(i):
|
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:
|
if i < 10:
|
||||||
return str(i)
|
return str(i)
|
||||||
i=i + 87
|
i=i + 87
|
||||||
|
if i>112:
|
||||||
|
i=i+1
|
||||||
if i>119:
|
if i>119:
|
||||||
i=i+1
|
i=i+1
|
||||||
if i>122:
|
if i>122:
|
||||||
@@ -234,7 +236,7 @@ class entry_collection:
|
|||||||
b=[]
|
b=[]
|
||||||
blen=len(b)
|
blen=len(b)
|
||||||
cwd=os.path.basename(os.getcwd())[0:15]
|
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):
|
for i,e in enumerate(b):
|
||||||
self.co.posprint(i+2,0,e)
|
self.co.posprint(i+2,0,e)
|
||||||
rows=int(math.ceil(len(my_entries)/pars))
|
rows=int(math.ceil(len(my_entries)/pars))
|
||||||
@@ -396,7 +398,7 @@ def start_engines():
|
|||||||
entries.menu()
|
entries.menu()
|
||||||
inkey=ord(ch.get())
|
inkey=ord(ch.get())
|
||||||
#print('-'+str((inkey))+'-')
|
#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())
|
print('Exited in: '+os.getcwd())
|
||||||
sys.exit(0)
|
sys.exit(0)
|
||||||
if inkey==45: # -
|
if inkey==45: # -
|
||||||
|
|||||||
Reference in New Issue
Block a user