Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Delete key doesn't work in iex #3471

Closed
dwahyudi opened this issue Jul 11, 2015 · 13 comments
Closed

Delete key doesn't work in iex #3471

dwahyudi opened this issue Jul 11, 2015 · 13 comments

Comments

@dwahyudi
Copy link

When i 'm inside iex, pressing Delete key will not delete, instead it prints out ~

Operating System: Ubuntu Vivid

Erlang/OTP 18 [erts-7.0] [source-4d83b58] [64-bit] [async-threads:10] [hipe] [kernel-poll:false]

Interactive Elixir (1.0.5) - press Ctrl+C to exit (type h() ENTER for help)
iex(1)> 3 + ~~~~4
** (SyntaxError) iex:1: invalid token: ~4

iex(1)> 

Here i want to delete 4, but instead it gives ~

@josevalim
Copy link
Member

Do you have the same issue in the erl shell?

@dwahyudi
Copy link
Author

@josevalim yes it also happens on erl.

I tried this as well on my remote server, Ubuntu Utopic

Erlang/OTP 18 [erts-7.0] [source-4d83b58] [64-bit] [async-threads:10] [hipe] [kernel-poll:false]

Eshell V7.0  (abort with ^G)
1> 3 + ~4
1> 2 + ~~~~~~6

@ericmj
Copy link
Member

ericmj commented Jul 11, 2015

If the issue also exists in erlang's shell the fix needs to happen there. You can raise the issue on erlang-bugs or erlang-questions http://erlang.org/mailman/listinfo.

@ericmj ericmj closed this as completed Jul 11, 2015
@gildo
Copy link

gildo commented Sep 17, 2015

same here

@hashd
Copy link
Contributor

hashd commented Sep 17, 2015

One can use Ctrl + d in iex instead

@epitron
Copy link

epitron commented Oct 24, 2015

Good news! It's been fixed! erlang/otp@2c7e387

Now we just have to wait for it to slowly make its way downstream.

@xyproto
Copy link

xyproto commented Oct 27, 2015

If erlang made a new minor release, it could potentially speed things up.

@dwahyudi
Copy link
Author

dwahyudi commented Nov 4, 2015

The problem remains.

Erlang (BEAM) emulator version 7.1
Compiled on Wed Sep 23 12:24:12 2015

@hashd, Ctrl + D doesn't work.

@hashd
Copy link
Contributor

hashd commented Nov 5, 2015

@dwahyudi Strange, it works for me on Ubuntu 15.04, Elixir v1.1.1 in gnome-terminal.

@dm1try
Copy link
Contributor

dm1try commented Nov 5, 2015

@dwahyudi +1, it will work in any xterm-based(VT100) terminal

Ctrl-k  clear all characters after the cursor
Ctrl-w  clears word before the cursor. a word is set of characters separated by spaces
Ctrl-u  Clears all characters before the cursor
Ctrl-l  clear screen
Ctrl-d  deletes characters to the right of cursor, if no characters, logs out and closes terminal
Delete  deletes characters to the right of cursor (this may vary depending on settings)
Ctrl-h or Ctrl-8 or Ctrl-Shift-/    deletes characters to the left or the cursor
Backspace   deletes characters to the left or the cursor (this may vary depending on settings)
Ctrl-7 or Ctrl-Shift--  Removes a number? of characters from the end
ALT-Backspace   Removes words, not single chars. (same as CTRL+W)

@hashd
Copy link
Contributor

hashd commented Nov 5, 2015

@dm1try that's insightful. Thanks!

@dwahyudi
Copy link
Author

dwahyudi commented Nov 6, 2015

@dm1try yep it works, Thanks 👍

but i still find delete key more natural than CTRL + D 😢

@dm1try
Copy link
Contributor

dm1try commented Nov 6, 2015

but i still find delete key more natural

I totally agree, especially annoying that "DEL" prints "~" 😞

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

8 participants