Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 27 Jun 2008 14:35:15 +0200
From:      "Alexey Shuvaev" <shuvaev@physik.uni-wuerzburg.de>
To:        freebsd-current@freebsd.org
Cc:        kde@FreeBSD.org, freebsd-ports@freebsd.org
Subject:   Re: 8-current/kde3 stty defaults incorrect under konsole
Message-ID:  <20080627123515.GA87903@wep4020.physik.uni-wuerzburg.de>
In-Reply-To: <20080625145102.GA65611@wep4017.physik.uni-wuerzburg.de>
References:  <g3tjk6$ei1$1@ger.gmane.org> <20080625145102.GA65611@wep4017.physik.uni-wuerzburg.de>

next in thread | previous in thread | raw e-mail | index | archive | help

--BXVAT5kNtrzKuDFl
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

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.

--BXVAT5kNtrzKuDFl
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="patch-kdecore_kpty.cpp"

--- 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"
 

--BXVAT5kNtrzKuDFl--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20080627123515.GA87903>