View-state Object

The view-state object mentioned in the descriptions of elinks.preformat_html and elinks.vs is a wrapper for the internal ELinks view_state object. The view state holds information on how the current document is being displayed.

Compatibility: ELinks 0.11.1

View-state Object Properties

vs.plain (boolean)
Whether the current document is rendered as HTML or displayed as plaintext. This can be read and set.
vs.uri (string)
This is the URI of the current document. It is read-only.