pcw / extras / cw_color.sh

Author Commit Message Labels Comments Date
Default avatar Evan Gates
use $'\n' instead of "\n" for IFS
Default avatar Evan Gates
use extglob to remove all trailing underscores from a nick before deciding color
Default avatar Evan Gates
more restrictive color usage, add self and notices to color_cache, hack so leading whitespace shows (I really need to write this in not bash)
Default avatar Evan Gates
remove color 14, match nick_ as well as nick
Default avatar Evan Gates
never create the "in" file if it doesn't exist, add comments and change status colors to cw_color.sh
Default avatar Evan Gates
add -r to read so backslashes don't screw things up, run pcw tmux in it's own server
Default avatar Evan Gates
cleanup + eval ii so $args is interpreted correctly
Default avatar Evan Gates
NICK=$USER by default for cw_color.sh
Default avatar Evan Gates
handle -!- notices more like normal nicks
Default avatar Evan Gates
create a cache of nick->color associations, use bash builtin replacements instead of sed, get a 4x speedup
Default avatar Evan Gates
update cw_color.sh quite a bit, lots of colors, sadly quite slow, what to do about that?
Default avatar Evan Gates
add addressing to sed
Default avatar Evan Gates
don't do fancy wrapping in cw_color.sh, let the terminal do that for us, that means no more ^L to redraw. also colors for all the nicks
Default avatar Evan Gates
add ^ to escaped characters in nick, thanks to mhi^
Default avatar Evan Gates
simple/ugly fix so that the nick '|' doesn't screw up cw_color.sh
Default avatar Evan Gates
cw_color.sh: sanatize nicks a bit, so nicks like polterge|st don't throw off alignment, and nicks like mike][inq don't screw it up completely
Default avatar Evan Gates
use a single space as field separator, so we get correct spacing on output
Default avatar Evan Gates
small indentation fix
Default avatar Evan Gates
no need to report size as an escape code, it gets erased anyway
Default avatar Evan Gates
add sigwinch handling to cw.c, update cw_color.sh to match, add a simple pcw_win.sh because i forgot to add the real one
Default avatar Evan Gates
forgot the bell on nick
Default avatar Evan Gates
make sure server dirs exist in chat.sh, fix some alignment in cw_color.sh, switch to script instead of config.h
Default avatar Evan Gates
fix finding the beginning of th emessage
Default avatar Evan Gates
change formatting from cw to cw_color.sh
Default avatar Evan Gates
make variables for colors in cw_color.sh so the user doesn't have to change the sed expressions
Default avatar Evan Gates
i add -d and -f flags to cw for cut(1) like behavior
Default avatar Evan Gates
foobar?
Default avatar Evan Gates
show the date, otherwise we screw up wrapping
Default avatar Evan Gates
magenta * for actions
Default avatar Evan Gates
make copies of path and nick to pass to function in config.h because I can't figure out how to make const work correctly and we don't want people screwing with them
  1. Prev
  2. 1
  3. 2
  4. Next
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.