+
Skip to content

Change the color of the premarket and after market change depending if it's after/premarket data is up or down. #136

@hmm5

Description

@hmm5

Right now if the stock during the regular trading hours was up or down, the premarket/aftermarket data will also be the same color.

Therefore e.g. if AAPL stock ended up that day it will be green, and highlight the whole row as green. This is fine, but the premarket/aftermarket data should be green or red depending on whether it's trading lower or higher independent of what happened during regular trading hours.

Also can you set and allow some more custom colors?
Particularly can you set this under the main.go function?
termbox.SetOutputMode(termbox.Output256)

This will allow the use of 256 colors to be set, while still allowing the default ones that are currently be used. But can you also allow custom colors, e.g. up to three of them to be set using the config file? So under profile.go, allow the custom colors to be set under IsSupportedColor, and get the number for the custom color from the config file? So under markup.go under func NewMarkup you need to put something like markup.tags[customcolor1] = termbox.Attribute(configcustomcolor), where the custom color is a number from 1-255, whose color #s and corresponding color can be found here. https://askubuntu.com/questions/821157/print-a-256-color-test-pattern-in-the-terminal

Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载