Rank: 4517 based on 8 downloads (last 30 days) and 1 file submitted
photo

Dan O'Shea

E-mail
Company/University
Stanford University

Personal Profile:
Professional Interests:

 

Watch this Author's files

 

Files Posted by Dan
Updated   File Tags Downloads
(last 30 days)
Comments Rating
20 Sep 2012 Screenshot tcprintf : ANSI colored output in terminal tcprintf provides colored output when using MATLAB from a terminal using ANSI escape codes. Author: Dan O'Shea color, fprintf, terminal, ansi, debug 8 2
  • 5.0
5.0 | 2 ratings
Comments and Ratings by Dan
Updated File Comments Rating
13 Mar 2013 typecast and typecastx C-mex functions typecast and typecastx are mex functions that mimic the MATLAB typecast function with extensions Author: James Tursa

Very nice! For those having some trouble trying to build this on Mac 10.8 or recent versions of Ubuntu, try the following:

On Mac OS 10.8:
from http://stackoverflow.com/questions/12643236/matlab-2012a-mex-to-work-with-xcode-4-5-on-mountain-lion

run mex -setup and choose mexopts.sh (1 for me)
edit ~/.matlab/R2012b/mexopts.sh
change CC from gcc to llvm-gcc
change CXX from g++ to llvm-g++
set SDKROOT to '/'

On ubuntu:
from
http://www.mathworks.com/matlabcentral/answers/47064-running-mex-files-compiled-on-linux
http://stackoverflow.com/a/5963813

run setenv('LD_LIBRARY_PATH', '/usr/local/lib:/usr/lib:/usr/local/lib64:/usr/lib64')
before running typecastx

Comments and Ratings on Dan's Files View all
Updated File Comment by Comments Rating
23 Jan 2013 tcprintf : ANSI colored output in terminal tcprintf provides colored output when using MATLAB from a terminal using ANSI escape codes. Author: Dan O'Shea Vincent

perfect! exactly what I was looking for.

20 Sep 2012 tcprintf : ANSI colored output in terminal tcprintf provides colored output when using MATLAB from a terminal using ANSI escape codes. Author: Dan O'Shea Altman, Yair

Very nice idea and implementation. I liked the blink [counter-]suggestion :-)

A few ideas for improvement:
- make the inputs case-insensitive
- revert to cprintf (if available) in case of usejava('desktop') and not datatip
- use the full 256 color indices use by xterm for fg,bg colors (ANSI codes 38,48 respectively); KDE's Konsole even supports full RGB here
- codes 35,45 are often called magenta, not purple; I suggest that you accept both of these as synonyms to this code
- similarly, 33,43 are displayed as brown on VGA monitors, so I suggest accepting "brown" as a synonym

20 Sep 2012 tcprintf : ANSI colored output in terminal tcprintf provides colored output when using MATLAB from a terminal using ANSI escape codes. Author: Dan O'Shea Altman, Yair

Top Tags Applied by Dan
ansi, color, debug, fprintf, terminal
Files Tagged by Dan
Updated   File Tags Downloads
(last 30 days)
Comments Rating
20 Sep 2012 Screenshot tcprintf : ANSI colored output in terminal tcprintf provides colored output when using MATLAB from a terminal using ANSI escape codes. Author: Dan O'Shea color, fprintf, terminal, ansi, debug 8 2
  • 5.0
5.0 | 2 ratings

Contact us