From owner-freebsd-questions@FreeBSD.ORG Sun Jul 24 12:52:06 2005 Return-Path: X-Original-To: questions@freebsd.org Delivered-To: freebsd-questions@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E528A16A41F for ; Sun, 24 Jul 2005 12:52:06 +0000 (GMT) (envelope-from danm@prime.gushi.org) Received: from prime.gushi.org (prime.gushi.org [65.125.228.130]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7A51943D4C for ; Sun, 24 Jul 2005 12:52:06 +0000 (GMT) (envelope-from danm@prime.gushi.org) Received: from prime.gushi.org (danm@localhost.gushi.org [127.0.0.1]) by prime.gushi.org (8.13.4/8.13.4) with ESMTP id j6OCqKZj013254 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Sun, 24 Jul 2005 08:52:20 -0400 (EDT) Received: (from danm@localhost) by prime.gushi.org (8.13.4/8.13.4/Submit) id j6OCqKMa013252; Sun, 24 Jul 2005 08:52:20 -0400 (EDT) Date: Sun, 24 Jul 2005 08:52:20 -0400 (EDT) From: "Dan Mahoney, System Admin" To: questions@freebsd.org Message-ID: <20050724081711.I7429@prime.gushi.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: Subject: Questions on termcap suggestions 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: Sun, 24 Jul 2005 12:52:07 -0000 Hey all, Apologies. Long. Late. (Early). I just spent a few hours longer than I feel I should have had to learning about ANSI escape sequences and the raw unadulterated line-noise-like readability of the system termcap file. Here's the basics: I use pine's "print" command, which works fine, under a normal login (term type is vt100). Then I started with screen, which ignores the escape sequences pine sends and does not pass them on to the remote terminal. After a little research, I found the escape sequences for printer enableing and disabling, and I added the following to the termcap entry for "vt100" and rebuilt the thing: po=\E[5i:pf=\E[4i: And once I restarted screen, it worked. I'm sending this through so someone may find it in the future and save themself some effort. Now, I'm pretty sure those termcap entries are standard things, so I dunno if I can just throw in a send-pr to have them added (if I should, let me know, and I will). Otherwise, is there a sensible way to suggest this be added somewhere else? I mean, I don't want to set the assumption that ANY terminal setting itself as vt100 is in fact print-capable. (but then, pine without screen will do the same damage anyway). I'd say half the problem is in pine, honestly, which never *should* have worked without those entries present, but pine apparently doesn't check, instead just sending those sequences on its own. Related: In searching around I've also found a teeny tiny little program called lpansi that allows you to cat a file to your local printer. Shouldn't something like this be in the base, or in ports? I found things like birthstone references and what certain flowers mean in /usr/share/misc, why not a useful "print" command? -Dan -- "You're a thucking reyer!" -Richard Bozzello, who believed tongue piercing was painless. --------Dan Mahoney-------- Techie, Sysadmin, WebGeek Gushi on efnet/undernet IRC ICQ: 13735144 AIM: LarpGM Site: http://www.gushi.org ---------------------------