• OSC 8 detection / support

    From Rob Swindell@VERT to GitLab issue in main/sbbs on Thursday, February 13, 2025 18:13:44
    open https://gitlab.synchro.net/main/sbbs/-/issues/872

    Clickable URIs/links in terminals is a standardized thing: https://github.com/Alhadis/OSC8-Adoption

    Detect that support (e.g. using ANSI cursor position request) and set a console flag for the session. Then allow custom strings when supported or use @-codes to do the special expansion when displaying URLs.

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Deucе@VERT to GitLab note in main/sbbs on Sunday, March 30, 2025 03:04:53
    https://gitlab.synchro.net/main/sbbs/-/issues/872#note_6954

    Actually, reading the spec again, there is no way to detect if it's implemented. :(

    ---
    ï¿­ Synchronet ï¿­ Vertrauen ï¿­ Home of Synchronet ï¿­ [vert/cvs/bbs].synchro.net
  • From Deucе@VERT to GitLab note in main/sbbs on Monday, March 31, 2025 15:31:32
    https://gitlab.synchro.net/main/sbbs/-/issues/872#note_6958

    But on the plus side, it should also be transparent when the client doesn't support it (assuming the client isn't broken)

    ---
    ï¿­ Synchronet ï¿­ Vertrauen ï¿­ Home of Synchronet ï¿­ [vert/cvs/bbs].synchro.net
  • From Rob Swindell@VERT to GitLab note in main/sbbs on Monday, March 31, 2025 16:21:36
    https://gitlab.synchro.net/main/sbbs/-/issues/872#note_6959

    So in the example, `printf '\033]8;;http://example.com\033\\This is a link\033]8;;\033\\\n'`, a non-broken but non-supporting terminal would just eat the URL and only display "This is a link"?

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Deucе@VERT to GitLab note in main/sbbs on Monday, March 31, 2025 18:46:28
    https://gitlab.synchro.net/main/sbbs/-/issues/872#note_6960

    Right, there's two OSCs there... "\\033\]8;;http://example.com\\033\\\\" and "\\033\]8;;\\033\\\\". Those would be stripped.

    ---
    ï¿­ Synchronet ï¿­ Vertrauen ï¿­ Home of Synchronet ï¿­ [vert/cvs/bbs].synchro.net
  • From Deucе@VERT to GitLab note in main/sbbs on Monday, March 31, 2025 18:48:37
    https://gitlab.synchro.net/main/sbbs/-/issues/872#note_6960

    Right, there's two OSCs there... "\\033\]8;;[http://example.com\033\\](http://example.com%5C%5C033%5C%5C%5C%5C)" and "\\033\]8;;\\033\\\\". Those would be stripped.

    ---
    ï¿­ Synchronet ï¿­ Vertrauen ï¿­ Home of Synchronet ï¿­ [vert/cvs/bbs].synchro.net
  • From Deucе@VERT to GitLab note in main/sbbs on Monday, March 31, 2025 18:48:56
    https://gitlab.synchro.net/main/sbbs/-/issues/872#note_6960

    Right, there's two OSCs there... "\\033\]8;;http://example.com\033\\" and "\\033\]8;;\\033\\\\". Those would be stripped.

    ---
    ï¿­ Synchronet ï¿­ Vertrauen ï¿­ Home of Synchronet ï¿­ [vert/cvs/bbs].synchro.net
  • From Rob Swindell@VERT to GitLab note in main/sbbs on Monday, March 31, 2025 20:07:43
    https://gitlab.synchro.net/main/sbbs/-/issues/872#note_6964

    Well, that's kind of lame. :-( I was hoping the URL would at least be *displayed* for terminals that don't support OSC 8. And that would've made autodetection easy too.

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net