I want to automatize a process to debug PHP apps. So I'm using this plugin that after starting the debugging process (F5) it shows this message in the command line:
waiting for a new connection on port 9000 for 5 seconds...
So, inmediately after that throwing that message I would like to call a bash script that is in my home folder. So I create a key biding like this:
map gm <F5> :!sh ~/refresh_browser.sh<enter>
My problem: because of the message waiting ... is not possible to write commands in the command line.
So, is there any way to clear the command line to remove the waiting.. message before executing the bash script? if not, what is your advice?
Javi
Finally I create a key binding like this:
map gm :! ~/my_sript.sh &<enter><F5>
And this is the content of my_script.sh:
#!/bin/sh
xdotool windowfocus `xdotool search --name "Mozilla Firefox" | head -1`
sleep 2
xdotool key F5
xdotool windowactivate `xdotool search --name "GVIM" | head -1`
xdotool key F4 #to go to the breakpoint
Well when I said "not possible to write commands in the command line" I meant that while the message "wait.." is shown in the command line, I cat not write anything in the command line.
Javi