[Konsole-devel] [Bug 105824] ctrl-d doesn't always work

Lars Doelle lars.doelle at on-line.de
Fri Jul 14 00:10:45 UTC 2006


------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
         
http://bugs.kde.org/show_bug.cgi?id=105824         




------- Additional Comments From lars.doelle on-line de  2006-07-14 02:10 -------
gdamjan,

i understand that you swear stone and bone that the konsole truly gets into
some weird mode sometimes, and that the problem is caused by the konsole.

Only that the konsole does not have any special treatment of the ctrl-d.
It is hard to diagnose further from our sides.

Please, if you get into this state, make some test to gain further information.

I would be interested to know if further keys are affected, then, too. You might
for instance run the following variant of your program to try out other keys, in
particular 0..9, a..z and ctrl-a..z, F1-F12.

---------------------------
#include <stdio.h>
#include <termios.h>

int main()
{
  printf("Press 'q' to exit\n");
  unsigned char buf = 0;

  struct termios termios_sav;
  tcgetattr(0, &termios_sav);

  struct termios termios_now = termios_sav;
  cfmakeraw(&termios_now);
  tcsetattr(0, TCSANOW, &termios_now);

  while (1)
  {
    read(0, &buf, 1);
    printf("0x%02x (%c)\r\n", buf, buf<' '?'.':buf);
    if (buf == 'q') break;
  }

  tcsetattr(0, TCSANOW, &termios_sav);

  return 0;
}
------------

I would also be interested to learn, if other application work as usual in this
state. It all sound a bit like a hanging "Alt" mode on your keyboard or
something alike making shortcuts running wild. Do you have any special
shortcuts defined?

-lars



More information about the konsole-devel mailing list