Closed bruno- closed 7 years ago
Hey, this is a tricky one because solaris is (these days at least) not so popular.. Also, with the rumors that solaris is being canned it would be hard to commit to supporting this plugin for that OS.
I think your best approach to this would be:
ansifilter
workI need to find how to convert the : sed -r 's/$ansi_codes//g' to sed 's/some_stuff_ansi_codes//g'
Please note that the -r
flag was added so that "extended regular expressions" can be used with sed. I'm not even sure if solaris' sed version has those.
I have just started to use the TMUX 2.3 with the "tmux-logging" but I can see that the log files are not filled with logs. I can see empty files only:
-rw-r--r-- 1 user user 0 Dec 9 11:41 tmux-base_dev-1-0-20161209T114146.log -rw-r--r-- 1 user user 0 Dec 9 11:44 tmux-base_dev-1-0-20161209T114452.log
The problem is that the "ansifilter" cannot be installed/compiled on Solaris 10 (or I just didnt succeed...) and that the "sed -r" (sed regex) is not supported on this OS. Because of that the function "pipe_pane_sed()" is sending nothing as "sed -r" is not recognised:
[..] pipe_pane_sed() { local ansi_codes="(\x1B[([0-9]{1,2}(;[0-9]{1,2})?)?[m|K]|^M)" tmux pipe-pane "exec cat - | sed -r 's/$ansi_codes//g' >> $FILE" } [..]
I need to find how to convert the :
sed -r 's/$ansi_codes//g' to sed 's/some_stuff_ansi_codes//g'
Maybe there is a workaround ? Would be nice to add an "system_solaris()" in start_logging.sh :)
cheers, Michal