https://bugs.kde.org/show_bug.cgi?id=393737

Aasif Khan <aasifk...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |aasifk...@gmail.com

--- Comment #6 from Aasif Khan <aasifk...@gmail.com> ---
diff --git a/src/panels/terminal/terminalpanel.cpp
b/src/panels/terminal/terminalpanel.cpp
index 8dedd0be1..4e3ccc5cd 100644
--- a/src/panels/terminal/terminalpanel.cpp
+++ b/src/panels/terminal/terminalpanel.cpp
@@ -223,6 +223,7 @@ void TerminalPanel::sendCdToTerminal(const QString& dir,
HistoryPolicy addToHist
 #endif

     m_terminal->sendInput(" cd " + KShell::quoteArg(dir) + '\n');
+    m_terminal->sendInput("clear\n");

     // We want to ignore the currentDirectoryChanged(QString) signal, which we
will receive after
     // the directory change, because this directory change is not caused by a
"cd" command that the
(In reply to Kayra Akman from comment #0)
> Created attachment 112350 [details]
> Embedded terminal littered with automatic commands
> 
> If embedded terminal is visible in Dolphin, navigating to other folders with
> mouse makes ^C and cd /... commands automatically executed in the embedded
> terminal. These commands are also run when embedded terminal is disabled and
> enabled with F4 without changing the current directory.
> 
> Executing clear upon folder change would keep the embedded terminal clean.

(In reply to Kayra Akman from comment #0)
> Created attachment 112350 [details]
> Embedded terminal littered with automatic commands
> 
> If embedded terminal is visible in Dolphin, navigating to other folders with
> mouse makes ^C and cd /... commands automatically executed in the embedded
> terminal. These commands are also run when embedded terminal is disabled and
> enabled with F4 without changing the current directory.
> 
> Executing clear upon folder change would keep the embedded terminal clean.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to