Date: Sun, 13 Dec 1998 14:09:35 -0500 From: "Andrew J. Korty" <ajk@purdue.edu> To: freebsd-current@FreeBSD.ORG Subject: biff b Message-ID: <199812131909.OAA11246@poynting.physics.purdue.edu>
next in thread | raw e-mail | index | archive | help
------- =_aaaaaaaaaa0 Content-Type: text/plain; charset="us-ascii" Content-ID: <11234.913576157.1@poynting.physics.purdue.edu> The stock versions of biff(1) and comsat(8) cause the header and first few lines of an arriving mail message to be displayed. My (trivial) modifications to these programs add the "biff b" feature found in some other UNIX variants. In this mode, only a couple of BEL characters are sent to the user's terminal, signifying new mail without disturbing the display. I can't commit this feature because I don't have the privs, but my diffs are attached ... Andrew J. Korty, Director http://www.physics.purdue.edu/~ajk/ Physics Computer Network 85 73 1F 04 63 D9 9D 65 Purdue University 65 2E 7A A8 81 8C 45 75 ------- =_aaaaaaaaaa0 Content-Type: application/x-patch Content-ID: <11234.913576157.2@poynting.physics.purdue.edu> Content-Description: biff b Content-Transfer-Encoding: base64 SW5kZXg6IHNyYy91c3IuYmluL2JpZmYvYmlmZi4xCj09PT09PT09PT09PT09PT09PT09PT09PT09 PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT0KUkNTIGZpbGU6IC91c3Iv Y3ZzL2ZyZWVic2Qvc3JjL3Vzci5iaW4vYmlmZi9iaWZmLjEsdgpyZXRyaWV2aW5nIHJldmlzaW9u IDEuMS4xLjEKcmV0cmlldmluZyByZXZpc2lvbiAxLjIKZGlmZiAtYyAtcjEuMS4xLjEgLXIxLjIK KioqIGJpZmYuMQkxOTk4LzEyLzAzIDE1OjQxOjQwCTEuMS4xLjEKLS0tIGJpZmYuMQkxOTk4LzEy LzA3IDE0OjUyOjM5CTEuMgoqKioqKioqKioqKioqKioKKioqIDQwLDQ2ICoqKioKICAuTmQgImJl IG5vdGlmaWVkIGlmIG1haWwgYXJyaXZlcyBhbmQgd2hvIGl0IGlzIGZyb20iCiAgLlNoIFNZTk9Q U0lTCiAgLk5tIGJpZmYK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SBTX0lYR1JQOgohIAkJKHZvaWQpIGZwcmludGYodHAsICJcMDA3Iik7 CiEgCQkodm9pZCkgZmZsdXNoKHRwKTsJCiEgCQkodm9pZCkgc2xlZXAoMSk7CiEgCQkodm9pZCkg ZnByaW50Zih0cCwgIlwwMDciKTsKISAJCWJyZWFrOwohIAl9CiAgCSh2b2lkKWZjbG9zZSh0cCk7 CiAgCV9leGl0KDApOwogIH0K ------- =_aaaaaaaaaa0-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199812131909.OAA11246>