Skip to content

Instantly share code, notes, and snippets.

@krisrice
Created October 14, 2021 00:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save krisrice/481d16b28ce226bdb6efe18e3463e6e2 to your computer and use it in GitHub Desktop.
Save krisrice/481d16b28ce226bdb6efe18e3463e6e2 to your computer and use it in GitHub Desktop.
set scan off
set define off
script
var StatusBarComponent = Java.type("oracle.dbtools.raptor.console.StatusBarComponent");
var component = new StatusBarComponent() {
getName: function() {
return "cmdstatus";
},
getDescription: function() {
return "cmdstatus ";
},
update: function(context) {
if ( ctx.getProperty("sqldev.last.err.message") ) {
context.append("👎");
} else {
context.append("👍");
}
}
};
ctx.getConsoleService().registerStatusBarComponent(component);
/
set statusbar add cmdstatus
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment