From owner-freebsd-questions@FreeBSD.ORG Mon Jun 1 00:11:05 2009 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 6A1D11065702 for ; Mon, 1 Jun 2009 00:11:05 +0000 (UTC) (envelope-from roberthuff@rcn.com) Received: from smtp02.lnh.mail.rcn.net (smtp02.lnh.mail.rcn.net [207.172.157.102]) by mx1.freebsd.org (Postfix) with ESMTP id 2882B8FC1C for ; Mon, 1 Jun 2009 00:11:04 +0000 (UTC) (envelope-from roberthuff@rcn.com) Received: from mr08.lnh.mail.rcn.net ([207.172.157.28]) by smtp02.lnh.mail.rcn.net with ESMTP; 31 May 2009 20:11:04 -0400 Received: from smtp01.lnh.mail.rcn.net (smtp01.lnh.mail.rcn.net [207.172.4.11]) by mr08.lnh.mail.rcn.net (MOS 3.10.5-GA) with ESMTP id KXB30315; Sun, 31 May 2009 20:10:52 -0400 (EDT) Received: from 209-6-22-188.c3-0.smr-ubr1.sbo-smr.ma.cable.rcn.com (HELO jerusalem.litteratus.org.litteratus.org) ([209.6.22.188]) by smtp01.lnh.mail.rcn.net with ESMTP; 31 May 2009 20:10:52 -0400 From: Robert Huff MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <18979.7307.657951.468037@jerusalem.litteratus.org> Date: Sun, 31 May 2009 20:10:51 -0400 To: Thomas Dickey In-Reply-To: <20090531222531.GA21537@saltmine.radix.net> References: <18978.56856.705030.492797@jerusalem.litteratus.org> <20090531222531.GA21537@saltmine.radix.net> X-Mailer: VM 7.17 under 21.5 (beta28) "fuki" XEmacs Lucid X-Junkmail-Whitelist: YES (by domain whitelist at mr08.lnh.mail.rcn.net) Cc: Robert Huff , questions@freebsd.org Subject: Re: changing tab stops 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: Mon, 01 Jun 2009 00:11:05 -0000 Thomas Dickey writes: > > I have a C program that writes to a terminal (currently xterm, > > but could be anything). For reasons I won't go into, I would like > > to read and change the terminal's tab stops ... from within the > > program ... in a generic/portable way. > > You could make a program which does what "resize" does to find the > screensize: it moves the cursor and asks where it is. (I'm not > aware of an existing program which asks based on tab stops). Ugh. If that's the alternative, I can probably live without. Thanks for the suggestion. Robert Huff