autoload ("save_windows_cmd", "window.sl"); autoload ("restore_windows_cmd", "window.sl");in your .jedrc file.
If you need to use the functions in your modes, use
require("window");
The first window with a desired size of 0 will be 'elastic' - it's size will shrink or grow so that other windows. If none of the parameters is 0, the bottom window will be elastic. If the screen is too small, the function may fail.
Example:
create_windows(4, 0, 2)will create 3 windows:
File Edit Mode Search Buffers Windows System Help [EOB] -**-----|V0.99.16| Buffer1 () | 1/9,1------------------------- -**-----|V0.99.16| Buffer1 () | 9/9,1------------------------- [EOB] -**-----|V0.99.16| Buffer1 () | 9/9,1-------------------------The top one has 4 lines, the bottom one 2 lines and the middle has the rest.
Example:
create_windows(40, 60)will create 2 windows:
File Edit Mode Search Buffers Windows System Help [EOB] -**-----|V0.99.16| Buffer1 () | 9/9,1------------------------- [EOB] -**-----|V0.99.16| Buffer1 () | 9/9,1-------------------------The top one is 40% of total height, the bottom one will is 60% of total height.
Returns a linked list of window information (WindowInfo_Type).
Suitable for a menu entry.
Suitable for a menu entry.