1. Hello.ex F1 and F2 behavior
- Posted by Anthill Nov 02, 2010
- 1806 views
I am going through the tutorial applications and the first one I try does not quite work as expected. When running eui hello.ex the tutorial clearly says that I can:
7: -- To run this tutorial, 8: -- Press Enter to execute the highlighted Euphoria statement. 9: -- Press F1 to flip to the main output screen. 10: -- Press F2 to flip back to this trace screen. 11: -- Read the comments as you go.
When pressing F1 nothing appears to happen. When pressing F2 the terminal exits. That means I cannot flip back and forth. This might be a problem when debugging. So maybe this is my terminal application (TERM=ansi) is the real problem.
I am also curious if it is possible to set break points while running trace and issues related to includes. Well perhaps that is a topic for another time.
Thanks for any advice.
2. Re: Hello.ex F1 and F2 behavior
- Posted by irv Nov 03, 2010
- 1687 views
I can confirm that this doesn't work properly on most linux terminals. If you use kterm, it seems ok.
3. Re: Hello.ex F1 and F2 behavior
- Posted by jeremy (admin) Nov 03, 2010
- 1651 views
Maybe we need to create a different set of shortcuts? Seems that the window manager and terminal program on some Linux clients are eating F1, F2, ... keystrokes.
Jeremy
4. Re: Hello.ex F1 and F2 behavior
- Posted by jimcbrown (admin) Nov 04, 2010
- 1595 views
Maybe we need to create a different set of shortcuts? Seems that the window manager and terminal program on some Linux clients are eating F1, F2, ... keystrokes.
Jeremy
Agreed.
This is probably happening because we don't deal with terminfo (or the even older cousin, termcap) to figure out which set of escape sequences correspond to which set of extended keys. (ncurses used to do this for us.)
Most interactive console programs (such as vi, lynx, etc) support using designated ascii keys as replacements for this reason. (e.g. h,j,k,l functioning as LEFT,DOWN,UP,RIGHT).
5. Re: Hello.ex F1 and F2 behavior
- Posted by jimcbrown (admin) Dec 05, 2010
- 1538 views
We now use '1', '2', and 'j' for F1, F2, and DOWN_ARROW.
Maybe we need to create a different set of shortcuts? Seems that the window manager and terminal program on some Linux clients are eating F1, F2, ... keystrokes.
Jeremy
Agreed.
This is probably happening because we don't deal with terminfo (or the even older cousin, termcap) to figure out which set of escape sequences correspond to which set of extended keys. (ncurses used to do this for us.)
Most interactive console programs (such as vi, lynx, etc) support using designated ascii keys as replacements for this reason. (e.g. h,j,k,l functioning as LEFT,DOWN,UP,RIGHT).
6. Re: Hello.ex F1 and F2 behavior
- Posted by dukester Dec 06, 2010
- 1483 views
We now use '1', '2', and 'j' for F1, F2, and DOWN_ARROW.
"now" - as in "Trace in V4.0" ?
Duke
7. Re: Hello.ex F1 and F2 behavior
- Posted by jimcbrown (admin) Dec 06, 2010
- 1499 views
We now use '1', '2', and 'j' for F1, F2, and DOWN_ARROW.
"now" - as in "Trace in V4.0" ?
Duke
Yes. This will be included in RC2 (and is already in the latest eubins).