Thread View: comp.terminals
3 messages
3 total messages
Started by Tim Morris
Tue, 27 Oct 1992 14:04
How to listen to my terminal?!
Author: Tim Morris
Date: Tue, 27 Oct 1992 14:04
Date: Tue, 27 Oct 1992 14:04
27 lines
1308 bytes
1308 bytes
Hi all,
I'm a bit of a newbie when it comes to VT100 programming and I'm
having a few problems which someone might be able to help me out with.
What I want to do is interrogate the terminal to find the position of the
cursor. I do this by sending:
ESC [ 6 n
And the terminal responds with (for example):
ESC [ 1 ; 1 2 R
This means the cursor is on line 1, column 12. No problemo. But what
happens if the guy using the terminal is holding down the "1" key?
I get from the terminal:
ESC 1 [ 1 1 ; 1 2 1 R
- - -
As you can see, the "1"'s from the user (printed here with a dash under
them) are getting mixed into the terminal's response to my command, and
I decode that to line 11, row 121! So how am I supposed to seperate
what the user types with the terminal's response? Is there a better
way of doing this? Help!
Thanks in advance,
Tim Morris.
Re: How to listen to my terminal?!
Author: Elizabeth Haley
Date: Tue, 27 Oct 1992 19:36
Date: Tue, 27 Oct 1992 19:36
27 lines
1588 bytes
1588 bytes
u895174@bruny.cc.utas.edu.au (Tim Morris) writes: >I get from the terminal: > ESC 1 [ 1 1 ; 1 2 1 R > - - - Mant terminal have a code that the host can send to lock the keyboard. Send that, make your query, and then unlock it. >Thanks in advance, >Tim Morris. No problem. Now here's a question: is there a program that converts termcap entries into terminfo entries? When life seems to be getting you down... =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-==-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= ======David Charles Todd, tHE mAN wITH tHREE fIRST nAMES====== -------------------- David misses eBeth ---------------------- =-=-=-=-=-=-=-=-=-hacksaw@headcheese.daa.uc.edu=-=-=-=-=-=-=-= ...ask it why it is torturing geese reply to headcheese, not haley@husc. Thanks -- =---------------------------------------------------------------------------= =The author of this letter is a fabulously intelligent person and is very = =Silly. She is also remarkably well loved, by the author of this signature. = =---------------------------haley@husc9.harvard.edu-------------------------=
Termcap to Terminfo (Was Re: How to listen to my terminal?!)
Author: Paul Peterson
Date: Fri, 30 Oct 1992 00:59
Date: Fri, 30 Oct 1992 00:59
15 lines
1321 bytes
1321 bytes
In article <haley.720214568@husc11> Elizabeth Haley, haley@husc11.harvard.edu
writes:
>Now here's a question: is there a program that converts termcap
>entries into terminfo entries?
Yes there is. Try captoinfo(8). This is a standard unix utility. If you want
to go the other way (Terminfo to Termcap), use infocmp(8).
Hope this helps
Cheers.
--
_--_|\ Paul Peterson, P.Peterson@ccsd.uts.EDU.AU
/ \ Systems Support Section, Ph: +61 2 330 2131
\_.--._/ University of Technology, Sydney, (Internal: x2131)
v PO Box 123, Boadway, NSW, 2007, Australia. Fax: +61 2 330 1994
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads