/usr/share/radare2/0.9.6/www/enyo/js/logs.js is in libradare2-common 0.9.6-3.1ubuntu1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 | enyo.kind ({
name: "Logs",
kind: "Scroller",
style: "background-color:#c0c0c0;padding-left:8px",
components: [
{tag: "form", attributes: {action:"javascript:#"}, components: [
{kind: "FittableRows", fit: true, classes: "fittable-sample-shadow", components: [
{kind: "onyx.InputDecorator", style: "margin-top:8px;background-color:#404040;width: 90%;display:inline-block", components: [
{kind: "Input", style:"width:100%;color:white", value: '', onkeydown: "sendMessage", attributes: {autocapitalize:"off"}, name: "input"},
]},
{tag: "pre", classes:"r2ui-terminal", style:"width:90%;", fit: true, allowHtml: true, name:"output"}
]}
]}
],
logger: null,
create: function() {
this.inherited (arguments);
var out = this.$.output;
this.logger = r2.get_logger ().on ("message", function (msg) {
out.setContent (out.getContent() + msg.text + "\n");
});
this.logger.autorefresh (3);
},
sendMessage: function (inSender, inEvent) {
if (inEvent.keyCode === 13) {
var msg = this.$.input.getValue ();
this.$.input.setValue ("");
this.logger.send (msg);
}
}
});
|