• @iknowitwheniseeit
    link
    94 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.

    • @[email protected]
      link
      fedilink
      English
      34 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
        link
        44 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. 😆

        • @[email protected]
          link
          fedilink
          English
          34 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
      link
      fedilink
      English
      14 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
        link
        14 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.