T.R | Title | User | Personal Name | Date | Lines |
---|
628.1 | | JON::MORONEY | Question Authority (and the Authorities will question you) | Sun Dec 13 1987 13:12 | 4 |
| They aren't escape sequences. They are control codes. XOFF is control-S
and XON is control-Q.
-Mike
|
628.2 | | CURIE::DECARTERET | Garfield | Sun Dec 13 1987 15:18 | 8 |
| I realize that. I'm making a program that draws a bunch of circles
on the screen. Since I am at home I want to put an XOFF at the
beginning of the file and an XON at the end so it will draw the
circles really fast. I don't know how to put control codes into
a file, or if you even can. Any suggestions?
-=*>Jason<*=-
P.S. Thanks for the quick reply!
|
628.3 | | CSSAUS::HUNTER | Monkey with a diagnostic track | Sun Dec 13 1987 16:44 | 7 |
|
To add control codes in EDT type
<Gold>19<Gold><KP3> - This adds XOFF (DC3)
<Gold>17<Gold><KP3> - This adds XON (DC1)
Warwick.
|
628.4 | ASCII tables are fun 2 read | YGDRSL::SANTIAGO | Drink deep, or taste not | Sun Dec 13 1987 16:50 | 5 |
| XOFF, or ^S, is just that: CONTROL and S. The CONTROL key masks
off bits 6 & 7, thus ^S becomes (0x53 & 0x3F, or 0x13).
You can write a ^S by doing printf("%c",0x13); however, I think
you're going to be disappointed with the results.
|
628.5 | cursor disappearing after game. | CADSE::WONG | The Mad Chinaman of CADSE/CTC | Sun Dec 13 1987 23:44 | 10 |
| Oh, while we're on the topic of special control sequences...
There's some game that is being tested, and one of the things it
does is turn the cursor "invisible". Could someone please tell
me the EDT or character sequence that turns the cursor back on?
Thanks.
Benson
|
628.6 | <ESC>[?25h | PILOU::BONGARTZ | In a maze of little twisting passages,all alike | Mon Dec 14 1987 02:01 | 18 |
| re: .5
> me the EDT or character sequence that turns the cursor back on?
For the VT200 series, to turn the cursor on would be
<CSI>?25h , and to turn it off <CSI>?25l (DECTCEM)
I dont't remember what code <CSI> is, but you can use
<ESC>[ instead (same as CSI in 7-bit mode).Enter that
under EDT with either:
<ESC><ESC>[?25h
( hit <ESC> or ^3 twice to produce one <ESC> )
or
<GOLD>27<GOLD><KP3>[?25h
Marc.
|
628.7 | <CSI> is... | DPDMAI::BEATTIE | But, Is BLISS ignorance? | Mon Dec 14 1987 10:18 | 8 |
| <CSI> stands for the character %x9B for a terminal set to 8 bit,
and the two character sequence %x1B %x5B (<ESC>[) for a terminal
set to seven bit. To generate CSI in EDT:
[GOLD]155[GOLD][SPECINS]
-- Brian
|
628.8 | XOFF != SET TERM/SPEED=WARP_DRIVE | JON::MORONEY | Question Authority (and the Authorities will question you) | Mon Dec 14 1987 12:50 | 7 |
| re .2:
Putting XON and XOFF into a file won't make your circles print any faster,
they'll just prevent the user from typing anything that may mess them up.
(such as ^Y)
-Mike
|
628.9 | | PSW::WINALSKI | Paul S. Winalski | Tue Dec 15 1987 17:33 | 6 |
| RE: .2
What makes you think that the presence of CTRL/S or CTRL/Q will have any
effect whatsoever on the speed with which the terminal writes your circles?
--PSW
|
628.10 | | CURIE::DECARTERET | Garfield | Tue Dec 15 1987 21:12 | 7 |
| See, the program writes circles to the screen. It does this really
slow. So I want to put a ^S in the program before the part when
it starts to draw so the [WAIT] light goes on and it holds the screen.
Then when it gets to the end of the program I want it to do a ^Q
so the circles will draw from memory, thus it's faster.
-=*>Jason<*=-
|
628.11 | Now I understand, but do you? | TALLIS::ILES | Mike Iles - Advanced Vax Development | Wed Dec 16 1987 12:37 | 15 |
| If you send an XOFF to a terminal you're turning off the keyboard,
not the screen. When you hit the XOFF key on the keyboard you are
sending it to the interface device in the host cpu or server to
tell it to stop output. When you hit the noscroll key or whatever,
you are freezing the display, but if the terminal has an input buffer
then it will send the XOFF to the host when the buffer reaches a
fill limit. Does this all make sense?
So you need an escape sequence in your file of screen data which
will inhibit the display of the terminal whilst its data input buffer,
assuming it has one, can continue tosuck in data. I have no idea
whether such a sequence exists for any terminal.
-Mike-
|
628.12 | Play some games.... | SNDCSL::SMITH | William P.N. (WOOKIE::) Smith | Wed Dec 16 1987 14:57 | 10 |
| One way to do what you want would be to set the writing
color to background, draw the circle, and then change the color
of the resulting circle from background (you can't see it) to
foreground (suddenly you can see it).
Another way would be to write a macrograph so the entire circle
would be drawn at once. Then again, are you synthesizing the circle
by yourself or using ReGIS? ReGIS should be plenty fast enuf...
Willie
|