Technical article 102158

Function keys in Merge DOS or Windows session don't work correctly.

OpenServer 5.0.0OpenServer 5.0.2

Written · Last revised

Problem

When a Merge DOS or Windows session is run, pressing <Alt><Ctrl><Fn>
does not switch multiscreens.  Pressing <Alt><Fn> does switch
multiscreens, but it causes a DOS or Windows application to not
function correctly.

When Windows is run the "<Alt>Fn4" should attempt to exit Windows, instead the multiscreen is changed to tty04.

Cause

When an SCO system boots, the multiscreen switch key sequence is <Alt><Fn>, until an X-server has started, which then sets the multiscreen switch key sequence to <Alt><Ctrl><Fn>.

The SCO multiscreen is designed to have each individual program on a multiscreen run its own screen switch processing, allowing each program to have its own private and potentially confusing screen-switching key sequence.

Because of this design and the confusion that it might cause, Merge was designed to use the SCO default system multiscreen switch key sequence, <Alt><Fn> at system boot and <Alt><Ctrl><Fn>. This is the same sequence as the SCO X-server when the SCO X-server is started.

Solution

Merge supplies a program, "/usr/bin/switchkey" to display and
change multiscreen settings.  This is identical to SCO's X-server
command "/usr/bin/X11/xswkey".  The arguments to set the multiscreen
switch screen key sequence are -a, -c and -s corresponding to <Alt>,
<Ctrl> and <Shift> and can be used separately or together.

To display the current setting of the multiscreen key sequence, use:

# switchkey

To set <Alt><Ctrl><Fn> as the multiscreen switch key sequence, use:

# switchkey -ca

To override the system multiscreen switch key sequence, <Alt><Ctrl>, with <Alt><Ctrl><Fn> on a system that never starts X-windows, create the following script, /etc/rc2.d/S99screen, as root user:

#!/bin/sh
# /etc/rc2.d/S99screen
# Set <Alt><Ctrl><Fn> as multiscreen switch key sequence.
# when system goes multiuser.
/usr/bin/switchkey -ca </dev/tty01> /dev/tty01 2>1&

Make sure that permission is set to 644 and owner is "root" and group is "sys".

See also

man(M) multiscreen

From the Xinuos technical article database, record 102158. Reproduced with permission. The original is at www.sco.com/ta/102158, which is reachable but blocked from search engines. Xinuos marks this article against a retired product line. That refers to the product’s lifecycle, not to whether the advice still works — plenty of it still applies to running systems.

Next step

Need this fixed rather than explained?

Tell us the release, what the system runs and what it is doing. We will reply by email with what we would do next.

  • You deal with the people who do the work
  • No obligation, and no upgrade required before we will help
  • We tell you plainly if something is not worth doing

Send an enquiry

We reply by email. If a server is down, say so in the first line. You can also write to help@scoexpert.com.