From owner-freebsd-questions@FreeBSD.ORG Sat Nov 15 16:15:16 2003 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 9C3C116A4CE for ; Sat, 15 Nov 2003 16:15:16 -0800 (PST) Received: from smtp1.adl2.internode.on.net (smtp1.adl2.internode.on.net [203.16.214.181]) by mx1.FreeBSD.org (Postfix) with ESMTP id 021FC43F85 for ; Sat, 15 Nov 2003 16:15:15 -0800 (PST) (envelope-from malcolm.kay@internode.on.net) Received: from beta.home (ppp137-199.lns1.adl2.internode.on.net [150.101.137.199])hAG0F7Tn082178; Sun, 16 Nov 2003 10:45:09 +1030 (CST) Content-Type: text/plain; charset="iso-8859-1" From: Malcolm Kay Organization: At home To: "Brunoc@quipo.it" , "Marty Landman" Date: Sun, 16 Nov 2003 10:45:06 +1030 User-Agent: KMail/1.4.3 References: <6.0.0.22.0.20031114190056.11752140@pop.face2interface.com> <047801c3abcf$484ea740$0dc35e3e@computer> In-Reply-To: <047801c3abcf$484ea740$0dc35e3e@computer> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Message-Id: <200311161045.06911.malcolm.kay@internode.on.net> cc: freebsd-questions@freebsd.org Subject: Re: how to map pfkeys to screen -r cmds 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: Sun, 16 Nov 2003 00:15:16 -0000 On Sun, 16 Nov 2003 09:45, brunoc@quipo.it wrote: > On Saturday, November 15, 2003,Marty Landman wrote: > >Thought I recently read something in the Handbook about being able to > >switch screens easily using the pfkeys but didn't see the how of it. T= oday > >learned the screen cmd following a tip from the fbds Diary but the > >usefulness would be greatly enhanced with some quick way to go through= the > >screens. How hard is this effect to set up, either with or w/o screens= ? > >Also I'm ssh'ing into my session in case that matters. > > > >Marty Landman Face 2 Interface Inc 845-679-9387 > >Sign On Required: Web membership software for your site > >Make a Website: http://face2interface.com/Home/Demo.shtml > > Marty, > > to switch between screens (there are eight pre-configured > virtual screens on FreeBSD,named /dev/stty0 to /dev/stty7, > stty0 being also the console output for system messages), I must say you seem to have a rather unusual FreeBSD setup. On my 4.7-STABLE machine I believe the default number of=20 virtual consoles is 16 with the first 12 having by default /dev entries /dev/ttyv0 to /dev/ttyvb; certainly not /dev/stty0 ... and are selectable with Alt-f1 to Alt-f12 when active. By default the first 8 consoles are activated for login in /etec/ttys. (When inside X you need Ctl-Alt-f1 etc. otherwise the combination gets captured by X) > you use the key combination Alt-Ctrl-F1 to Alt-Ctrl-F8, > or Ctrl-F1 to Ctrl-F8 (the latter ones do not work if you want > to switch to screen 0-8 while you are in your desktop > environment or window manager). Alt-f1 etc; not Ctl-f1 etc. > If you started X-window,by using a window manager > or a desktop environment,normally it uses virtual screen > #10 (you can change the virtual screens in the /etc/ttys file). X usually starts on the first inactive virtual terminal, which usually is= =20 /dev/ttyv8. If started through ttys then it actually ignores the virtual=20 terminal number in the entry. In this case you switch to the X display with Ctl-Alt-f9 or simply Alt-f9= =2E Virtual consoles not otherwise active can be used for input/output consoles for your own programs.=20 Malcolm Kay > "freebsd-questions-unsubscribe@freebsd.org"