Skip to content

Commit

Permalink
Autogenerate documented REPL banner (#28520)
Browse files Browse the repository at this point in the history
* Update documented REPL banner for 1.0
  • Loading branch information
HarrisonGrodin authored and fredrikekre committed Aug 11, 2018
1 parent e7d15d4 commit 7c9383f
Showing 1 changed file with 6 additions and 12 deletions.
18 changes: 6 additions & 12 deletions stdlib/REPL/docs/src/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,12 @@ it has a searchable history, tab-completion, many helpful keybindings, and dedic
shell modes. The REPL can be started by simply calling `julia` with no arguments or double-clicking
on the executable:

```
$ julia
_
_ _ _(_)_ | A fresh approach to technical computing
(_) | (_) (_) | Documentation: https://docs.julialang.org
_ _ _| |_ __ _ | Type "?help" for help.
| | | | | | |/ _` | |
| | |_| | | | (_| | | Version 0.6.0-dev.2493 (2017-01-31 18:53 UTC)
_/ |\__'_|_|_|\__'_| | Commit c99e12c* (0 days old master)
|__/ | x86_64-linux-gnu
julia>
```@eval
io = IOBuffer()
Base.banner(io)
banner = String(take!(io))
import Markdown
Markdown.parse("```\n\$ julia\n\n$(banner)\njulia>\n```")
```

To exit the interactive session, type `^D` -- the control key together with the `d` key on a blank
Expand Down

0 comments on commit 7c9383f

Please sign in to comment.