Skip to content

Configuring REPL colours #29

Answered by erezsh
dimitri-b asked this question in Q&A
Aug 18, 2021 · 1 comments · 8 replies
Discussion options

You must be logged in to vote

Sorry that the colors aren't optimal! There is no config option to change them, at the moment. But I agree it would be nice to have.

As an immediate solution, I would suggest editing preql/repl.py. You will see a class there:

class PreqlStyle(Style):
    default_style = ""
    styles = {
        Generic:                'ansigray',
        Comment:                'italic #888',
        Keyword:                'bold #00f',
        Name:                   '#fff',
        Name.Function:          'bold #8f8',
        Name.Class:             'bold #0f0',
        String:                 'ansigreen',
        Number:                 'ansicyan',
        Operator:               'ansigray',
        E…

Replies: 1 comment 8 replies

Comment options

You must be logged in to vote
8 replies
@dimitri-b
Comment options

@erezsh
Comment options

@dimitri-b
Comment options

@erezsh
Comment options

@dimitri-b
Comment options

Answer selected by dimitri-b
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants