Skip to content

fix(repl): Fix undefined result colour in cmd#10964

Merged
dsherret merged 2 commits intodenoland:mainfrom
dsherret:repl-fix-undefined-result-colour
Jun 14, 2021
Merged

fix(repl): Fix undefined result colour in cmd#10964
dsherret merged 2 commits intodenoland:mainfrom
dsherret:repl-fix-undefined-result-colour

Conversation

@dsherret
Copy link
Contributor

Before

Command prompt:

image

Windows terminal:

image

After

Command prompt:

image

Windows terminal:

image

Highlighting for undefined in the Rust and JS code now both use "grey" instead of "dim" and "grey".

Fixes #9761


function dim(str) {
return run(str, code(2, 22));
}
Copy link
Contributor Author

@dsherret dsherret Jun 14, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it's better that we just don't use dim since it doesn't work in cmd and instead use gray (plus, we're already using gray for the input highlighting). I've removed this, but let me know if I should re-add it.

Copy link
Member

@ry ry left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does it still look ok when terminal is black on white?

@dsherret
Copy link
Contributor Author

Does it still look ok when terminal is black on white?

Yup (cmd):

image

Copy link
Member

@ry ry left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lgtm

@dsherret dsherret merged commit 0acd060 into denoland:main Jun 14, 2021
@dsherret dsherret deleted the repl-fix-undefined-result-colour branch June 14, 2021 20:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Windows does not highlight undefined in REPL

2 participants