diff --git a/src/main/kotlin/nl/deschepers/laraveltinker/listener/PhpProcessListener.kt b/src/main/kotlin/nl/deschepers/laraveltinker/listener/PhpProcessListener.kt index 3d014d2..056c79e 100644 --- a/src/main/kotlin/nl/deschepers/laraveltinker/listener/PhpProcessListener.kt +++ b/src/main/kotlin/nl/deschepers/laraveltinker/listener/PhpProcessListener.kt @@ -14,8 +14,16 @@ import nl.deschepers.laraveltinker.util.PlugUtil class PhpProcessListener(private val project: Project) : ProcessListener { + companion object { + private const val OUTPUT_START_SEQUENCE = "%%START-OUTPUT%%" + private const val OUTPUT_END_SEQUENCE = "%%END-OUTPUT%%" + } + private val processOutput = ArrayList() + private var capturing = false + private var firstLine = true + override fun startNotified(event: ProcessEvent) { TinkerOutputToolWindowFactory.tinkerOutputToolWindow[project]?.plug = null } @@ -38,7 +46,7 @@ class PhpProcessListener(private val project: Project) : } override fun onTextAvailable(event: ProcessEvent, outputType: Key<*>) { -// print(event.text) + //print(event.text) // DEV: Uncomment to see what the output is that comes from the PHP process. if (firstLine) { firstLine = false