Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 16 Nov 2003 10:45:06 +1030
From:      Malcolm Kay <malcolm.kay@internode.on.net>
To:        "Brunoc@quipo.it" <brunoc@quipo.it>, "Marty Landman" <MLandman@face2interface.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: how to map pfkeys to screen -r cmds
Message-ID:  <200311161045.06911.malcolm.kay@internode.on.net>
In-Reply-To: <047801c3abcf$484ea740$0dc35e3e@computer>
References:  <6.0.0.22.0.20031114190056.11752140@pop.face2interface.com> <047801c3abcf$484ea740$0dc35e3e@computer>

next in thread | previous in thread | raw e-mail | index | archive | help
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"



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200311161045.06911.malcolm.kay>