From owner-freebsd-questions Tue May 19 15:50:54 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id PAA07759 for freebsd-questions-outgoing; Tue, 19 May 1998 15:50:54 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from gdi.uoregon.edu (gdi.uoregon.edu [128.223.170.30]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id PAA07598 for ; Tue, 19 May 1998 15:50:20 -0700 (PDT) (envelope-from dwhite@gdi.uoregon.edu) Received: from localhost (dwhite@localhost) by gdi.uoregon.edu (8.8.8/8.8.8) with SMTP id PAA12160; Tue, 19 May 1998 15:50:14 -0700 (PDT) (envelope-from dwhite@gdi.uoregon.edu) Date: Tue, 19 May 1998 15:50:14 -0700 (PDT) From: Doug White Reply-To: Doug White To: Spidey cc: Question=answer Subject: Re: sending escapes char to printer... In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Tue, 19 May 1998, Spidey wrote: > Hi > > I would like to know how to send escape sequences (like ESC + 5 + 0x0F) to > my printer... I am setting up my filters and the example in the handbook > is not really clear... The string printf "\0335\020" should do it. \### means output the ASCII character ### where ### is an octal number. See `man ascii' for a table. Doug White | University of Oregon Internet: dwhite@resnet.uoregon.edu | Residence Networking Assistant http://gladstone.uoregon.edu/~dwhite | Computer Science Major To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message