From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3891 invoked from network); 2 Apr 2001 15:24:39 -0000 Received: from sunsite.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 2 Apr 2001 15:24:39 -0000 Received: (qmail 2131 invoked by alias); 2 Apr 2001 15:24:31 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 13884 Received: (qmail 2118 invoked from network); 2 Apr 2001 15:24:30 -0000 Date: Mon, 2 Apr 2001 11:24:28 -0400 From: Clint Adams To: Sven Wischnowsky Cc: zsh-workers@sunsite.dk Subject: Re: Functions moved Message-ID: <20010402112428.A12039@dman.com> References: <200104021441.QAA12200@beta.informatik.hu-berlin.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <200104021441.QAA12200@beta.informatik.hu-berlin.de>; from wischnow@informatik.hu-berlin.de on Mon, Apr 02, 2001 at 04:41:43PM +0200 > Hrm. Any idea how they look like? Option-wise? Yup. Here's Solaris 8. It apparently has nothing to do with power management, but rather something related to sadmind. I think. Usage: apm -c class [version] -m method [-h host] [-d domain] [-t AuthType] [-f AuthFlavor] [-g ClientGroup] [-n | -p] [-x AckSecs AckUsecs] [-y RepSecs RepUsecs] [-k PingCnt] [-w PingSecs PingUsecs] [-i DelaySecs DelayUsecs] [-r ServerProg ServerVers] [-u [file]] [-l] [-D DebugCategories] [-a name[=value] name[=value] ...] And this is for FreeBSD 4.1: Index: Completion/Linux/_apm =================================================================== RCS file: /cvsroot/zsh/zsh/Completion/Linux/_apm,v retrieving revision 1.1 diff -u -r1.1 _apm --- Completion/Linux/_apm 2001/04/01 01:12:07 1.1 +++ Completion/Linux/_apm 2001/04/02 15:19:25 @@ -1,4 +1,11 @@ #compdef apm + +# this needs intelligence +local kludge=linux + +if [[ $kludge == "linux" ]] +then + _arguments -C -s \ '(--version)-V[print the apm program and exit immediately]' \ '(-V)--version[print the apm program and exit immediately]' \ @@ -15,3 +22,19 @@ '(--ignore)-i[tell the system to ignore system-generated APM message]' \ '(-i)--ignore[tell the system to ignore system-generated APM message]' +else + +_arguments -C \ + '-a[display AC line status]' \ + '-b[display battery status]' \ + '-d[disable/enable display suspension]:bool:' \ + '-e[disable/enable apm functions]:bool:' \ + '-h[disable/enable HLT in kernel context switch]:bool:' \ + '-l[display remaining battery percentage]' \ + '-r[enable resume wakeup timer]' \ + '-s[display status of APM support]' \ + '-t[display estimated remaining battery life in seconds]' \ + '-Z[transition system into standby mode]' \ + '-z[suspend the system]' + +fi