From owner-freebsd-hackers Wed May 22 20:36:05 1996 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id UAA06085 for hackers-outgoing; Wed, 22 May 1996 20:36:05 -0700 (PDT) Received: from kithrup.com (kithrup.com [205.179.156.40]) by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id UAA06036 for ; Wed, 22 May 1996 20:36:01 -0700 (PDT) Received: (from sef@localhost) by kithrup.com (8.6.8/8.6.6) id UAA13414; Wed, 22 May 1996 20:35:56 -0700 Date: Wed, 22 May 1996 20:35:56 -0700 From: Sean Eric Fagan Message-Id: <199605230335.UAA13414@kithrup.com> To: garya@ics.com, jkh@time.cdrom.com Subject: Re: stty -- not Cc: freebsd-hackers@freebsd.org Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk >The handbook implies hex numbers are allowed: > >bamboo|ps|PS|S|panasonic|Panasonic KX-P4455 PostScript v51.4:\ > :sh:sd=/var/spool/lpd/bamboo:\ > :lp=/dev/ttyd5:fs#0x82000e1:xs#0x820:\ > ^^^^^^^^^^^^ Looking at the source, decimal and octal numbers are allowed. Hex numbers are apparantly not allowed. I have not looked at the handbook, so I don't know what it would have. Sorry. >I tried that using fs#0x10, fs#020, and fs#16, to no avail; >so, taking sean's advice, >I found OPOST and ONLCR in termios.h, and tried fs#3, also to no avail. >So then I tried covering the world with 0xff, 0377, and 255, >but got nowhere. > >So... >How the heck *do* you turn those bits on, and what are the right >ones? I have NO IDEA. That is why I wrote the changes to lpd and printcap to allow using stty-like strings -- because I could never figure out what the stupid bits were supposed to be. I *think* you just need 03 to get what you want -- but I'm not sure. But I don't know if you need to set xs, or xc, or fs, or fc to set or clear other bits. Sean.