GNU social JP
  • FAQ
  • Login
GNU social JPは日本のGNU socialサーバーです。
Usage/ToS/admin/test/Pleroma FE
  • Public

    • Public
    • Network
    • Groups
    • Featured
    • Popular
    • People

Conversation

Notices

  1. Embed this notice
    Chris Siebenmann (cks@mastodon.social)'s status on Thursday, 17-Apr-2025 08:42:23 JST Chris Siebenmann Chris Siebenmann

    Every command line tool that pretty-prints progress bars and live status reports and all that stuff as it goes along in ways that constantly print characters and require a cursor-addressable display (or ANSI code support or etc) should have a way of turning all that off and printing things a line at a time with no fancy progress bars.

    This rant is brought to you by dnf5, but it's not the only offender. At least 'apt' isn't the only way, you can use 'apt-get' and so on.

    In conversation about a month ago from mastodon.social permalink
    • Haelwenn /элвэн/ :triskell: likes this.
    • Embed this notice
      Haelwenn /элвэн/ :triskell: (lanodan@queer.hacktivis.me)'s status on Thursday, 17-Apr-2025 08:48:37 JST Haelwenn /элвэн/ :triskell: Haelwenn /элвэн/ :triskell:
      in reply to

      @cks I guess checking $TERM (where "dumb" means no ANSI) and if stdout/stderr is a TTY should be enough?

      At least that way pipes/file-redirects doesn't puts a bunch of ANSI even when running in a terminal. And TERM=dumb allows very basic terminals (or even non-terminals) to still work.

      In conversation about a month ago permalink
    • Embed this notice
      Haelwenn /элвэн/ :triskell: (lanodan@queer.hacktivis.me)'s status on Thursday, 17-Apr-2025 09:05:55 JST Haelwenn /элвэн/ :triskell: Haelwenn /элвэн/ :triskell:
      in reply to
      • Tim Chase

      @gumnos @cks Yeah, NO_COLOR is a pretty cool thing.

      And while I can appreciate progress information (which spinners don't provide), I think it should typically be opt-in specially when it comes to terminal programs. One reason being to let long running programs in the background without them trashing what's running in the foreground.

      In conversation about a month ago permalink
    • Embed this notice
      Tim Chase (gumnos@mastodon.bsd.cafe)'s status on Thursday, 17-Apr-2025 09:05:57 JST Tim Chase Tim Chase
      in reply to
      • Haelwenn /элвэн/ :triskell:

      @lanodan

      I have indeed used

      $ miscreant.prog | cat

      or

      $ cat | miscreant.prog

      (or both) to lie to programs that behave poorly when isatty() returns true. I shouldn't have to, and the `TERM=dumb miscreant.prog` sometimes does the job.

      For just color aspects, some progs respect `$NO_COLOR` (https://no-color.org/) which might be enough.

      But yes, staaahp it with the unbidden progress-bars and twirlers and whatever.

      @cks

      In conversation about a month ago permalink

      Attachments

      1. No result found on File_thumbnail lookup.
        NO_COLOR: disabling ANSI color output by default
    • Embed this notice
      Chris Siebenmann (cks@mastodon.social)'s status on Thursday, 17-Apr-2025 11:23:30 JST Chris Siebenmann Chris Siebenmann
      in reply to

      It's my further view (not expressed in my original toot) that it's not enough for command line tools to suppress their fancy output if they're not being run through a tty. I want to be able to run them from a regular shell session, in a pty, without the fancy output, for a variety of reasons.

      I may be running them under `script' to capture their output but still leave them interactive. I may be working over a slow or saturated network link and I don't want to get all that extra text. Etc.

      In conversation about a month ago permalink
      Haelwenn /элвэн/ :triskell: likes this.
    • Embed this notice
      Haelwenn /элвэн/ :triskell: (lanodan@queer.hacktivis.me)'s status on Thursday, 17-Apr-2025 11:36:08 JST Haelwenn /элвэн/ :triskell: Haelwenn /элвэн/ :triskell:
      in reply to
      @cks Slow network link reminds me of how high-latency (A)DSL is due to modems, but also how high-latency computers on another continent can be and sadly for those it's purely the laws of physics.
      In conversation about a month ago permalink

Feeds

  • Activity Streams
  • RSS 2.0
  • Atom
  • Help
  • About
  • FAQ
  • TOS
  • Privacy
  • Source
  • Version
  • Contact

GNU social JP is a social network, courtesy of GNU social JP管理人. It runs on GNU social, version 2.0.2-dev, available under the GNU Affero General Public License.

Creative Commons Attribution 3.0 All GNU social JP content and data are available under the Creative Commons Attribution 3.0 license.