[Konsole-devel] [Bug 203185] Wrong reported terminal dimensions when using the "-e" option

Jekyll Wu adaptee at gmail.com
Sat Jul 16 09:56:23 UTC 2011


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


Jekyll Wu <adaptee at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |adaptee at gmail.com




--- Comment #17 from Jekyll Wu <adaptee gmail com>  2011-07-16 09:56:23 ---
I think this bug can be marked as `new' now.

As pointed out by Sergei in comment #14, there exist a race condition. The
initial window size of the Pty is 0x0, which will be updated to proper value
after the TerminalDisplay widget get resized. However, current code can't
guarantee the terminal process(shell, mc, etc) is started ONLY AFTER the first
resizeEvent of TerminalDisplay widget has happened.

Application::createSession(...)
{
  ....
  view->createView(session);
  session->run();
  .....
}

Pty::start(...)
{
  ....
  pty()->setWinSize(_windowLines, _windowColumns);
  kDebug() << _windowColumns << "x" << _windowLines ;
  KProcess::start();
  ...
}

-- 
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the konsole-devel mailing list