Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
From: simon@nenevr.demon.co.uk.NOJUNK (Simon Coombs)
Subject: Re: VT420
Date: 1998/09/06	[thread overview]
Message-ID: <6stp4v$f3s@nenevr.demon.co.uk> (raw)
In-Reply-To: 35F07CE0.7C1D@earthlink.net

Don Lyon (dlrd@earthlink.net) wrote:

> I have to read characters displayed on the screen through the Comm 2
> port in the back of VT420.  Is this possible?  The VT420 is connected to
> a serial port of a small hardware system which is based on a popular
> microcontroller.

What you could do is treat the device on Comm2 as a printer; go into the 
GLOBAL settings of the terminal, and make sure that middle box says 
S1=Comm1. Then go into the Printer setup screen, and setup the port 
characteristics so that it can talk to your device. 

You can go three ways from here: [1]

  * Dump the ENTIRE screen to the device. Do this by hitting the 'Print' key.

  * Get the host (on Comm1) to download the information through your 
    terminal. Information sent will not show on the VT's screen.

    To turn on printer controller mode, the 
    host should send:                           CSI 5 i
    to turn off:                                CSI 4 i    
        
    Alternatively, you can just go into Printer Setup again, and change 
    from Normal Print Mode to Controller Mode. Note that this is one-way 
    communication; if you want the host to see what the device is 
    responding with (if at all), make sure that you have 'Printer To Host'
    selected in the printer setup screen.

  * To print a selected number of lines, make the host send the following
    to your terminal:

    Tell the terminal the region to print:      CSI topline ; bottomline r
    eg, to select lines 5 to 10: ^[[5;10r

    Tell the terminal to print only the
    things that are in that region:             CSI ? 19 l

    Tell the terminal to print it:              CSI 0 i

Personally, I'd go for the second option. No fiddling about with the 
terminal settings each time you want to download stuff, and the host 
does all the work for you! 

Good luck!

Simon.

-- 
Simon Coombs.
[1] Doesn't Bill Clinton have a sign on his desk with this written on? >;)



      reply	other threads:[~1998-09-06  4:00 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-09-04  4:00 VT420 Don Lyon
1998-09-06  4:00 ` Simon Coombs [this message]
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox