Path: utzoo!dptcdc!jarvis.csri.toronto.edu!mailrus!cornell!batcomputer!itsgw!steinmetz!crdgw1!uunet!vsedev!logan From: logan@vsedev.VSE.COM (James Logan III) Newsgroups: comp.terminals Subject: Re: Set WY-60 clock from software? Summary: This might help... Message-ID: <1484@vsedev.VSE.COM> Date: 18 Apr 89 01:36:08 GMT References: <9330@dasys1.UUCP> Reply-To: logan@vsedev.VSE.COM (James Logan III) Organization: VSE Software Development Lab Lines: 36 In article <9330@dasys1.UUCP> tbetz@dasys1.UUCP (TOM BETZ) writes: # I've RTFM and can't find a hint... has anyone figured out how to # set the WY-60's internal clock from software, using date(C), say, # as a time source? # # Be kinda nice if I could stick something into my .profile that # would do this at login. This script is for a Visual 630 terminal, but the escape sequences may be the same: ---------------------------------------------------------------------------- # clock.sh Written by James Logan Thu Nov 3 23:01:17 EST 1988 # Sets the hardware clock on a Visual 603 terminal. # # $Revision$ # # $Log$ set -- `date +"%H %M"`; if test "$1" -gt 12; then FLAG="2"; else FLAG="1"; fi; echo "\033P1;${FLAG}~${1}:${2}:00\033\\Clock set to $1$2"; exit 0; ---------------------------------------------------------------------------- Hope this helps. -Jim -- Jim Logan logan@vsedev.vse.com VSE Software Development Lab uucp: ..!uunet!vsedev!logan (703) 329-4654 inet: logan%vsedev.vse.com@uunet.uu.net