Closed Bug 180577 Opened 23 years ago Closed 21 years ago

[RFE] color codes can be seen but not inserted

Categories

(Other Applications Graveyard :: ChatZilla, enhancement)

enhancement
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: hcymulng02, Assigned: rginda)

References

Details

Attachments

(1 file, 3 obsolete files)

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.3a) Gecko/20021115 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.3a) Gecko/20021115 There's no way that I've found to insert color codes while typing a message in Chatzilla. In mIRC and Klient (to mention two examples) a small color picker can be brought up by pressing Ctrl-K. This then inserts the (mIRC-compatible) control code for the selected color into the message at the cursor position. It would be nice to have this functionality in Cz. Oh, and throw in the codes for bold and underline too, while you're at it. Reproducible: Always Steps to Reproduce: 1. Try to use mIRC-style colors or bold/underline codes in your messages while using Cz, using a convenient built-in color picker. Actual Results: Nothing. Expected Results: Something similar to the way established IRC clients like mIRC and Klient handle insertion of color and bold/underline codes.
Status: UNCONFIRMED → NEW
Ever confirmed: true
OS: Windows XP → All
Hardware: PC → All
Attached patch patch v1 (obsolete) — Splinter Review
This patch lacks a color picker, but users can insert color codes like xchat. %U: underline %B: bold %R: reverse %O: normal %C: color ex. %C4 = red, %C8 = yellow
Attachment #119168 - Flags: review?(samuel)
Comment on attachment 119168 [details] [diff] [review] patch v1 This is great, but it needs a pref (defaulting to off). Under Global Options in the main pref pane add something like "Enable color code escape characters".
Attachment #119168 - Flags: review?(samuel) → review-
Attached patch patch v2 (obsolete) — Splinter Review
Added "extensions.irc.colorCodes" and a checkbox in the preferences dialog. We already have "extensions.irc.munger.colorCodes". Isn't it confusing? Should I rename these prefs?
Attachment #119168 - Attachment is obsolete: true
Attachment #119347 - Flags: review?(samuel)
Comment on attachment 119347 [details] [diff] [review] patch v2 r=samuel@sieb.net with changes to the replacements to make them global (I made the changes)
Attachment #119347 - Flags: review?(samuel) → review+
checked in
Status: NEW → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
This doesn't work for /me actions.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Just a little note; I can't enter a raw % with this turned on. E.g. I want to actually type "%C" (for example, as part of something else) and can't.
Attached patch patch v3 (obsolete) — Splinter Review
(1) replaces color codes in /me command (2) doesn't replace '%%B' or '%%U'
Attachment #119347 - Attachment is obsolete: true
Attachment #120643 - Flags: review?(samuel)
I've done a little work on an onkeypress handler for the inputs that would pop up a colour guide in a tooltip. Would that sort of thing be desirable?
Applied against vanilla chatzilla 0.8.26. This adds an onkeypress handler to the two textbox inputs (oninput would be ideal, but didn't work for me). If the last character typed is a %, it pops up a tooltip describing %[UBROC%]. If the last few characters look like a %C colour code, it's a tooltip showing the colour codes. What the heck, I was bored.
Doh... line 65 of my patch should have "color:white" in place of "background-color:white". It's late.
Wow... just tried that pop-up patch - very neat. :) I see no reason that can't go into ChatZilla.
Attachment #120643 - Attachment is obsolete: true
Attachment #120643 - Flags: review?(samuel)
This has been fixed in recent versions.
Status: REOPENED → RESOLVED
Closed: 23 years ago21 years ago
Resolution: --- → FIXED
Depends on: 255081
Product: Core → Other Applications
Product: Other Applications → Other Applications Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: