openWindow ?-name str? ?-attributes num? ?-encoding name? ?-geom {l b w h}? ?-text str? ?-bar token? ?-adjust (0|1)? ?-wrap (0|1)?
Open a new window not related to a file on disk. The -name option specifies the title of the window.
The -geom option specifies the position and size of the window: its value is a list of four numbers corresponding respectively to the x-coord and y-coord of the bottom left corner in screen coordinates and the width and height.
The -adjust option is used to automatically adjust the geometry of the window to the screen dimensions. The default value is given by the global preference Force Main Screen.
The -bar option specifies the token of a toolbar to insert at the top of the window (see the [toolbar] command).
The -wrap option is used to specify soft wrapping: by default, a document is opened without text wrapping.
The -encoding option specifies the encoding of the new window: this is the encoding which will be used when the window is saved. Its default value is given by the outputEncoding preference.
The -attributes option controls window and text properties. Its value is a sum of flags with the following meaning:
DescriptionDecimal valuePower of 2
No Toolbar1(1 << 0)
No Dirty State2(1 << 1)
No Vcs Popup4(1 << 2)
No Parse Popup8(1 << 3)
No Marks Popup16(1 << 4)
No Split Popup32(1 << 5)
No Info Popup64(1 << 6)
No Mode Popup128(1 << 7)
No Message Bar256(1 << 8)
No Vertical Scrollbar512(1 << 9)
No Horizontal Scrollbar1024(1 << 10)
No Close Button2048(1 << 11)
No Collapse Button4096(1 << 12)
No Zoom Button8192(1 << 13)
Not Resizable16384(1 << 14)
No Path Control32768(1 << 15)
No Line Numbers65536(1 << 16)
No Coloring131072(1 << 17)
Show Invisibles262144(1 << 18)
Link Detection524288(1 << 19)
Dash Substitution1048576(1 << 20)
Data Detection2097152(1 << 21)
Quote Substitution4194304(1 << 22)
Text Replacement8388608(1 << 23)
Spelling Correction16777216(1 << 24)
Continuous Spell Checking33554432(1 << 25)
Grammar Checking67108864(1 << 26)
Incremental Searching134217728(1 << 27)
Smart Insert Delete268435456(1 << 28)
By default, the attributes are set to 0.