Output this screen using HTML.
10440
public void printHtmlIcon(PrintWriter out, String strTag, String strParams, String strData)
    {
        String strIcon = "Menu";
        strIcon = HtmlConstants.HTML_ROOT + HtmlConstants.ICON_DIR + strIcon + ".gif";
        out.print(strIcon + "\n");
    }
695999
public function render()
    {
        $metric = new Metric('print-out');
        $metric->start();
        ini_set('memory_limit', '512M');

        if ( ! is_string($this->expression)) {
            $this->expression = print_r($this->expression, true);
        }

        $expression = htmlentities($this->expression);
        $expression = htmlspecialchars(htmlspecialchars_decode($this->expression, ENT_QUOTES), ENT_QUOTES, 'UTF-8');
        $trace = new Trace();

        $metric->stop();

        ob_start();
        include __DIR__ . '/Views/Screen.php';
        $output = ob_get_contents();
        ob_end_clean();

        return $output;
    }
921533
static public function display()
    {
        Sorter::sort(Listing::$files);
        $content = '<!DOCTYPE html>';
        $content .= sprintf('
<html xmlns="http://www.w3.org/1999/xhtml" lang="%s">', Translation::getCanonicalLocale());
        $content .= '
    <head>
        <meta charset="utf-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <title>' . sprintf(Translation::trans('index_of'), Main::getDir()) . '</title>';
        $content .= static::getStyle();
        $content .= '
    </head>
    <body>';
        $content .= static::getTitle();
        $content .= '
        <table align="center">';
        $content .= static::getHeader();
        foreach (Listing::$files as $file) {
            $content .= static::getRow($file);
        }
        $content .= static::getFooter();
        $content .= '
        </table>';
        $content .= '
    </body>
</html>';
        die($content);
    }
1335848
def show(self):
        
        display(HTML("""<div id="%s"></div>""" % (self.igv_id)))
        # DON'T check status before showing browser,
        msg = json.dumps({
            "id": self.igv_id,
            "command": "create",
            "options": self.config
        })
        self.comm.send(msg)
1361834
public String html() {
        StringBuilder accum = StringUtil.borrowBuilder();
        html(accum);
        String html = StringUtil.releaseBuilder(accum);
        return NodeUtils.outputSettings(this).prettyPrint() ? html.trim() : html;
    }
884818
public void printEndGridScreenData(PrintWriter out, int iPrintOptions)
    {
        out.println(Utility.endTag(XMLTags.DATA));
    }
418561
function _getScreen()
    {
        $output = '';
        for ($i = 0; $i <= $this->max_y; $i++) {
            for ($j = 0; $j <= $this->max_x + 1; $j++) {
                if (isset($this->attrs[$i][$j])) {
                    $output.= $this->attrs[$i][$j];
                }
                if (isset($this->screen[$i][$j])) {
                    $output.= htmlspecialchars($this->screen[$i][$j]);
                }
            }
            $output.= "\r\n";
        }
        return rtrim($output);
    }
246113
def page(self, attr=None, fill=u' '):
        '''
        if attr is None:
            attr = self.attr
        if len(fill) != 1:
            raise ValueError
        info = CONSOLE_SCREEN_BUFFER_INFO()
        self.GetConsoleScreenBufferInfo(self.hout, byref(info))
        if info.dwCursorPosition.X != 0 or info.dwCursorPosition.Y != 0:
            self.SetConsoleCursorPosition(self.hout, self.fixcoord(0, 0))

        w = info.dwSize.X
        n = DWORD(0)
        for y in range(info.dwSize.Y):
            self.FillConsoleOutputAttribute(self.hout, attr, 
                                            w, self.fixcoord(0, y), byref(n))
            self.FillConsoleOutputCharacterW(self.hout, ord(fill[0]), 
                                             w, self.fixcoord(0, y), byref(n))

        self.attr = attr
177689
function outputHTMLString(messages) {
  var rootIndex = 0;
  for (var i = 1; i < messages.length; i++) {
    rootIndex = messages[i].frameIndex === '0' ? i : rootIndex;
  }
  fillRemainingHolesAndMinimizeStyles(messages, rootIndex);
  return messages[rootIndex].html.join('');
}
19576
function() {
    var self = this;
    if (!this.get('screen')) {
      this.set('screen', new Screen());
    }
    this.updateTextLines();
    this.observe(this, 'change:text change:width', function() {
      self.updateTextLines();
    });
    this.observe(this, 'change:visible change:textLines change:height', function() {
      self.render();
    });
    this.render();
  }
637377
public function render() {

		$this->screen = get_current_screen();

		if ( ! $this->is_active() ) {
			return;
		}

		$this->screen->add_help_tab( array(
			'id'      => $this->slug,
			'title'   => $this->struct['title'],
			'content' => $this->struct['content'],
		) );

	}
164140
public function output()
    {
        if ($this->_output) {
            return;
        }
        if ($this->getFormat() === 'html') {
            $this->outputHtml();
        } else {
            $this->outputPlaintext();
        }
        $this->_output = true;
    }
483557
public void printDataStartForm(PrintWriter out, int iPrintOptions)
    {
        if ((iPrintOptions & HtmlConstants.MAIN_SCREEN) == HtmlConstants.MAIN_SCREEN)
        {
        }
        else if ((iPrintOptions & HtmlConstants.DETAIL_SCREEN) == HtmlConstants.DETAIL_SCREEN)
        {
            out.println("<tr>\n<td colspan=\"20\">");
        }
        else if ((iPrintOptions & HtmlConstants.HEADING_SCREEN) == HtmlConstants.HEADING_SCREEN)
        {
            out.println("<tr>\n<td colspan=\"20\">");
        }
        else if ((iPrintOptions & HtmlConstants.FOOTING_SCREEN) == HtmlConstants.FOOTING_SCREEN)
        {
            out.println("<tr>\n<td colspan=\"20\">");
        }
        else
            out.println("<table border=\"0\">");    // First time
    }
403326
public function display()
    {
        if (!$this->visible) {
            return;
        }

        parent::display();

        $input_tag = new SwatHtmlTag('input');
        $input_tag->type = 'file';
        $input_tag->name = $this->id;
        $input_tag->id = $this->id;
        $input_tag->class = $this->getCSSClassString();
        $input_tag->accesskey = $this->access_key;
        $input_tag->tabindex = $this->tab_index;
        $input_tag->size = $this->size;

        // note: the 'accept' attribute is part of the w3c standard, but
        //       is ignored by most browsers
        if ($this->accept_mime_types !== null) {
            $input_tag->accept = implode(',', $this->accept_mime_types);
        }

        if (!$this->isSensitive()) {
            $input_tag->disabled = 'disabled';
        }

        $input_tag->display();

        if ($this->display_maximum_upload_size) {
            $div_tag = new SwatHtmlTag('div');
            $div_tag->class = 'swat-note';
            $div_tag->setContent($this->getMaximumUploadSizeText());
            $div_tag->display();
        }
    }
958717
public function display() {
        global $OUTPUT, $PAGE;
        // Finalize the form definition if not yet done.
        if (!$this->_definition_finalized) {
            $this->_definition_finalized = true;
            $this->definition_after_data();
        }

        $mform = $this->_form;

        // Add "This form has required fields" text in the bottom of the form.
        if (($mform->_required || $this->hasrequired) &&
               ($this->mode == self::MODE_COMPLETE || $this->mode == self::MODE_PRINT || $this->mode == self::MODE_VIEW_TEMPLATE)) {
            $element = $mform->addElement('static', 'requiredfields', '',
                    get_string('somefieldsrequired', 'form',
                            $OUTPUT->pix_icon('req', get_string('requiredelement', 'form'))));
            $element->setAttributes($element->getAttributes() + ['class' => 'requirednote']);
        }

        // Reset _required array so the default red * are not displayed.
        $mform->_required = array();

        // Move buttons to the end of the form.
        if ($this->mode == self::MODE_COMPLETE) {
            $mform->addElement('hidden', '__dummyelement');
            $buttons = $mform->removeElement('buttonar', false);
            $mform->insertElementBefore($buttons, '__dummyelement');
            $mform->removeElement('__dummyelement');
        }

        $this->_form->display();

        if ($this->mode == self::MODE_EDIT) {
            $PAGE->requires->js_call_amd('mod_feedback/edit', 'setup');
        }
    }
762413
public function display() {
        if (count($this->capabilities) > self::NUM_CAPS_FOR_SEARCH) {
            global $PAGE;
            $jsmodule = array(
                'name' => 'rolescapfilter',
                'fullpath' => '/admin/roles/module.js',
                'strings' => array(
                    array('filter', 'moodle'),
                    array('clear', 'moodle'),                ),
                'requires' => array('node', 'cookie', 'escape')
            );
            $PAGE->requires->js_init_call('M.core_role.init_cap_table_filter', array($this->id, $this->context->id), false,
                $jsmodule);
        }
        echo '<table class="' . implode(' ', $this->classes) . '" id="' . $this->id . '">' . "\n<thead>\n";
        echo '<tr><th class="name" align="left" scope="col">' . get_string('capability', 'core_role') . '</th>';
        $this->add_header_cells();
        echo "</tr>\n</thead>\n<tbody>\n";

        // Loop over capabilities.
        $contextlevel = 0;
        $component = '';
        foreach ($this->capabilities as $capability) {
            if ($this->skip_row($capability)) {
                continue;
            }

            // Prints a breaker if component or name or context level has changed.
            if (component_level_changed($capability, $component, $contextlevel)) {
                $this->print_heading_row($capability);
            }
            $contextlevel = $capability->contextlevel;
            $component = $capability->component;

            // Start the row.
            $rowattributes = $this->get_row_attributes($capability);
            // Handle class attributes same as other.
            $rowclasses = array_unique(array_merge(array('rolecap'), $this->get_row_classes($capability)));
            if (array_key_exists('class', $rowattributes)) {
                $rowclasses = array_unique(array_merge($rowclasses, array($rowattributes['class'])));
            }
            $rowattributes['class']  = implode(' ', $rowclasses);

            // Table cell for the capability name.
            $contents = '<th scope="row" class="name"><span class="cap-desc">' . get_capability_docs_link($capability) .
                '<span class="cap-name">' . $capability->name . '</span></span></th>';

            // Add the cells specific to this table.
            $contents .= $this->add_row_cells($capability);

            echo html_writer::tag('tr', $contents, $rowattributes);
        }

        // End of the table.
        echo "</tbody>\n</table>\n";
    }
989945
public void printScreen(PrintWriter out, ResourceBundle reg)
        throws DBException
    {
        String strHTML = "";

        ClassInfoModel classInfo = (ClassInfoModel)Record.makeRecordFromClassName(ClassInfoModel.THICK_CLASS, ((HelpScreen)this.getScreenField()));
        if (classInfo != null)
            classInfo = classInfo.readClassInfo(((HelpScreen)this.getScreenField()), null);

        String strClassName = classInfo.getClassName();
        if ((strClassName != null) && (strClassName.equalsIgnoreCase("MenuScreen")))
        {
            strHTML = reg.getString("htmlHelpMenu");
            if ((strHTML == null) || (strHTML.length() == 0))
                strHTML =
                    "<CENTER><h2>" + HtmlConstants.TITLE_TAG + "</h2></CENTER>" +
                    "<h3>Description:</h3>" +
                    "<p>" + HtmlConstants.MENU_DESC_TAG + "</p>" + 
                    "<h3>Menu items:</h3>";
            Record menu = Record.makeRecordFromClassName(MenusModel.THICK_CLASS, null);
            menu.setKeyArea(MenusModel.TYPE_KEY);
            menu.getField(MenusModel.TYPE).setString(DBParams.MENU);
            String strParamMenu = this.getProperty(DBParams.MENU);      // Display record
            menu.getField(MenusModel.PROGRAM).setString(strParamMenu);
            boolean bSuccess = menu.seek("=");
            if (!bSuccess)
                ;   // Do something?
            XMLParser parser = new MenuParser((HelpScreen)this.getScreenField(), menu);
            parser.parseHtmlData(out, strHTML);
            parser.free();
            parser = null;

            menu.free();
            menu = null;
        }
        else
        {
            if (strHTML.length() == 0)
            {
                if ((strClassName != null) && (strClassName.length() > 0))
                    strHTML = reg.getString("htmlHelp");
                else
                {
                    strHTML = reg.getString("htmlHelpDefault");
                    out.println(strHTML);
                    classInfo.free();
                    classInfo = null;
                    return;
                }
            }
            if ((strHTML == null) || (strHTML.length() == 0))
                strHTML =
                "<h2>" + HtmlConstants.TITLE_TAG + "</h2>" +
                "<h3>Description:</h3>" +
                "<p>" + HtmlConstants.MENU_DESC_TAG + "</p>" +
                "<h3>Operation:</h3>" +
                "<p>" + HtmlConstants.HELP_TAG + "</p>";
    
            XMLParser parser = new HelpParser((HelpScreen)this.getScreenField(), classInfo);
            parser.parseHtmlData(out, strHTML);
            parser.free();
            parser = null;
        }
        classInfo.free();
        classInfo = null;
    }