[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-bugs-dist
Subject:    [Bug 105824] ctrl-d doesn't always work
From:       Lars Doelle <lars.doelle () on-line ! de>
Date:       2006-07-14 0:10:52
Message-ID: 20060714001052.23020.qmail () ktown ! kde ! org
[Download RAW message or body]

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
         
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
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic