Fixed text & window focus handling

Text will now be properly parsed.
Launched terminal windows will now be brought to front.