Euphoria Ticket #915: Backspace no longer works at console prompts

In 4.1.0 (testing on Windows 32-bit), you can longer backspace when typing in text at a console prompt (prompt_string or prompt_number). So you can't fix your typos. Changes to gets()?

Details

Type: Bug Report Severity: Normal Category: Interpreter
Assigned To: SDPringle Status: Fixed Reported Release: 4.1.0
Fixed in SVN #: View VCS: none Milestone: 4.0.6

1. Comment by katsmeow Feb 12, 2015

I have the same problems with gets(), changed from gets() to get_key() and wrote my own backspace. See forum post https://www.youtube.com/watch?v=8ox1Cb9uoy8

2. Comment by ne1uno Feb 12, 2015

bs did work in 4.04 at some point

3. Comment by DerekParnell Aug 02, 2015

However, the left-arrow key does act like a backspace. Curious.

4. Comment by achury Oct 02, 2015

Something is bad with keyboard exploration codes...

http://openeuphoria.org/forum/128370.wc?last_id=128781

5. Comment by dborder Jan 31, 2016

The ifdef statement at line 92 of be_runtime.c should be ifdef EWINDOWS not ifdef WINDOWS. This error causes BS to be set to the unix value 127 not the windows value 8. The missing E also occurs on line 5963 of be_runtime.c, line 2840 of be_machine.c, lines 118 and 173 of be_alloc.c, and line 1473 of be_rterror.c

6. Comment by SDPringle Feb 01, 2016

See: hg:euphoria/rev/0f7fcd26594e

changeset: 6414:0f7fcd26594e branch: 4.0 tag: tip user: Shawn David Pringle B.Sc. <shawn.pringle@gmail.com> date: Mon Feb 01 22:24:56 2016 -0300 files: source/be_machine.c source/be_runtime.c description:

  • maybe fixes ticket 915

7. Comment by jimcbrown Feb 02, 2016

I'm not sure about your commits, Shawn. Why have an #ifdef or an #ifndef without a condition following it? Would this affect nix? Have you regression tested non-Windoze to ensure that those platforms have not broke from this change?

8. Comment by SDPringle Feb 02, 2016

See: hg:euphoria/rev/03f5da64c1e8

changeset: 6415:03f5da64c1e8 branch: 4.0 parent: 6413:869af8eba03f user: Shawn David Pringle B.Sc. <shawn.pringle@gmail.com> date: Tue Feb 02 09:05:21 2016 -0300 files: source/be_machine.c source/be_runtime.c description:

  • maybe fixes ticket 915. changed WINDOWS to EWINDOWS

9. Comment by SDPringle Feb 02, 2016

yes. You're right. I am doing it again

10. Comment by SDPringle Feb 02, 2016

Change set 0f7fcd26594e maybe fixes ticket 915. change WINDOWS to EWINDOWS.

11. Comment by ne1uno Feb 02, 2016

I haven't run all the tests, but bug915.ex from last year with get_key() works now. I didn't try to verify the trace console bug Kat mentioned. the left arrow still works as BS may not be ideal.

there does seem to be quite a few more warnings in the build, of the unused var and cast pointer to int type things. I think because I'm using gcc 4.8 which has more default warnings turning on.

also this error from config, not sure if that will screwup the tests or coverage.

Configuring to build for target: WINDOWS / default platform 
ln: creating symbolic link `../tests/ecp.dat' to `../eu4/nb/build40/ecp.dat': No such file or directory 

Euphoria Interpreter v4.0.6 development 
   Windows, Using System Memory 
   Revision Date: 2016-02-02 12:11:09, Id: 6421:f6f689cc03c2 

12. Comment by SDPringle Feb 03, 2016

ne1uno,

the symlink is to make the tests use the ecp.dat that you generate when making the tool kit. The build directory is made in the configure script and the symbolic links can be created as long as the destination directory exists. I don't understand why this is happening on your system.

13. Comment by SDPringle Feb 03, 2016

I am marking this fixed. The issue with the symlink is another issue.

14. Comment by SDPringle May 04, 2018

See: hg:euphoria/rev/5b8912a4a2cf

changeset: 6468:5b8912a4a2cf branch: 4.0 user: Shawn David Pringle B.Sc. <shawn.pringle@gmail.com> date: Fri May 04 10:00:59 2018 -0300 files: docs/release/4.0.6.txt description:

  • updated the release notes. ticket 831, ticket 907, ticket 803, ticket 853, ticket 928, ticket 938, ticket 752, ticket 915, ticket 948, ticket 921

Search



Quick Links

User menu

Not signed in.

Misc Menu