From owner-freebsd-questions Mon Oct 12 10:38:09 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id KAA29805 for freebsd-questions-outgoing; Mon, 12 Oct 1998 10:38:09 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from awfulhak.org (awfulhak.force9.co.uk [195.166.136.63]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id KAA29663 for ; Mon, 12 Oct 1998 10:37:59 -0700 (PDT) (envelope-from brian@Awfulhak.org) Received: from woof.lan.awfulhak.org (brian@woof.lan.awfulhak.org [172.16.0.7]) by awfulhak.org (8.8.8/8.8.8) with ESMTP id SAA05311; Mon, 12 Oct 1998 18:37:42 +0100 (BST) (envelope-from brian@Awfulhak.org) Received: from woof.lan.awfulhak.org (brian@localhost [127.0.0.1]) by woof.lan.awfulhak.org (8.9.1/8.9.1) with ESMTP id OAA11051; Mon, 12 Oct 1998 14:59:12 +0100 (BST) (envelope-from brian@woof.lan.awfulhak.org) Message-Id: <199810121359.OAA11051@woof.lan.awfulhak.org> X-Mailer: exmh version 2.0.2 2/24/98 To: Jim Martin cc: freebsd-questions@FreeBSD.ORG Subject: Re: simple unix question ? In-reply-to: Your message of "Sat, 10 Oct 1998 22:58:49 EDT." <36201EE9.621F@eos.ncsu.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Mon, 12 Oct 1998 14:59:11 +0100 From: Brian Somers Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > Hi, if I'm telnet'ing into a server and if I issue the command > echo '12\t34' I will see '12\t34' on some (freebsd) machines and > '12 34' on others machines (AIX). And on other machines > we see the \t come back as the ascii tab (0x09). I need to learn how to > control configure the telnet session to be able to translate > the tab (the \t) or to not translate. > > The stty -oxtab I thought was to allow tabs to go untranslated. > If I issue 'stty oxtab' to enable translation of tabs, I don't see > freebsd substitute spaces for the tab. Likewise I can't change > AIX's behavior with the stty command. > > what else is involved with being able to turn on and off the > tab translation over a telnet session? Using printf(1) will give more consistent results than echo; echo's different on SYSV. BSDs echo will ``echo'' what you type, so \t == \t. oxtabs will translate your tab character to the necessary number of spaces at the tty driver level so that the target terminal device has no control over tab stop widths - it only ever gets to see a series of spaces instead. I believe -tabs gives the same effect in SYSV. > thanks, > jim -- Brian , , Don't _EVER_ lose your sense of humour.... To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message