From owner-freebsd-current@FreeBSD.ORG Fri Jun 27 12:35:20 2008 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 827AB1065675; Fri, 27 Jun 2008 12:35:20 +0000 (UTC) (envelope-from shuvaev@physik.uni-wuerzburg.de) Received: from mailrelay.rz.uni-wuerzburg.de (wrzx28.rz.uni-wuerzburg.de [132.187.3.28]) by mx1.freebsd.org (Postfix) with ESMTP id 11B718FC1B; Fri, 27 Jun 2008 12:35:19 +0000 (UTC) (envelope-from shuvaev@physik.uni-wuerzburg.de) Received: from virusscan.mail (localhost [127.0.0.1]) by mailrelay.mail (Postfix) with ESMTP id A3FA1198F36; Fri, 27 Jun 2008 14:35:18 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by virusscan.mail (Postfix) with ESMTP id 97F5F198F1C; Fri, 27 Jun 2008 14:35:18 +0200 (CEST) Received: from mail.physik.uni-wuerzburg.de (wthp192.physik.uni-wuerzburg.de [132.187.40.192]) by mailmaster.uni-wuerzburg.de (Postfix) with ESMTP id 50C41198F18; Fri, 27 Jun 2008 14:35:16 +0200 (CEST) Received: from wep4020 ([132.187.37.20]) by mail.physik.uni-wuerzburg.de (Lotus Domino Release 8.0.1HF110) with ESMTP id 2008062714351526-79964 ; Fri, 27 Jun 2008 14:35:15 +0200 Received: by wep4020 (sSMTP sendmail emulation); Fri, 27 Jun 2008 14:35:15 +0200 From: "Alexey Shuvaev" Date: Fri, 27 Jun 2008 14:35:15 +0200 To: freebsd-current@freebsd.org Message-ID: <20080627123515.GA87903@wep4020.physik.uni-wuerzburg.de> References: <20080625145102.GA65611@wep4017.physik.uni-wuerzburg.de> MIME-Version: 1.0 In-Reply-To: <20080625145102.GA65611@wep4017.physik.uni-wuerzburg.de> Organization: Universitaet Wuerzburg User-Agent: Mutt/1.5.18 (2008-05-17) X-MIMETrack: Itemize by SMTP Server on domino1/uni-wuerzburg(Release 8.0.1HF110 | April 11, 2008) at 06/27/2008 02:35:15 PM, Serialize by Router on domino1/uni-wuerzburg(Release 8.0.1HF110 | April 11, 2008) at 06/27/2008 02:35:18 PM, Serialize complete at 06/27/2008 02:35:18 PM Content-Type: multipart/mixed; boundary="BXVAT5kNtrzKuDFl" Content-Disposition: inline X-Virus-Scanned: by amavisd-new at uni-wuerzburg.de Cc: kde@FreeBSD.org, freebsd-ports@freebsd.org Subject: Re: 8-current/kde3 stty defaults incorrect under konsole X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 27 Jun 2008 12:35:20 -0000 --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 = ; > > eol2 = ; 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 // 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 // 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--