+ 6
Can I write python program in termux app or, it is just used to execute the program???
I have a doubt that can I write program using termux app in my smartphone,if yes how???
5 Respostas
+ 1
Tq, I got it....
+ 13
hmmmm.. okay
try typing "q" while holding down your volume up button. That should bring up a virtual keyboard with ESC, CTRL.. etc
press the ESC button and type ":x" that should save and then exit
+ 12
packages install vim
after that's finished installing:
vim a_program.py
then write your python script.
exit and save by holding the volume down button and type :quit save and exit.
then to run your script, use:
python a_program.py
+ 1
quit save and exit is not working
0
To exit vim in Termux you can do one of the following: 1) install hackers keyboard on your phone and follow the steps to make it your input or 2) in Termux drag right from the left side of the screen. you should get a list of your Termux sessions. at the bottom is button that says keyboard. press and hold keyboard and you should get the esc, tab etc keys above your keyboard. after doing 1) or 2) press ESC to exit input mode then type ":wq" (without the quotation signs) and press enter to save and exit vim