From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,e67ce10cf3830252 X-Google-Attributes: gid1164f8,public From: simon@nenevr.demon.co.uk.NOJUNK (Simon Coombs) Subject: Re: VT420 Date: 1998/09/06 Message-ID: <6stp4v$f3s@nenevr.demon.co.uk>#1/1 X-Deja-AN: 388396264 X-NNTP-Posting-Host: nenevr.demon.co.uk:158.152.207.39 References: <35F07CE0.7C1D@earthlink.net> X-Complaints-To: abuse@demon.net X-Trace: news.demon.co.uk 905088335 nnrp-11:21338 NO-IDENT nenevr.demon.co.uk:158.152.207.39 Organization: Chattham, Connem & Runn Newsgroups: comp.sys.dec 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? >;)