Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix telnet mode / esc codes for stdout #1784

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

michaelortmann
Copy link
Member

@michaelortmann michaelortmann commented Feb 20, 2025

Found by: michaelortmann
Patch by: michaelortmann
Fixes:

One-line summary:
Fix telnet mode / esc codes for stdout

Additional description (if needed):
Enable telnet mode / do not strip esc codes if stdout is a tty

Dont you worry, even your moms vt100 from 1978 supports the esc codes / telnet codes we use.

This issue is user facing. It has been bothering me for a long time.

Test cases demonstrating functionality (if applicable):
left side: before, right side: after
https://imgur.com/a/N24vu08

in other words:
Start the bot into dcc chat simulation (HQ), like:
./eggdrop -t bot.conf
Before:
HQs telnet mode will be off. so for example HQ via tty will not see bold text in motd.
After:
if eggdrop detects stdout is a tty, it will enable telnet mode. so HQ will see bold text in motd.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant