GithubHelp home page GithubHelp logo

Comments (5)

jules2689 avatar jules2689 commented on June 10, 2024 2

The boxes lend a really good visual indicator of when things start and end.
We use it internally to help separate errors from other things, with good success.
I'd be hesitant to remove that.

from cli-ui.

jules2689 avatar jules2689 commented on June 10, 2024

it's mostly a style choice, but also facilitates copy paste, wrapping, etc.

It greatly simplifies the code as well. We don't have to calculate the end of the line and pad things on the right. You might also notice that we don't really do line wrapping, so end of the line doesn't even work in some cases unless we start automatically splitting up lines.

We would entertain any PRs for this, of course 😊

from cli-ui.

burke avatar burke commented on June 10, 2024

Yeah, the reason we haven't done this is that with complete boxes, the line essentially becomes a whooole lot of spaces, and copy/pasting gets very extremely bad, as opposed to the current state of "pretty bad". I haven't tested it but I strongly suspect performance would suffer too: writing spaces isn't free. We could probably jump to the end of the line with CHP9999 or something but I'm not optimistic that it would be much faster.

from cli-ui.

chall8908 avatar chall8908 commented on June 10, 2024

@burke you'd also have to walk back in if you're rendering sub-frames. Otherwise, the boxes will overlap on the right side of the screen and look all weird.

I wonder if it might look better without the top and bottom bars being all the way across the screen - although, that does make it really easy to see where blocks start. Maybe something like this:

┏━━ Outermost Title
┃ ✓ A thing
┃┏━━ Inner Title
┃┃ Some text
┃┃┏━━ Innermost Title
┃┃┃  ✗ A failing thing
┃┃┗━━ (0.5s)
┃┗━━ (0.6s)
┗━━ (1.6s)

Or even:

┏┳━ Outermost Title
┃┃ ✓ A thing
┃┃┏┳━ Inner Title
┃┃┃┃ Some text
┃┃┃┃┏┳━ Innermost Title
┃┃┃┃┃┃  ✗ A failing thing
┃┃┃┃┗┻━ (0.5s)
┃┃┗┻━ (0.6s)
┗┻━ (1.6s)

Either would remove the box illusion. I know I had a slightly negative initial reaction to the lack of a border on the right side.

from cli-ui.

chall8908 avatar chall8908 commented on June 10, 2024

So, I decided to see how difficult it would be to modify the frame styles generally and discovered that it was actually pretty easy to do. I have a working prototype and will probably put a PR up once I get some better documentation written.

Example:
Screenshot from 2019-09-19 18-07-41

from cli-ui.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.