Code covered by the BSD License  

Highlights from
dispx: Display styled string in xterm

Be the first to rate this file! 1 Download (last 30 days) File Size: 2.45 KB File ID: #11376
image thumbnail

dispx: Display styled string in xterm

by Douglas Schwarz

 

12 Jun 2006 (Updated 12 Jun 2006)

Display string with underlined, bold or colored characters in an xterm.

| Watch this File

File Information
Description

This function allows you to display strings in an xterm with bold, underline, blink and/or color attributes. The format is controlled by embedding commands in the string, similar to LaTeX (though with far less functionality). For example,

dispx('The word \fg{r}{red} will be red.')

This capability will not work with the Desktop user interface, only in an xterm. That is the interface you get on Linux and Mac OS X when you start MATLAB with

matlab -nodesktop

MATLAB release MATLAB 7.2 (R2006a)
Other requirements Mac OS X or Linux, xterm
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (2)
13 Jun 2006 Frederic Moisy

Nice! Is it technically possible to extend this feature for the Desktop command window?

17 Jun 2006 Douglas Schwarz

Frederic, I suppose it would be possible, but it would have to be done in a completely different way. I assume changes to the Desktop interface itself would have to be made. My program uses ANSI escape sequences which certainly do not work in the Desktop.

Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
xterm Douglas Schwarz 22 Oct 2008 08:29:30
disp Douglas Schwarz 22 Oct 2008 08:29:30
string Douglas Schwarz 22 Oct 2008 08:29:30
display Douglas Schwarz 22 Oct 2008 08:29:30
utilities Douglas Schwarz 22 Oct 2008 08:29:30

Contact us at files@mathworks.com