dispx: Display styled string in xterm

version (2.45 KB) by Douglas Schwarz
Display string with underlined, bold or colored characters in an xterm.


Updated Mon, 12 Jun 2006 15:27:08 +0000

View License

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

Cite As

Douglas Schwarz (2022). dispx: Display styled string in xterm (https://www.mathworks.com/matlabcentral/fileexchange/11376-dispx-display-styled-string-in-xterm), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2006a
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!