Date: Tue, 18 Aug 1998 13:04:38 +0200 From: Ignatios Souvatzis <is@jocelyn.rhein.de> To: hm@hcs.de Cc: freebsd-isdn@FreeBSD.ORG Subject: Re: isdn4netbsd-amiga, 4th report Message-ID: <19980818130438.A594@jocelyn.rhein.de> In-Reply-To: <m0z4huF-0000fAC@hcswork.hcs.de>; from Hellmuth Michaelis on Fri, Aug 07, 1998 at 10:29:47AM %2B0200 References: <19980807000820.B1249@jocelyn.rhein.de> <m0z4huF-0000fAC@hcswork.hcs.de>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19980818130438.A594>