From owner-freebsd-isdn Tue Aug 18 05:35:34 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id FAA13558 for freebsd-isdn-outgoing; Tue, 18 Aug 1998 05:35:34 -0700 (PDT) (envelope-from owner-freebsd-isdn@FreeBSD.ORG) Received: from gatekeeper.rhein.de (gatekeeper.rhein.de [193.175.27.1]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id FAA13548 for ; Tue, 18 Aug 1998 05:35:30 -0700 (PDT) (envelope-from is@jocelyn.rhein.de) Received: from jocelyn.rhein.de (jocelyn.rhein.de [193.175.27.218]) by gatekeeper.rhein.de (8.9.1a/8.9.1-ws3) with ESMTP id OAA09621; Tue, 18 Aug 1998 14:34:32 +0200 (MET DST) Received: (from is@localhost) by jocelyn.rhein.de (8.8.8/8.8.8) id NAA00611; Tue, 18 Aug 1998 13:04:39 +0200 (MEST) Message-ID: <19980818130438.A594@jocelyn.rhein.de> Date: Tue, 18 Aug 1998 13:04:38 +0200 From: Ignatios Souvatzis To: hm@hcs.de Cc: freebsd-isdn@FreeBSD.ORG Subject: Re: isdn4netbsd-amiga, 4th report References: <19980807000820.B1249@jocelyn.rhein.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.91.1i In-Reply-To: ; from Hellmuth Michaelis on Fri, Aug 07, 1998 at 10:29:47AM +0200 Sender: owner-freebsd-isdn@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Fri, Aug 07, 1998 at 10:29:47AM +0200, Hellmuth Michaelis wrote: > >From the keyboard of Ignatios Souvatzis: > > d) the command window for hanging up a line doesn't react to any keystroke > > I could identify. Just leaves the cursor after the last line it offers. > > Curses problem in NetBSD ??? This does not happen in FreeBSD. For shure. No. I debugged this today... select() works ok, wgetch() works ok, but the value isn't recognized by atoi(). The following patch: jocelyn isdnd !% diff -u curses.c.original curses.c --- curses.c.original Tue Aug 18 12:55:26 1998 +++ curses.c Tue Aug 18 12:56:04 1998 @@ -548,7 +548,7 @@ continue; } - nlines = atoi((const char *)&ncols); + nlines = ncols - '0'; if ((nlines == 0) || (nlines > cnt)) { makes it work. (atoi() wants a 0-terminated string. ncols is an int. on little-endian machines, its memory layout is cc000000, where cc is the character read; on big-endian machines, its layout is 000000cc, and even if &ncols would point to the cc byte, you are at the mercy of what the compiler has put behind the ncols variable. But you get the first 00 anyway.) Of course, this (like the working-on-intel original version) is limited to 9 active channels. But programming a scrolling window in curses is beyond my past programming experience :-), so I left this for possible future work. Regards, Ignatios To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isdn" in the body of the message