-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathtermux-code-editors.py
More file actions
133 lines (123 loc) · 3.28 KB
/
termux-code-editors.py
File metadata and controls
133 lines (123 loc) · 3.28 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
from os import system
index = 1
OTP = 1
condition = True
import time
r='\033[1;91m'
g='\033[1;92m'
y='\033[1;93m'
w='\033[1;97m'
m = g + ('#'*55) +w
print (m)
time.sleep(0.3)
print (m)
print (f'{g} ______________________________________________________')
time.sleep(0.3)
print (f'{g} ')
time.sleep(0.3)
print (f'{g} {r}Author :{y} Sachindu Sahan{g} ')
time.sleep(0.3)
print (f'{g} ')
time.sleep(0.3)
print (f'{g} {r} Github : {w}https://github.com/sachindusahan{g} ')
time.sleep(0.3)
print (f'{g} ')
time.sleep(0.3)
print (f'{g} ______________________________________________________{w}')
time.sleep(0.4)
x = g + ('#'*55) +w
print ('')
print (x)
n = g + ('#'*55) +w
time.sleep(0.4)
print (n)
print ('')
time.sleep(0.3)
list = ['Nano','Neovim','Vim','Emacs','Jupp','Micro','Zile']
while OTP < 10:
print (f'''{g}
1 Nano
2 Neovim
3 Vim
4 Emacs
5 Jupp
6 Micro
7 Zile
''')
print (f"{w}If you want to Install Termux Code Editors Please Enter > {g}Related Numbar \n {w}Either If You want to Back This This script Enter > {r}Q {w}")
editor_choice = input("Enter Related Number or Quit> Q :")
if editor_choice == '1':
time.sleep(0.4)
system('clear')
system('apt update')
system('apt upgrade -y')
system('apt-get install nano -y')
print ('install Completed')
time.sleep(0.4)
elif editor_choice == '2':
time.sleep(0.4)
system('clear')
system('apt update')
system('apt upgrade -y')
system('apt-get install neovim -y')
elif editor_choice == '3':
time.sleep(0.4)
system('clear')
system('apt update')
system('apt upgrade -y')
system('apt-get install vim -y')
elif editor_choice == '4':
time.sleep(0.4)
system('clear')
system('apt update')
system('apt upgrade -y')
system('apt-get install emacs -y')
time.sleep(0.4)
system('clear')
elif editor_choice == '5':
time.sleep(0.4)
system('clear')
system('apt update')
system('apt upgrade -y')
system('apt-get install jupp -y')
time.sleep(0.4)
system('clear')
elif editor_choice == '6':
time.sleep(0.4)
system('clear')
system('apt update')
system('apt upgrade -y')
system('apt-get install micro -y')
time.sleep(0.4)
system('clear')
elif editor_choice == '7':
time.sleep(0.4)
system('clear')
system('apt update')
system('apt upgrade -y')
system('apt-get install micro -y')
time.sleep(0.4)
system('clear')
elif editor_choice == 'Q':
system('clear')
time.sleep(0.4)
print ('Thank You @')
time.sleep(0.3)
break
elif editor_choice == 'q':
system('clear')
time.sleep(0.4)
print (f'{r}Thank You @{w}')
time.sleep(0.4)
break
elif editor_choice == 'quite':
system('clear')
time.sleep(0.5)
print (f'{r}Thank You @{w}')
time.sleep(0.5)
break
else:
print (f'{r}{editor_choice} {g}Not Found Error{w}')
time.sleep(0.6)
pass
OTP += 1