* Ed Schouten <[EMAIL PROTECTED]> wrote: > An even better approach would be to use CKILL/CQUIT/etc. There are > non-standard either, but it's better than using the CTRL() macro > directly. I'll come up with a patch soonish. :)
Something like this? %%% --- kdecore/kpty.cpp +++ kdecore/kpty.cpp @@ -127,9 +127,15 @@ #include <kdebug.h> #include <kstandarddirs.h> // locate -// not defined on HP-UX for example -#undef CTRL -#define CTRL(x) ((x) & 037) +#ifndef CINTR +#define CINTR 0x03 +#endif +#ifndef CQUIT +#define CQUIT 0x1c +#endif +#ifndef CERASE +#define CERASE 0x7f +#endif #define TTY_GROUP "tty" @@ -333,9 +339,9 @@ ttmode.c_iflag |= IUTF8; #endif - ttmode.c_cc[VINTR] = CTRL('C' - '@'); - ttmode.c_cc[VQUIT] = CTRL('\\' - '@'); - ttmode.c_cc[VERASE] = 0177; + ttmode.c_cc[VINTR] = CINTR; + ttmode.c_cc[VQUIT] = CQUIT; + ttmode.c_cc[VERASE] = CERASE; _tcsetattr(d->slaveFd, &ttmode); %%% -- Ed Schouten <[EMAIL PROTECTED]> WWW: http://80386.nl/
pgpO4H9dwCn4c.pgp
Description: PGP signature
_______________________________________________ kde-freebsd mailing list kde-freebsd@kde.org https://mail.kde.org/mailman/listinfo/kde-freebsd