dysinfo examples

The following dysinfo examples are for Wyse-60 with three screen sessions.

wy60|wyse60|wyse model 60,
dsks=^A`^M|Shift-F1|,
dsks=^Aa^M|Shift-F2|,
dsks=^Ab^M|Shift-F3|,
dskc=\200|Ctrl-F1|,
dske=\201|Ctrl-F2|\Ew0\E+,
dskl=\202|Ctrl-F3|,
dsp=\Ew0|\E+,
dsp=\Ew1|\E+,
dsp=\Ew2|\E+,

With this entry:

  • Shift-F1 through Shift-F3 are used for selecting screens 1 through 3.
  • Ctrl-F1 creates a new screen.
  • Ctrl-F2 sends: Esc w 0 Esc + to the screen (switching to window 0 and clearing the screen) and then ends dscreen.
  • Ctrl-F3 lists the keys and their functions.

Each time a physical screen is used for a new screen, the sequence Esc + will be sent to the terminal, which will clear the screen.

The following example is for a Wyse-60 with three screen sessions, but one of the screens is on a second computer communicating through the second serial port on the terminal:

wy60-1|wyse60-1|wyse model 60 - first serial port
dsks=^A`^M|Shift-F1|,
dsks=^Aa^M|Shift-F2|,
dsks=^Ab^M|Shift-F3|\Ed#^Ab\r^T\Ee9,
dskc=\200|Ctrl-F1|,
dske=\201|Ctrl-F2|\Ed#\201^T\Ew0\E+,
dskl=\202|Ctrl-F3|,
dsp=\Ew0|\E+,dsp=\Ew1|\E+,
wy60-2|wyse60-2|wyse model 60 - second serial port
dsks=^A`^M|Shift-F1|\Ed#^A`\r^T\Ee8,
dsks=^Aa^M|Shift-F2|\Ed#^Aa\r^T\Ee8,
dsks=^Ab^M|Shift-F3|,
dskc=\200|Ctrl-F1|,
dske=\201|Ctrl-F2|\Ed#\201^T\Ew0\E+,
dskl=\202|Ctrl-F3|,
dsp=\Ew2|\E+,

dscreen must be run on both computers, with terminal type wy60-1 on the first computer and terminal type wy60-2 on the second computer (using the -t option to dscreen). The wy60-1 entry will be examined first.

The first two key entries are unchanged from the original wy60 entry. The third key, however, has type dskb, which means block both input and output. When this key is pressed, the sequence:

Esc d # Ctrl-A b CR Ctrl-T Esc e 9

is sent to the terminal; after this output is blocked and dscreen continues scanning input for key sequences but discards all other input.

The sequence Esc d # puts the terminal in transparent print mode, which echoes all characters up to a Ctrl-T out through the other serial port.

The characters Ctrl-A b CR are sent out the other serial port, informing the dscreen process on the other computer that it should activate the window associated with the Shift-F3 key.

The Ctrl-T key sequence exits the transparent print mode. The Esc 9 key sequence causes the terminal to switch to the other AUX serial port for data communications.

At this point, the other computer takes over, sends an Esc w 2 to switch to the third physical screen, and then resumes normal communication.

The wy60-2 entry follows the same general pattern for keys Shift-F1 and Shift-F2:

  • Switch to transparent print mode
  • Send function key string to other computer
  • Switch transparent print off
  • Switch to the other serial port

The end key, Ctrl-F2, works the same for both computers; it sends the end key sequence to the other computer through the transparent print mechanism, switches the terminal to window 0, clears the screen, then exits.