----Original Message---- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Mark Johnson Sent: Wednesday, December 21, 2005 9:24 PM To: [email protected] Subject: Re: [U2] Using Esc
> ----- Original Message ----- > From: "Jacques G." <[EMAIL PROTECTED]> > To: <[email protected]> > Sent: Tuesday, December 20, 2005 11:58 AM > Subject: Re: [U2] Using Esc > > >>> I am sick of having to >>> write filter routines for >>> the control characters. It doesn't look good to the >>> users either. >> >> On the plus side, many terminal emulators can have >> their keyboard re-programmed so that when you press a >> key it sends the key that you want. I've used this >> feature to send the proper arrow escape sequences on >> bad VT220 emulators. Once the terminal emulator is >> properly configured the setup file for it can become >> part of the standard installation procedure for the >> user. So if the escape key sends CHAR(251), it can be >> changed on the emulator without writing new code. >> >> I know that Hostaccess and Hummingbird allow for >> keyboard re-programming. I've used Accuterm before >> but don't remember if you can re-program its keyboard >> as well. >> >> On my emulator, I've configured F12 to do: S^M so >> that when I step through the debugger I only need to >> press one key. > > This is exactly what I'm talking about. No offense to whomever wrote > the keyboard mapping program, but it deviates from our real goals of > application programming. > My 1 cent. Not at all. There are many situations, especially when you start dealing with keyboards/drivers from locales other than your own (ie, internationalization), where it is most effective to use keyboard mapping to make the user's environment look something like what the app expects. But in U2 that can also mostly be handled by defining a new termtype with correct terminfo bindings. The cases which cannot be handled this way include emulators and/or keyboard drivers that send the same sequence for more than one "key" (eg, TAB and CTRL-TAB; or SHIFT-TAB and CTRL-SHIFT-TAB). There's really nothing you can do about that except to reassign the sequence the emulator or driver sends. -Keith ------- u2-users mailing list [email protected] To unsubscribe please visit http://listserver.u2ug.org/
