Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!crdgw1!ge-dab!tarpit!bilver!bill From: bill@bilver.uucp (Bill Vermillion) Newsgroups: comp.terminals Subject: Re: ESC key on VT200 and VT300 terminals. Message-ID: <1991Apr23.054148.3339@bilver.uucp> Date: 23 Apr 91 05:41:48 GMT References: <9104172248.AA10611@cwns9.INS.CWRU.Edu> <15892@smoke.brl.mil> Organization: W. J. Vermillion - Winter Park, FL Lines: 21 In article <15892@smoke.brl.mil> gwyn@smoke.brl.mil (Doug Gwyn) writes: >In article davis@pacific.mps.ohio-state.edu (John E. Davis) writes: >>Just use ^[ for escape-- it always works on any terminal by definition. >While that probably works on most ASCII terminals, it is not that way >"by definition", but rather a side effect of the implementation of the >control-key function on such terminals. Why do you say that it is not that way by definition. I understood the "definition" is that the Control key is just to strips the 3 most significant bits, therefore control [ will always give ESC. I have seen some crude terminal emulators that subtract from the ascii value instead of masking but that gives differnent values for control chars. eg: ctl A and ctl a map differently that way. But I HAVE seen that done. -- Bill Vermillion - UUCP: uunet!tarpit!bilver!bill : bill@bilver.UUCP