From owner-freebsd-questions Thu Nov 2 14:25:45 2000 Delivered-To: freebsd-questions@freebsd.org Received: from athserv.otenet.gr (athserv.otenet.gr [195.170.0.1]) by hub.freebsd.org (Postfix) with ESMTP id 8E87C37B479 for ; Thu, 2 Nov 2000 14:25:40 -0800 (PST) Received: from hades.hell.gr (patr530-a221.otenet.gr [212.205.215.221]) by athserv.otenet.gr (8.10.1/8.10.1) with ESMTP id eA2MORo24364; Fri, 3 Nov 2000 00:24:27 +0200 (EET) Received: (from charon@localhost) by hades.hell.gr (8.11.1/8.11.1) id eA2MP9n05669; Fri, 3 Nov 2000 00:25:09 +0200 (EET) Date: Fri, 3 Nov 2000 00:25:08 +0200 From: Giorgos Keramidas To: j mckitrick Cc: flag , Dima Dorfman , freebsd-questions@FreeBSD.ORG Subject: Re: ctrl key to show current system operation? Message-ID: <20001103002508.C4698@hades.hell.gr> References: <20001101004800.33CE61F34@static.unixfreak.org> <20001101220922.A8340@dogma.freebsd-uk.eu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.4i In-Reply-To: <20001101220922.A8340@dogma.freebsd-uk.eu.org>; from jcm@FreeBSD-uk.eu.org on Wed, Nov 01, 2000 at 10:09:22PM +0000 X-PGP-Fingerprint: 3A 75 52 EB F1 58 56 0D - C5 B8 21 B6 1B 5E 4A C2 X-URL: http://students.ceid.upatras.gr/~keramida/index.html Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Wed, Nov 01, 2000 at 10:09:22PM +0000, j mckitrick wrote: > On Wed, Nov 01, 2000 at 08:55:15PM +0100, flag wrote: > | > | I tried pressing Ctrl+t or Ctrl+Shift+T but nothing happens...=P > | What's wrong? > > You need to do it when the terminal is busy doing something. If you have > the prompt, then it won't do anything. Try ssh to a slow connection, or > maybe some file operation that takes a long time. The standard cat(1) will do just fine: % cat ^T load: 1.03 cmd: cat 5660 [ttyin] 0.00u 0.00s 0% 100k The modern shells (like GNU bash, or tcsh) will try to capture terminal keys as they're pressed, and interpret them one by one. GNU bash uses the readline library, tcsh uses -- if I recall it correctly -- libtermcap, to handle terminal keys. When you are at the prompt, the terminal is not in it's `normal' mode, as when it's running a cat(1) command. -- Giorgos Keramidas, < keramida @ ceid . upatras . gr > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message