Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

Why won't you let me kiss you goodnight? Is it something I said? -- Tom Ryan


dovenet / Synchronet Javascript / Frame.js and ansi music

SubjectAuthor
o Frame.js and ansi musicKirkman

1
Frame.js and ansi music

<62709EAF.2189.dove-syncjs@guardian.synchro.net>

  copy mid

https://www.rocksolidbbs.com/dovenet/article-flat.php?id=778&group=DOVE-Net.Synchronet_Javascript#778

  copy link   Newsgroups: DOVE-Net.Synchronet_Javascript
From: kirkman@VERT/GUARDIAN (Kirkman)
To: All
Subject: Frame.js and ansi music
Message-ID: <62709EAF.2189.dove-syncjs@guardian.synchro.net>
Date: Mon, 2 May 2022 15:17:03 -0500
X-Comment-To: All
Path: rocksolidbbs.com!not-for-mail
Organization: Guardian of Forever
Newsgroups: DOVE-Net.Synchronet_Javascript
X-FTN-PID: Synchronet 3.19c-Linux guardian/6de0ebc0d May 1 2022 GCC 6.3.0
X-FTN-CHRS: CP437 2
WhenImported: 20220502203528-0700 c1e0
WhenExported: 20220502235758-0700 c1e0
ExportedFrom: VERT sync-js 3697
WhenImported: 20220502221703-0500 c168
WhenExported: 20220502223532-0500 c168
ExportedFrom: GUARDIAN dove-syncjs 2189
Content-Type: text/plain; charset=IBM437
Content-Transfer-Encoding: 8bit
 by: Kirkman - Mon, 2 May 2022 20:17 UTC

Hey Deuce, I have an ANSI music question for you.

I have a sound effect I want to play. Right now I'm using this sequence:

<0x1b>[0m<0x1b>[24;1H<0x1b>[8m<0x1b>[MB T255O3B8B16O4E4 <0x0e><0x1b>[0m

This works in SyncTerm. The music plays in the background ... but it also garbles whatever graphics are being displayed on screen.

After looking at cterm.txt, I feel like this sequence is probably not the best. It has some extra stuff in it that I'm sure is unnecessary. I'd like to switch to using the CSI | (pipe) format, but I can't get it to to work.

This is what I tried:

<0x1b>[=0M<0x1b>|B T255O3B8B16O4E4 <0x0e>

Anyway, just looking for suggestions on the correct cterm-compliant way to play a musical sequence, but without screwing up any graphics that might currently be displayed on the terminal.

--Josh

////--------------------------------------------------
BiC -=- http://breakintochat.com -=- bbs wiki and blog

---
■ Synchronet ■ Guardian of Forever | guardian.synchro.net | St. Louis, MO


dovenet / Synchronet Javascript / Frame.js and ansi music

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor