Controlling window size for subwindows?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • fruviad
    Apprentice
    • Jan 2011
    • 74

    Controlling window size for subwindows?

    I decided to try to rune ID feature branch, and I'm invoking the game as:

    ./angband -mx11 -- -n5

    This opens 5 windows: the main window, and 4 additional windows titled "Term-1" through "Term-4".

    The problem I'm seeing is that the windows for Term-1 and Term-2 are a decent size, but any additional Term windows are about 25% the size of the main window. These windows and their contents are shrunken, making them nearly illegible.

    This occurs for any terminal beyond Term-2, even if I increase "-n9". I haven't tested beyond that.

    I'm running on an Ubuntu 14.04 system (upgraded ~12 hours ago from 12.04.) It's a laptop with an additional monitor.

    I've repro'd this with Unity, Metacity, and Compiz.

    All of my other subwindow experience has been with a subwindows within a single window, so I don't know whether the problem is limited to the rune ID branch.

    Has anyone else seen this, and discovered a way to control the sizes of Term-3+?
  • Nick
    Vanilla maintainer
    • Apr 2007
    • 9647

    #2
    There are two ways to fix this, one of which seems to be currently broken:
    1. There are environment variables ANGBAND_X11_FONT_n, for n the terminal number; if you set that variable to a font size, you will get that font in that terminal - so if you are using bash as your shell,
      Code:
      export "ANGBAND_X11_FONT_4=9x15"
      will give 9x15 font in terminal 4.
    2. There ia a file in your user directory (usually ~/.angband/Angband/) x11-settings.prf which keeps track of your settings (so will remember your window positions if you move them), and can be edited directly. Sadly, that seems to be broken currently - I will file a bug.


    If you are interested, there is a sample script (for csh, but can be adapted to other shells) for simple running at the top of src/main-x11.c.
    One for the Dark Lord on his dark throne
    In the Land of Mordor where the Shadows lie.

    Comment

    • fruviad
      Apprentice
      • Jan 2011
      • 74

      #3
      Originally posted by Nick
      There are two ways to fix this, one of which seems to be currently broken:
      1. There are environment variables ANGBAND_X11_FONT_n, for n the terminal number; if you set that variable to a font size, you will get that font in that terminal - so if you are using bash as your shell,
        Code:
        export "ANGBAND_X11_FONT_4=9x15"
        will give 9x15 font in terminal 4.
      2. There ia a file in your user directory (usually ~/.angband/Angband/) x11-settings.prf which keeps track of your settings (so will remember your window positions if you move them), and can be edited directly. Sadly, that seems to be broken currently - I will file a bug.


      If you are interested, there is a sample script (for csh, but can be adapted to other shells) for simple running at the top of src/main-x11.c.
      Thank you!!! The environment variable does fix it for me!

      Comment

      Working...
      😀
      😂
      🥰
      😘
      🤢
      😎
      😞
      😡
      👍
      👎