tpapp / julia-repl

Run an inferior Julia REPL in a terminal inside Emacs
Other
171 stars 35 forks source link

ProgressMeter does not work properly #13

Closed mauro3 closed 6 years ago

mauro3 commented 6 years ago

Produces:

julia> using ProgressMeter

julia> @showprogress for i=1:20
       sleep(0.5)
       end
Progress:   5%|█████                                                                                           |  ETA: 0:00:10Progress
:  10%|██████████                                                                                      |  ETA: 0:00:09Progress:  15%|█
█████████████                                                                                  |  ETA: 0:00:09Progress:  20%|█████████
██████████                                                                             |  ETA: 0:00:08Progress:  25%|█████████████████
███████                                                                        |  ETA: 0:00:08Progress:  30%|█████████████████████████
████                                                                   |  ETA: 0:00:07Progress:  35%|█████████████████████████████████
█                                                              |  ETA: 0:00:07Progress:  40%|██████████████████████████████████████   
                                                       |  ETA: 0:00:06Progress:  45%|███████████████████████████████████████████      
                                               |  ETA: 0:00:06Progress:  50%|████████████████████████████████████████████████         
                                       |  ETA: 0:00:05Progress:  55%|█████████████████████████████████████████████████████            
                               |  ETA: 0:00:05Progress:  60%|██████████████████████████████████████████████████████████               
                       |  ETA: 0:00:04Progress:  65%|██████████████████████████████████████████████████████████████                   
               |  ETA: 0:00:04Progress:  70%|███████████████████████████████████████████████████████████████████                      
       |  ETA: 0:00:03Progress:  75%|████████████████████████████████████████████████████████████████████████                        |
  ETA: 0:00:03Progress:  80%|█████████████████████████████████████████████████████████████████████████████                   |  ETA: 0
:00:02Progress:  85%|██████████████████████████████████████████████████████████████████████████████████              |  ETA: 0:00:02Pr
ogress:  90%|██████████████████████████████████████████████████████████████████████████████████████          |  ETA: 0:00:01Progress: 
 95%|███████████████████████████████████████████████████████████████████████████████████████████     |  ETA: 0:00:01Progress: 100%|███
█████████████████████████████████████████████████████████████████████████████████████████████| Time: 0:00:10

julia> 

I suspect that this is an issue of the underlying Emacs-terminal. Feel free to close as wont-fix.

tpapp commented 6 years ago

Thanks, I will investigate. I could be something as simple as replacing a control code.

tpapp commented 6 years ago

This requires a workaround in ProgressMeter.jl, made a PR https://github.com/timholy/ProgressMeter.jl/pull/83.

tpapp commented 6 years ago

Fixed by https://github.com/timholy/ProgressMeter.jl/pull/83.