Quote:
Originally Posted by
rogerben
Not exactly the font but whatever other html options need to display in terminal.
I think you are mixing up different layers of representation here.
HTML is a description language and code written in this language has to be interpreted by a program understanding the language to be carried out. These programs exist and are usually called "web browsers". Basically a web browser is a program able to create and operate network connections on one side (like telnet, ssh, ftp, and many others do too, but using a different protocol - http) and an interpreter which "reads" the data transferred this way - HTML documents - and renders it to its graphical representation on the other side.
It could also just spew out the raw data instead - this is what "batch browsers" like cURL or wget do - or limit the rendering process to simple text - these are text-mode browsers like lynx.
In any case, there is no reason why a terminal (or terminal emulation program) should
interpret (render) any HTML-data. It won't interpret C-code or any other program either. There are special programs for that - C-Compilers for C-code, browser software for HTML, and so forth.
If you want to use extended formatting capabilities in a terminal (coloured text and the like) you need to either use so-called "termcap" (terminal capabilities database) functions (see the man page for "tput" and generally the keyword "termcap" and "terminfo" to learn more), or use the "curses" library, which does that for you. Another option is to - instead of using shell scripts in a terminal - use Tcl/tk, which is a scripting language similar to the shell but bringing its own graphical environment with it.
I hope this helps.
bakunin