Bobinas P4G
  • Login
  • Public

    • Public
    • Groups
    • Popular
    • People

Conversation

Notices

  1. charm.sh (charm@mastodon.technology)'s status on Thursday, 28-Jul-2022 14:00:40 UTC charm.sh charm.sh

    New release! 🎀 Gum: a tool for glamorous shell scripts. It provides highly configurable utilities to help you write useful and delightful scripts with just a few lines of code.

    https://github.com/charmbracelet/gum

    In conversation Thursday, 28-Jul-2022 14:00:40 UTC from mastodon.technology permalink
    • muesli (fribbledom@mastodon.social)'s status on Thursday, 28-Jul-2022 16:12:51 UTC muesli muesli
      in reply to
      • Anthony Sorace

      @a @charm

      Depends how "dumb" of a terminal we're talking. It'll require control sequences for things like cursor positioning, but it will absolutely respect things like $TERM and $COLORTERM and tries to adapt to the terminal capabilities: for example RGB color values will be downsampled to the closest available color for ANSI16/ANSI256 terminals.

      In conversation Thursday, 28-Jul-2022 16:12:51 UTC permalink
    • Anthony Sorace (a@pdx.social)'s status on Thursday, 28-Jul-2022 16:12:54 UTC Anthony Sorace Anthony Sorace
      in reply to
      • muesli

      @charm @fribbledom Does this have any capability for fallback on dumb terminals? Does it respect $TERM?

      In conversation Thursday, 28-Jul-2022 16:12:54 UTC permalink
    • muesli (fribbledom@mastodon.social)'s status on Thursday, 28-Jul-2022 16:18:27 UTC muesli muesli
      in reply to
      • Anthony Sorace

      @a @charm

      A series of steps:

      1. fallback to looking at alternative env vars like COLORTERM
      2. send OSC queries to actively detect terminal support
      3. if all fails, assume a terminal that understands the most basic ANSI sequences but strip markup like colors & styles

      In conversation Thursday, 28-Jul-2022 16:18:27 UTC permalink
    • Anthony Sorace (a@pdx.social)'s status on Thursday, 28-Jul-2022 16:18:28 UTC Anthony Sorace Anthony Sorace
      in reply to
      • muesli

      @fribbledom @charm What does it do with TERM=dumb?

      In conversation Thursday, 28-Jul-2022 16:18:28 UTC permalink
    • muesli (fribbledom@mastodon.social)'s status on Thursday, 28-Jul-2022 17:15:41 UTC muesli muesli
      in reply to
      • Anthony Sorace

      @a @charm

      No, it really shouldn't print any garbage. If it does I'd love to hear more about the terminal you're using.

      In conversation Thursday, 28-Jul-2022 17:15:41 UTC permalink
    • Anthony Sorace (a@pdx.social)'s status on Thursday, 28-Jul-2022 17:15:42 UTC Anthony Sorace Anthony Sorace
      in reply to
      • muesli

      @fribbledom @charm That’s too bad. I guess the COLORTERM check seems fine, but everything after that is going to result in printing garbage for me. I really wish programs would believe me when I tell them thing.

      In conversation Thursday, 28-Jul-2022 17:15:42 UTC permalink

Feeds

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

Bobinas P4G is a social network. It runs on GNU social, version 2.0.1-beta0, available under the GNU Affero General Public License.

Creative Commons Attribution 3.0 All Bobinas P4G content and data are available under the Creative Commons Attribution 3.0 license.