[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference noted::hackers_v1

Title:-={ H A C K E R S }=-
Notice:Write locked - see NOTED::HACKERS
Moderator:DIEHRD::MORRIS
Created:Thu Feb 20 1986
Last Modified:Mon Aug 03 1992
Last Successful Update:Fri Jun 06 1997
Number of topics:680
Total number of notes:5456

628.0. "XON and XOFF" by CURIE::DECARTERET (Cause I gotta have FAITH) Sun Dec 13 1987 15:46

    Does anyone know the escape sequences for XON and XOFF?
    
    		-=*>Jason<*=-
T.RTitleUserPersonal
Name
DateLines
628.1JON::MORONEYQuestion Authority (and the Authorities will question you)Sun Dec 13 1987 16:124
They aren't escape sequences.  They are control codes.  XOFF is control-S
and XON is control-Q.

-Mike
628.2CURIE::DECARTERETGarfieldSun Dec 13 1987 18:188
    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.3CSSAUS::HUNTERMonkey with a diagnostic trackSun Dec 13 1987 19:447
    
    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.4ASCII tables are fun 2 readYGDRSL::SANTIAGODrink deep, or taste notSun Dec 13 1987 19:505
    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.5cursor disappearing after game.CADSE::WONGThe Mad Chinaman of CADSE/CTCMon Dec 14 1987 02:4410
    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>[?25hPILOU::BONGARTZIn a maze of little twisting passages,all alikeMon Dec 14 1987 05:0118
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::BEATTIEBut, Is BLISS ignorance?Mon Dec 14 1987 13:188
    <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.8XOFF != SET TERM/SPEED=WARP_DRIVEJON::MORONEYQuestion Authority (and the Authorities will question you)Mon Dec 14 1987 15:507
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.9PSW::WINALSKIPaul S. WinalskiTue Dec 15 1987 20:336
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.10CURIE::DECARTERETGarfieldWed Dec 16 1987 00:127
    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.11Now I understand, but do you?TALLIS::ILESMike Iles - Advanced Vax DevelopmentWed Dec 16 1987 15:3715
    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.12Play some games....SNDCSL::SMITHWilliam P.N. (WOOKIE::) SmithWed Dec 16 1987 17:5710
    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