8-current/kde3 stty defaults incorrect under konsole

Alexey Shuvaev shuvaev at physik.uni-wuerzburg.de
Fri Jun 27 12:35:20 UTC 2008


On Wed, Jun 25, 2008 at 04:51:02PM +0200, Alexey Shuvaev wrote:
> Hello!
> 
> On Wed, Jun 25, 2008 at 07:10:14AM -0700, Mark Atkinson wrote:
> > Hi,
> > 
> > Is anyone else running freebsd-current with kde3 (and has rebuilt both
> > recently)?   I can only suspect this is related to recent changes in
> > current in prep for mpsafe tty, but in konsole, the defaults turn out to be
> > this (note the missing '^' on intr and quit):
> > 
> > cchars: discard = ^O; dsusp = ^Y; eof = ^D; eol = <undef>;
> >         eol2 = <undef>; erase = ^?; erase2 = ^H; intr = C; kill = ^U;
> >         lnext = ^V; min = 1; quit = \; reprint = ^R; start = ^Q;
> >         status = ^T; stop = ^S; susp = ^Z; time = 0; werase = ^W;
> > 
> > xterm and the freebsd console are fine.
> > 
> I have noticed that cursor key (right, forward direction) does not work
> as expected. By pressing it cancels the current command line and prompts with
> the empty one again.
> 
> [snip]
> On Wed, Jun 25, 2008 at 04:34:28PM +0200, Ed Schouten wrote:
> > Blegh. I always hate those applications using non-documented extensions
> > in a non-standard way. ;-)
> >
> > Anyway, could you store this patch in the files/ dir of the kdelibs3
> > port and see what happens? Thanks! :)
> >
> > %%%
> > --- kdecore/kpty.cpp
> > +++ kdecore/kpty.cpp
> > @@ -128,9 +128,8 @@
> >  #include <kstandarddirs.h>   // locate
> >
> >  // not defined on HP-UX for example
> > -#ifndef CTRL
> > -# define CTRL(x) ((x) & 037)
> > -#endif
> > +#undef CTRL
> > +#define CTRL(x) ((x) & 037)
> >
> >  #define TTY_GROUP "tty"
> >
> > %%%
> >
> Thanks, I will try this but it takes a while, it is 800MHz Pentium3 :-)
> 
> Alexey.
>
I have rebuilt kdelibs with this patch and now both wrong stty -a values
and issues with cursor keys are gone. Thanks!

Any chance to have this patch in the ports tree?

Alexey.
-------------- next part --------------
--- kdecore/kpty.cpp
+++ kdecore/kpty.cpp
@@ -128,9 +128,8 @@
 #include <kstandarddirs.h>	// locate
 
 // not defined on HP-UX for example
-#ifndef CTRL
-# define CTRL(x) ((x) & 037)
-#endif
+#undef CTRL
+#define CTRL(x) ((x) & 037)
 
 #define TTY_GROUP "tty"
 


More information about the freebsd-current mailing list