From owner-freebsd-questions@FreeBSD.ORG Wed Dec 8 01:20:02 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A78AA16A4CE for ; Wed, 8 Dec 2004 01:20:02 +0000 (GMT) Received: from nic.ach.sch.gr (nic.sch.gr [194.63.238.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id C35B643D54 for ; Wed, 8 Dec 2004 01:19:59 +0000 (GMT) (envelope-from keramida@ceid.upatras.gr) Received: (qmail 17674 invoked by uid 207); 8 Dec 2004 01:19:57 -0000 Received: from keramida@ceid.upatras.gr by nic by uid 201 with qmail-scanner-1.21 (sophie: 3.04/2.19/3.81. Clear:RC:1(81.186.70.79):. Processed in 1.425538 secs); 08 Dec 2004 01:19:57 -0000 Received: from dialup79.ach.sch.gr (HELO gothmog.gr) ([81.186.70.79]) (envelope-sender ) by nic.sch.gr (qmail-ldap-1.03) with DES-CBC3-SHA encrypted SMTP for ; 8 Dec 2004 01:19:55 -0000 Received: from gothmog.gr (gothmog [127.0.0.1]) by gothmog.gr (8.13.1/8.13.1) with ESMTP id iB80vSJe087636; Wed, 8 Dec 2004 02:57:28 +0200 (EET) (envelope-from keramida@ceid.upatras.gr) Received: (from giorgos@localhost) by gothmog.gr (8.13.1/8.13.1/Submit) id iB80vRAp087631; Wed, 8 Dec 2004 02:57:27 +0200 (EET) (envelope-from keramida@ceid.upatras.gr) Date: Wed, 8 Dec 2004 02:57:27 +0200 From: Giorgos Keramidas To: Danny MacMillan Message-ID: <20041208005727.GA85587@gothmog.gr> References: <20041124092452.34756.qmail@web51603.mail.yahoo.com> <20041208003018.GA834@procyon.nekulturny.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20041208003018.GA834@procyon.nekulturny.org> cc: Mark Jayson Alvarez cc: freebsd-questions@freebsd.org Subject: Re: This is a cool shell prompt question X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 08 Dec 2004 01:20:02 -0000 On 2004-12-07 17:30, Danny MacMillan wrote: > On Wed, Nov 24, 2004 at 02:24:51AM -0700, Mark Jayson Alvarez wrote: > > I'm just wondrin if its possible for me to run applications at boot > > time but on another terminal. I find it cool to have a huge digital > > clock (grdc) running on background so that I can just shift to > > another terminal whenever I want to know the time. Actually, all I > > really want is a clock that is continuously ticking whatever I may > > be doing(in terminal window). I've already learned how to set my > > prompt to multiple lines and also displaying my current working > > directory. But now, I want it even more informative displaying a > > ticking digital clock in my shell prompt like the one i'm seeing in > > my kde system tray right now. Is it possible?. Thanks. > > This is a job for GNU Screen! > > Actually, this is the least of screen's abilities, but it does give you > exactly what you want (plus more!) and it doesn't depend on what shell > or other program you are running in the terminal. > > 1. Install GNU Screen ( /usr/ports/misc/screen ) > 2. Create ~/.screenrc containing the following: > # Delta applied to /usr/local/etc/screenrc > > startup_message off > escape ^\\\ > defscrollback 2048 > hardstatus on > hardstatus alwayslastline > hardstatus string "%{.bW}%-w%{.rW}%n %t%{-}%+w %=%{..G} %H %{..Y} %Y/%m/%d %0c:%s " > nethack on > msgwait 1 > msgminwait 1 > > Most of this is optional; these are the settings I use. The most > important thing for the ticking clock are the hardstatus lines; the > longest has almost certainly wrapped. HEH :-) I used something similar for ages. In fact, I still have it in my .screenrc file, but commented out: caption always "%{= kf}%5n %t (%H) %=%Y-%m-%d %c:%s " HTH, Giorgos