Blank Crosh Problem
on the tab that you have crosh open in, open developer tools and run the following in the console (This will have to be run each time you open an instance of crosh, until the accessibility method gets fixed on the dev branch):
Crosh.init = function() {
const qs = lib.f.parseQuery(document.location.search);
const profileName = qs['profile'];
var terminal = new hterm.Terminal(profileName);
terminal.decorate(document.querySelector('#terminal'));
const runCrosh = function() {
terminal.keyboard.bindings.addBinding('Ctrl-Shift-P', function() {
nassh.openOptionsPage();
return hterm.Keyboard.KeyActions.CANCEL;
});
terminal.setCursorPosition(0, 0);
terminal.setCursorVisible(true);
terminal.runCommandClass(Crosh, qs['args'] || []);
terminal.command.keyboard_ = terminal.keyboard;
};
terminal.onTerminalReady = function() {
runCrosh();
};
// Useful for console debugging.
window.term_ = terminal;
console.log(nassh.msg(
'CONSOLE_CROSH_OPTIONS_NOTICE',
['Ctrl-Shift-P', lib.f.getURL('/html/nassh_preferences_editor.html')]));
return true;
};
Crosh.init();