Hi! I discovered that IRC control codes are not working in SyncTerm. Can you or someone else fix this or direct me to the source code so we can update it?
I tested using BogusTrivia. The control codes show up fine when connected IrcCloud but not in SyncTerm, where they show up as hearts and other strange symbols. Thanks!
Hi! I discovered that IRC control codes are not working in SyncTerm. Can you or someone else fix this or direct me to the source code so we can update it? I tested using BogusTrivia. The control codes show up fine when connected IrcCloud but not in SyncTerm, where they show up as hearts and other strange symbols. Thanks!
Re: SyncTerm and IRC
hearts and other strange symbols. Thanks!
If you're using the IRC client that comes with Synchronet, then the place to fix this would be in exec/irc.js. You'd need to find every place it writes a string to the terminal, and replace any control/color codes in the string with something more appropriate (eg. an equivalent CTRL-A code).
You'd see the same problem in any terminal, and that's as it should be. The terminal doesn't know that it's being used for IRC, and it might be used for other things where those codes have a totally different meaning.
If you're using the IRC client that comes with Synchronet, then the place to fix this would be in exec/irc.js. You'd need to find every place it writes a string to the terminal, and replace any control/color codes in the string with something more appropriate (eg. an equivalent CTRL-A code).I managed to fix the issue. You were correct that it was in irc.js Should I create a PR?
Re: SyncTerm and IRC
By: echicken to NeoArata on Sun Mar 06 2022 03:28 am
Re: SyncTerm and IRC
hearts and other strange symbols. Thanks!
If you're using the IRC client that comes with Synchronet, then the place to fix this would be in exec/irc.js. You'd need to find every place it writes a string to the terminal, and replace any control/color codes in the string with something more appropriate (eg. an equivalent CTRL-A code).
You'd see the same problem in any terminal, and that's as it should be. The terminal doesn't know that it's being used for IRC, and it might be used for other things where those codes have a totally different meaning.
Thanks. I'll take a look. However, why would it work properly in the IRCCloud client if it isn't a SyncTerm issue? Since it works in IRCCloud, that tells me the server is sending the correct control code and the client isn't interpreting it correctly.
I managed to fix the issue. You were correct that it was in irc.js Should I create a PR?
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 409 |
Nodes: | 16 (2 / 14) |
Uptime: | 50:46:13 |
Calls: | 8,571 |
Calls today: | 1 |
Files: | 13,222 |
Messages: | 5,929,295 |