#81 -geometry flag notprocessed correctly

closed
nobody
None
5
2012-02-14
2012-02-13
John P. Hartmann
No

Passing e.g., -geometry 120x50 to xinit() makes the X window the specified size, but LINES (and the underlying getmaxy) still shows the default 24 lines.

Calling resize_term(0, 0) does not change the curses window until the X window is resized. At that point X and curses are back in sync?

Any workaraound other than decoding the -geometry flag and calling resize_term() with the correct window size?

Discussion

  • The documentation states clearly that you cannot use resize_term() with X other than in a response to the X window being resized.

    Use -geometry with signed numbers to position the window and -lines and -cols to control its size.

    There seems to be no programmatical way to resize the window dynamically.

     
    • status: open --> closed