title: Input hidden, output has excess indentation
body: <p>As formerly stated <a href="https://stackoverflow.com/questions/32366090/system-command-executes-but-is-immediately-backgrounded">here</a>, I am trying to recreate an SSH profile manager in Pascal that I had originally written in Ruby. With the answer provided I have been able to get the shell to stay open and accept input. Now I have the new problem of any and all input is hidden and all output seems to be tiling with several tab characters before each line. The updated relevant code is as follows:</p>
  
  <pre><code>if HasOption('c', 'connect') then begin
    TempFile:= GetRecord(GetOptionValue('c', 'connect'));
    AProcess:= TProcess.Create(nil);
    AProcess.Executable:= '/usr/bin/ssh';
    AProcess.Parameters.Add('-p');
    AProcess.Parameters.Add(TempFile.Port);
    AProcess.Parameters.Add('-tt');
    AProcess.Parameters.Add(TempFile.Username + '@' + TempFile.Address);
    AProcess.Options:= [];
    AProcess.ShowWindow:= swoShow;
    AProcess.InheritHandles:= False;
    AProcess.Execute;
    AProcess.WaitOnExit;
    AProcess.Free;
    Terminate;
    Exit;
  end;
  </code></pre>
  
  <p>The output provide looks like this:</p>
  
  <p><a href="https://i.stack.imgur.com/vpQnj.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/vpQnj.png" alt="terminal output"></a></p>
  
  <p>I ran <code>ls</code>, <code>pwd</code>, and <code>exit</code> in that order.</p>