# REPL line editing: C-u not expected behaviour

**URL:** https://discourse.julialang.org/t/repl-line-editing-c-u-not-expected-behaviour/8732
**Category:** General Usage
**Tags:** repl
**Created:** [February 1, 2018, 9:37am UTC](https://discourse.julialang.org/t/repl-line-editing-c-u-not-expected-behaviour/8732 "2018-02-01T09:37:17Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![mvhulten](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mvhulten/32/2444_2.png) [@mvhulten](https://discourse.julialang.org/u/mvhulten)
#### Post date: [February 1, 2018, 9:37am UTC](https://discourse.julialang.org/t/repl-line-editing-c-u-not-expected-behaviour/8732/1 "2018-02-01T09:37:17Z")

</div>

In Julia 0.6.2, when I am in REPL (interactive) mode, and I’ve typed something and put the cursor halfway or so, and then press C-u, the whole line disappears. I expected that only what’s left disappears, which is what programs using readline(3) do.

Is there a reason to deviate from the readline(3) conventions?

---

<div class="post-metadata">

### Author: ![kristoffer.carlsson](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/kristoffer.carlsson/32/22_2.png) [@kristoffer.carlsson](https://discourse.julialang.org/u/kristoffer.carlsson)
#### Post date: [February 1, 2018, 10:59am UTC](https://discourse.julialang.org/t/repl-line-editing-c-u-not-expected-behaviour/8732/2 "2018-02-01T10:59:54Z")

</div>

Fixed on 0.7

---

<div class="post-metadata">

### Author: ![mvhulten](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mvhulten/32/2444_2.png) [@mvhulten](https://discourse.julialang.org/u/mvhulten)
#### Post date: [February 1, 2018, 11:27am UTC](https://discourse.julialang.org/t/repl-line-editing-c-u-not-expected-behaviour/8732/3 "2018-02-01T11:27:19Z")

</div>

Great, thanks Kristoffer!

---

<div class="post-metadata">

### Author: ![Liso](https://avatars.discourse-cdn.com/v4/letter/l/898d66/32.png) [@Liso](https://discourse.julialang.org/u/Liso)
#### Post date: [February 1, 2018, 11:41am UTC](https://discourse.julialang.org/t/repl-line-editing-c-u-not-expected-behaviour/8732/4 "2018-02-01T11:41:25Z")

</div>

[24948](https://github.com/JuliaLang/julia/pull/24948)?

Maybe [22007](https://github.com/JuliaLang/julia/pull/22007/files) could be inspirational because it changed [doc](https://github.com/fredrikekre/julia/blob/master/doc/src/manual/interacting-with-julia.md) and [news](https://github.com/JuliaLang/julia/blob/master/NEWS.md) too…

---

<div class="post-metadata">

### Author: ![mvhulten](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mvhulten/32/2444_2.png) [@mvhulten](https://discourse.julialang.org/u/mvhulten)
#### Post date: [February 1, 2018, 12:14pm UTC](https://discourse.julialang.org/t/repl-line-editing-c-u-not-expected-behaviour/8732/5 "2018-02-01T12:14:03Z")

</div>

Ah yes, I now read about that [merge](https://github.com/JuliaLang/julia/pull/24948) @Liso mentioned. As it’s two months old, I won’t respond in that merge discussion, so here is better.

The general sentiment appears to be to keep things as standard as possible, as mentioned by @StefanKarpinski, and if things are established we should follow. I agree. I found it interesting to read about the difference in maturity of IPython and Julia. In Unix (in the wide sense, including GNU and BSD), this is standardised since the 1990’s. See [`readline(3)`](https://man.openbsd.org/readline.3).

I mention this because it could be useful to refer to when working on the REPL code.

~~P.S. Please tell me if I should not “ping” users that are not involved in a thread in the future.~~ I now [see](https://discourse.julialang.org/badges/40/first-mention) it is okay to do so! 🙂
