1. NumPad Enter key on Win XP
- Posted by Marco Achury <achury at cantv?ne?> Aug 27, 2007
- 655 views
Dear Sirs Is the first time I'm using Euphoria on WinXp The ED problem with spaces in the path was solved, thanks Rob. Now I have also noted that the Enter key in the NumPad don't work on ED. The program key.ex when run with ex returns 13 in both Enter keys, but running with EXW or EXWC returns 13 in the "alphabetic enter" and returns 284 with the Numpad enter. Is the same for all of you? So the line 1248 in ED.EX was: }}} <eucode>if char = CR or char = 10 then</eucode> {{{ I changed to: }}} <eucode>if char = CR or char = 10 or char = 284 then</eucode> {{{ Now appears to work well. Please, now the people that uses Linux or plain DOS must to check if this change cause problems in other plataforms. Best regards +-+-+-+-+-+-+-+ Marco A. Achury Caracas, Venezuela +58-414-3142282
2. Re: NumPad Enter key on Win XP
- Posted by Marco Achury <achury at c?ntv.?et> Aug 27, 2007
- 619 views
I continue checking and note that also line 2277 in ed.exe must to changed to accept key 284 (NumPad Enter), may be there is other places in the program where user key is compared with CR variable, and you must to do similar corrections. Line 2277 is now:
elsif key = CR or key = 284 then
By sure other special keys reported as not working on exwc have diferent code that when working on ex.exe and you must to do similar corrections on ed.ex and other programs. +-+-+-+-+-+-+-+ Marco A. Achury Caracas, Venezuela +58-414-3142282
3. Re: NumPad Enter key on Win XP
- Posted by ChrisBurch2 <crylex at f?eeuk.co.u?> Aug 27, 2007
- 621 views
Marco Achury wrote: > > > I continue checking and note that also line 2277 in ed.exe > must to changed to accept key 284 (NumPad Enter), may be > there is other places in the program where user key is compared > with CR variable, and you must to do similar corrections. > > Line 2277 is now: > }}} <eucode> > elsif key = CR or key = 284 then > </eucode> {{{ > > > By sure other special keys reported as not working on exwc > have diferent code that when working on ex.exe and you must > to do similar corrections on ed.ex and other programs. > > > +-+-+-+-+-+-+-+ > Marco A. Achury > Caracas, Venezuela > +58-414-3142282 Hi Edita is a windows specific program, so proably doesn't need key translations. However, what I would probably do, to make this clear, is define constant NUM_PAD_ENTER = 284 at the top of the program, then, instead of the above use elsif key = CR or key = NUM_PAD_ENTER then If you want to do cross platform key entry stuff, then use the platform() function. http://euwiki.ayo.biz/Text_mode the euphoria wiki, is a good place to start, it includes a lot, but probably not all, key equivalencies. Chris ps, I still think euwiki is an under used snippet resource, post more!
4. Re: NumPad Enter key on Win XP
- Posted by Marco Achury <achury at ??ntv.net> Aug 27, 2007
- 614 views
ChrisBurch2 wrote: > > However, what I would probably do, to make this clear, is define > > constant NUM_PAD_ENTER = 284 > > at the top of the program, > > then, instead of the above use > > elsif key = CR or key = NUM_PAD_ENTER then > Early this morning I have uploaded an ed.ex to user contributions, now is in RDS web, but now I discover an error, I have uploaded an updated patched ed.ex, so please don't download the file and wait that RDS update the file in the web page. When you edit ed.ex and use the Esc E, the program launched with ex.exe, not exwc!!, so I thinked with this three small corrections was all fixed, but was not this way. I have submited a more complete correction (not sure if is the final one). This includes the NUM_PAD_ENTER variable as suggested by Chris, the variable has been defined as special key in the program. Linux, FreeBSD and plain DOS user may need to adjust the value of this variable. Also I want to suggest that the installer on Windows must to create a exw.bat to launch key.ex using windows interpreter, many people don't know that the key.ex program don't return the same codes on ex.exe and exwc.exe Best regards +-+-+-+-+-+-+-+ Marco A. Achury Caracas, Venezuela +58-414-3142282