Guys you might think this is a coding issue but there is a strong possibility that I wouldn't need to entirely modify my code to solve this problem.
So I've written a headless(without GUI) music player using python and I am currently executing it like this:
python3 main.py
I can pause/unpause the running track from inside the program.
but the terminal is occupied , I have to let this extra terminal remain open while I am doing whatever I'm doing and It's kind of bugging me.
How I interact my program now:
the terminal is occupied so I should terminate my program to free it
:~$python3 main.py
playing track0.mp3: pause
paused track0.mp3: quit
:~$ls #I terminated the program so I could do this in currently running terminal
How I want to interact with my program:the terminal is NOT occupied so I can run other stuff in it.
:~$python3 main.py -init #It should not open the program in terminal
:~$ls #so I can do this while the music is playing
:~$python3 main.py pause #and like this I pause the program
:~$nano ~/.bashrc #and again I can use my terminal
:~$python3 main.py quit #and like this I terminate my program
I know it's possible I just don't know how.
Edit:
A person said you should publish your code so we can help you
so : https://github.com/yolowex/odd-musicplayer