Angband.oook.cz
Angband.oook.cz
AboutVariantsLadderForumCompetitionComicScreenshotsFunniesLinks

Go Back   Angband Forums > Angband > Vanilla

Reply
 
Thread Tools Display Modes
Old March 6, 2016, 04:10   #1
fruviad
Apprentice
 
Join Date: Jan 2011
Posts: 53
fruviad is on a distinguished road
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+?
fruviad is offline   Reply With Quote
Old March 6, 2016, 05:33   #2
Nick
Vanilla maintainer
 
Nick's Avatar
 
Join Date: Apr 2007
Location: Canberra, Australia
Age: 54
Posts: 8,260
Donated: $60
Nick will become famous soon enough
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.
Nick is online now   Reply With Quote
Old March 6, 2016, 13:20   #3
fruviad
Apprentice
 
Join Date: Jan 2011
Posts: 53
fruviad is on a distinguished road
Quote:
Originally Posted by Nick View Post
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!
fruviad is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Crashing bug on window size borad Development 4 April 6, 2015 03:06
Just lost all the subwindows in 3.4.1 Goldbug Vanilla 7 August 2, 2013 10:34
Balance of subwindows GCU Kramborn Development 0 June 15, 2013 18:45
How to display subwindows in Linux? dfreer Vanilla 4 October 4, 2008 10:07
Dungeon window size Bodkin Vanilla 2 March 30, 2008 04:48


All times are GMT +1. The time now is 01:28.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2020, vBulletin Solutions Inc.