Changeset View
Changeset View
Standalone View
Standalone View
addons/konsole/kateconsole.cpp
Show First 20 Lines • Show All 241 Lines • ▼ Show 20 Line(s) | 241 | if (t) { | |||
---|---|---|---|---|---|
242 | // ghci doesn't allow \space dir names, does allow spaces in dir names | 242 | // ghci doesn't allow \space dir names, does allow spaces in dir names | ||
243 | // irb can take spaces or \space but doesn't allow " 'path' " | 243 | // irb can take spaces or \space but doesn't allow " 'path' " | ||
244 | if (t->foregroundProcessName() == QStringLiteral("irb") ) { | 244 | if (t->foregroundProcessName() == QStringLiteral("irb") ) { | ||
245 | command = QStringLiteral("Dir.chdir(\"") + path + QStringLiteral("\") \n") ; | 245 | command = QStringLiteral("Dir.chdir(\"") + path + QStringLiteral("\") \n") ; | ||
246 | } else if(t->foregroundProcessName() == QStringLiteral("ghc")) { | 246 | } else if(t->foregroundProcessName() == QStringLiteral("ghc")) { | ||
247 | command = QStringLiteral(":cd ") + path + QStringLiteral("\n"); | 247 | command = QStringLiteral(":cd ") + path + QStringLiteral("\n"); | ||
248 | } | 248 | } | ||
249 | } | 249 | } | ||
250 | | ||||
251 | // Send prior Ctrl-E, Ctrl-U to ensure the line is empty | ||||
252 | sendInput(QStringLiteral("\x05\x15")); | ||||
250 | sendInput(command); | 253 | sendInput(command); | ||
251 | } | 254 | } | ||
252 | 255 | | |||
253 | void KateConsole::sendInput( const QString& text ) | 256 | void KateConsole::sendInput( const QString& text ) | ||
254 | { | 257 | { | ||
255 | loadConsoleIfNeeded(); | 258 | loadConsoleIfNeeded(); | ||
256 | 259 | | |||
257 | if (!m_part) return; | 260 | if (!m_part) return; | ||
▲ Show 20 Lines • Show All 246 Lines • Show Last 20 Lines |