Skip to Main Content

SQLcl: MCP Server & SQL Prompt

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Getting the console window's title

StuartHAug 1 2019 — edited Aug 5 2019

This is probably not the place to ask this, but within sqlcl I want to retrieve the title of the console window in which sqlcl is running.

I startup sqlcl through windows shortcut commands, and the title will default to the filename of the shortcut that opened it.  And I want to store the name of that shortcut (and possibly use it to do some additional validation on startup).

I've been searching through the java libraries, the closest I can find that might hold it is java.awt.Window.getName(), but I wouldn't know how to find the instance of Window class within sqlcl in order to test that theroy.

Can anyone provide any guideance or direction for this?

Thanks

Comments
Post Details
Added on Aug 1 2019
4 comments
426 views