From owner-freebsd-questions@FreeBSD.ORG Thu Jun 7 09:11:16 2012 Return-Path: Delivered-To: questions@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 996B51065670 for ; Thu, 7 Jun 2012 09:11:16 +0000 (UTC) (envelope-from dmtilbrook@gmail.com) Received: from mail-yw0-f54.google.com (mail-yw0-f54.google.com [209.85.213.54]) by mx1.freebsd.org (Postfix) with ESMTP id 371BE8FC19 for ; Thu, 7 Jun 2012 09:11:16 +0000 (UTC) Received: by yhgm50 with SMTP id m50so257757yhg.13 for ; Thu, 07 Jun 2012 02:11:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=1IxAulsXp/qEAbiiJxHfg8M/UgId6Rrs00hIZDCR28w=; b=quAmWR8ayhGhNn2+NP7rlvtf3SR1CvRncG6YZo30PimrpT+Rtufv0kcHRXljgsWgNv JICMWPX80arCQVm5y3yxJywxprCK6AvDqrOh2oHlzTuGU5MWlbN5m+EnQIUYtmS7DEQM 4ngk+KK3Vy19lNiVGd+P30HioUeejvbDClxII3Z/wdyFdq5PEdUrWgYBvxhVOeblkIJs 3hDnNma3fJV1vXvo8ioANBkp8Htxi4j8lv2oq5X8doMcZHkckIrt8zbsI8t71Hme+kGh OXAFfC/7otRpNRdCy0rZRPXufNxTMGYYwlmCJO+eI9ptjZr1aES8Lus/R7gGsDHPpaKP Kk5A== MIME-Version: 1.0 Received: by 10.60.24.7 with SMTP id q7mr1247133oef.50.1339060275427; Thu, 07 Jun 2012 02:11:15 -0700 (PDT) Received: by 10.182.22.130 with HTTP; Thu, 7 Jun 2012 02:11:15 -0700 (PDT) Date: Thu, 7 Jun 2012 05:11:15 -0400 Message-ID: From: David Tilbrook To: questions@FreeBSD.org Content-Type: text/plain; charset=ISO-8859-1 Cc: Subject: changes to ioctl has me flumoxed X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 07 Jun 2012 09:11:16 -0000 To support my line editor I used to use: sgtty.c_lflag = ISIG; sgtty.c_iflag = BRKINT | IGNPAR | IXON | ICRNL; sgtty.c_oflag &= (ONLCR | OPOST | TAB3); sgtty.c_cc[VMIN] = 1; sgtty.c_cc[VTIME] = 1; iotcl(0, TCSETAW, &sgtty); but this no longer appears to work in that input lines are repeated and the writes to reflect chanes are not done. What should I be changing in the above, or what do I need to add? -- david