• iknowitwheniseeit@lemmynsfw.com
    link
    fedilink
    arrow-up
    7
    ·
    4 months ago

    For some reason I remember a lot of ANSI terminal escape codes. They were used all the time on DOS machines, and work in a similar way on Unix terminals.

    • tunetardis@lemmy.ca
      link
      fedilink
      English
      arrow-up
      2
      ·
      4 months ago

      I like the bell one. It’s useful to print a few of those at the end of what you expect will be a long program run to get your attention when it’s done.

      • iknowitwheniseeit@lemmynsfw.com
        link
        fedilink
        arrow-up
        4
        ·
        4 months ago

        It’s a good idea, although some terminals will pause output when they play the sound. I always disable any sound from my terminal anyway, because computers should be seen and not heard. 😆

        • tunetardis@lemmy.ca
          link
          fedilink
          English
          arrow-up
          1
          ·
          4 months ago

          Oh interesting. I tried turning off sound and now ctl-g flashes the terminal instead. (Fwiw I’m using the built-in terminal on a Mac.)

    • Unbecredible@lemm.ee
      link
      fedilink
      English
      arrow-up
      1
      ·
      4 months ago

      They don’t work on windows terminals?? I only use the color ones but I will be devastated if it turns out they only work in Linux.

      • iknowitwheniseeit@lemmynsfw.com
        link
        fedilink
        arrow-up
        1
        ·
        4 months ago

        I’m not sure since I haven’t really used Windows for 20 years or so. I don’t think though, since there are separate CURSES libraries for Windows which don’t operate using escape sequences.