|
|
@ -24,8 +24,7 @@ func mainLoop(screen *mop.Screen, profile *mop.Profile) { |
|
|
|
|
|
|
|
|
|
|
|
market := new(mop.Market).Initialize().Fetch() |
|
|
|
market := new(mop.Market).Initialize().Fetch() |
|
|
|
quotes := new(mop.Quotes).Initialize(market, profile) |
|
|
|
quotes := new(mop.Quotes).Initialize(market, profile) |
|
|
|
screen.Draw(market) |
|
|
|
screen.Draw(market, quotes) |
|
|
|
screen.Draw(quotes) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
loop: |
|
|
|
loop: |
|
|
|
for { |
|
|
|
for { |
|
|
@ -48,8 +47,7 @@ loop: |
|
|
|
} |
|
|
|
} |
|
|
|
case termbox.EventResize: |
|
|
|
case termbox.EventResize: |
|
|
|
screen.Resize() |
|
|
|
screen.Resize() |
|
|
|
screen.Draw(market) |
|
|
|
screen.Draw(market, quotes) |
|
|
|
screen.Draw(quotes) |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
case <-timestamp_queue.C: |
|
|
|
case <-timestamp_queue.C: |
|
|
|