[vconsole-discuss] Re: Re: What is the current status of virtual

2007-04-06 Thread LingBo Tang
Nigel Smith wrote:
> Lingbo, I'm glad to hear that in the new (next?) version of the code,
> it will not be required to release the 'Alt', before pressing another
> function key, to select the next virtual console.
> 
> When I'm using Linux in text mode, I like to be able to hold the 'Alt' key 
> down
> with a finger on my left hand, and then use a finger on my right hand to
> press the Function keys, and take a look at each of the consoles in turn.
> It would be great if I could do the same thing with Solaris.
> 
> And yes, I think that using 'Alt-h' to get to '/dev/console' needs to change.
> My advise would be to use 'Alt-F1' to get '/dev/console' as the default.
> But then I think once people get familiar with the idea that '/dev/console'
> is special, they may want to move it to another key, like 'Alt-F12'.
> So I think you need to make the key used configurable in some way.
>

The usage of "Alt-h" will be removed in next version because the 1st
virtual console stand for /dev/console now. You can use "Alt-F1" for
system console.
"Alt-h" is a sequence in old solaris (maybe 2.5 or 2.6), and we are
considering the compatibility with other systems, link Linux now.
For instance, "Alt-F7" will go to the 7th console, "AltGraph-F4" goes
to the 14th console if it's created. "Alt-l" is used to invoke last
accessed console etc. All of them will be same as Linux.

For remapping the hot key sequence, you can refer to the usage of
loadkeys(1) and dumpkeys(1), which have same semantics as Linux from my
understanding.

> Also, will we be able to configure how many virtual consoles are available?
> I would like the option of more than 6 virtual console, as there are 
> usually more function keys available.
> 

Sure, you can configure the active number of virtual consoles.

> Another nice feature I've seen on Linux, is the ability to configure
> it to display syslog output on one of the virtual consoles.
> Will it be possible to do something like this with Solaris?

If you can describe more details in this function as you expect,
we may think about it. Thanks!

Regards,
Lingbo




[vconsole-discuss] Re: Re: What is the current status of virtual

2007-04-06 Thread Riny Qian


Shawn Walker wrote:
> On 05/04/07, LingBo Tang  wrote:
> 
>> > Another nice feature I've seen on Linux, is the ability to configure
>> > it to display syslog output on one of the virtual consoles.
>> > Will it be possible to do something like this with Solaris?
>>
>> If you can describe more details in this function as you expect,
>> we may think about it. Thanks!
> 
> 
> I can field this question I think.
> 
> Many Linux distributions allow you to redirect the system messages you
> normally get spammed with (such as unknown hsot name "loghost", etc.)
> to a specific console. That way you can essentially "watch" what goes
> into /var/log/messages on a Linux box on a specific virtual console
> instead of having that output (rather inconveniently) go to the same
> console as the one you are using (causing your vi session to be
> annoyingly interrupted as an example).
> 

On Solaris, by default, the syslog info will always go to the system
console (/dev/console, also namded as "the first virtual console"),
thus there'll be no the problem you mentioned above.

Of course, you can configure it to go onto any other of the virtual
consoles. Please see syslogd(1M).

Riny




[vconsole-discuss] Re: Re: What is the current status of virtual

2007-04-06 Thread LingBo Tang
David Bustos wrote:
> Quoth LingBo Tang on Fri, Apr 06, 2007 at 10:26:43AM +0800:
>> The usage of "Alt-h" will be removed in next version because the 1st
>> virtual console stand for /dev/console now. You can use "Alt-F1" for
>> system console.
>> "Alt-h" is a sequence in old solaris (maybe 2.5 or 2.6), and we are
>> considering the compatibility with other systems, link Linux now.
>> For instance, "Alt-F7" will go to the 7th console, "AltGraph-F4" goes
>> to the 14th console if it's created. "Alt-l" is used to invoke last
>> accessed console etc. All of them will be same as Linux.
> 
> I don't recall Alt-L returning to the last console in Linux.  Do you
> have a reference to some documentation?
> 

Linux has "Last_Console" usage, which is not enabled by default now I
think but the user can enable it.
In virtual console, we implement this function by "Alt-l/Alt-UPARROW"
for last accessed console.
And we added "Alt-p" as same as "Alt-LeftArrow" for previous
console; added "Alt-n" as same as "Alt-RightArrow" for next console.

There is an old documentation for linux:
http://www.linuxjournal.com/article/1080

Regards,
Lingbo