# Nice weird feature on pasting julia\> code

**URL:** <https://discourse.julialang.org/t/nice-weird-feature-on-pasting-julia-code/15020>\
**Category:** New to Julia\
**Created:** [September 16, 2018, 3:53pm UTC](https://discourse.julialang.org/t/nice-weird-feature-on-pasting-julia-code/15020 "2018-09-16T15:53:32Z")\
**Posts on this page:** 6\
**Page:** 2

<div class="post-metadata">

**Author:** ![fortunewalla](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/fortunewalla/32/36960_2.png) [@fortunewalla](https://discourse.julialang.org/u/fortunewalla)\
**Post date:** [April 15, 2023, 6:41am UTC](https://discourse.julialang.org/t/nice-weird-feature-on-pasting-julia-code/15020/22 "2023-04-15T06:41:48Z")

</div>

Above, in the second command, did you type it or did you paste it?

I tried the same thing. If I type it out, it gives the same error but if I paste it, it removes the `julia>` string.

![image](https://global.discourse-cdn.com/julialang/original/3X/c/b/cb57a979b674dae1190c9e7217a5284f177a0021.png)

win10, running cmd within ConEmu [https://conemu.github.io/](https://conemu.github.io/)

---

<div class="post-metadata">

**Author:** ![Ralf\_Dietrich](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ralf_dietrich/32/5643_2.png) [@Ralf\_Dietrich](https://discourse.julialang.org/u/Ralf_Dietrich)\
**Post date:** [April 15, 2023, 5:59pm UTC](https://discourse.julialang.org/t/nice-weird-feature-on-pasting-julia-code/15020/23 "2023-04-15T17:59:36Z")

</div>

I pasted it.

---

<div class="post-metadata">

**Author:** ![airpmb](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/airpmb/32/7826_2.png) [@airpmb](https://discourse.julialang.org/u/airpmb)\
**Post date:** [April 15, 2023, 8:45pm UTC](https://discourse.julialang.org/t/nice-weird-feature-on-pasting-julia-code/15020/24 "2023-04-15T20:45:56Z")

</div>

> [@kristoffer.carlsson](#):
>
> It is only active for `Julia>`.

It looks like customized prompts work too:

```julia
(thermal-model) julia> x = 2
2

(thermal-model) julia> y = 4
4

(thermal-model) julia> # copy & paste

(thermal-model) julia> x = 2
2

(thermal-model) julia> y = 4
4

```

---

<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:** [April 15, 2023, 9:13pm UTC](https://discourse.julialang.org/t/nice-weird-feature-on-pasting-julia-code/15020/25 "2023-04-15T21:13:16Z")

</div>

> [@airpmb](#):
>
> It looks like customized prompts work too:

Many things can happen in five years heh.

---

<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:** [April 15, 2023, 9:13pm UTC](https://discourse.julialang.org/t/nice-weird-feature-on-pasting-julia-code/15020/26 "2023-04-15T21:13:41Z")

</div>

> [@Keno](#):
>
> See [bracketed paste in conhost · Issue #395 · microsoft/terminal · GitHub](https://github.com/microsoft/terminal/issues/395). It should be supported

I think it is turned off in the julia repl code as well.

---

<div class="post-metadata">

**Author:** ![fortunewalla](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/fortunewalla/32/36960_2.png) [@fortunewalla](https://discourse.julialang.org/u/fortunewalla)\
**Post date:** [April 17, 2023, 5:47am UTC](https://discourse.julialang.org/t/nice-weird-feature-on-pasting-julia-code/15020/27 "2023-04-17T05:47:23Z")

</div>

Might not be what you are looking for but I did a few tests using regular cmd. win10.

The black background is ConEmu while the blue background is the regular cmd.

In ConEmu, inside julia REPL:  
the string `julia> 2+2` when copied pastes as `2+2` using Ctrl+V

In cmd, inside the julia REPL,  
Ctrl+V doesn’t paste anything in the julia REPL Instead I have to use the right click of the mouse & it pastes the entire string `julia> 2+2`

In cmd prompt by itself  
Ctrl+V works and it pastes the string `julia>2+2`

So perhaps something about the way Julia interacts with regular cmd. Hope this helps.

 ![image](https://global.discourse-cdn.com/julialang/original/3X/d/2/d2d3e8ca2a1c35327af80713f2ea69b4799c4025.png)

[Previous page](https://discourse.julialang.org/t/nice-weird-feature-on-pasting-julia-code/15020.md?page=1)
