http://linhes.org/2010-04-22T23:37:35+00:00 LinHES - Feature #692: Automatically select xterm font sizehttp://linhes.org/issues/692?journal_id=89652010-04-22T23:37:35+00:00GregFrostgregfrost1@bigpond.com.au
<ul><li><strong>Assignee</strong> deleted (<strike></strike>)</li><li><strong>Priority</strong> changed from <i>Normal</i> to <i>Normal</i></li><li><strong>Tracker</strong> set to <i>Feature</i></li><li><strong>Due date</strong> deleted (<strike></strike>)</li><li><strong>Estimated time</strong> deleted (<strike></strike>)</li><li><strong>Status</strong> changed from <i>New</i> to <i>Closed</i></li><li><strong>Description</strong> set to <i>Instead of having a single font selection for the xterm that is initiated with the Alt-X key press, call a script that determines the display dimensions and selects a font that makes the standard 80x24 xterm almost fill the screen. This will allow for better readability at normal TV viewing distances.</i></li><li><strong>Target version</strong> set to <i>6.03.00</i></li><li><strong>Category</strong> set to <i>Other</i></li><li><strong>% Done</strong> changed from <i>0</i> to <i>100</i></li><li><strong>Start date</strong> set to <i>04/22/2010</i></li><li><strong>Project</strong> set to <i> LinHES</i></li><li><strong>Subject</strong> set to <i>Automatically select xterm font size</i></li><li><strong>Subproject of</strong> deleted (<strike></strike>)</li></ul> LinHES - Feature #692: Automatically select xterm font sizehttp://linhes.org/issues/692?journal_id=29622010-04-23T18:00:27+00:00GregFrostgregfrost1@bigpond.com.au
<ul></ul><p>This script seems to do the job:<br />tvterm.bash:<br /><pre>
#!/bin/bash
#
# Create a terminal with a font that mostly fills the width of the screen.
width=$(echo $(xdpyinfo | grep dimensions:) | cut -d' ' -f2 | cut -dx -f1)
echo width=$width
if [ -z "$width" ] ; then
width=1024
fi
if [ $width -ge 1920 ] ; then
fontsize=24
elif [ $width -ge 1440 ] ; then
fontsize=21
elif [ $width -ge 1280 ] ; then
fontsize=18
elif [ $width -ge 1024 ] ; then
fontsize=14
elif [ $width -ge 800 ] ; then
fontsize=11
elif [ $width -ge 640 ] ; then
fontsize=8
fi
xterm -fa 'DejaVu Sans Mono' -fs $fontsize
</pre></p>
<p>Where is the appropriate place for such a script in the file system and which package should it be in?<br />An install script for the package could update ~mythtv/.fluxbox/keys to call this for Alt-X.</p> LinHES - Feature #692: Automatically select xterm font sizehttp://linhes.org/issues/692?journal_id=29642010-04-25T18:20:41+00:00GregFrostgregfrost1@bigpond.com.au
<ul></ul><p>I have added the script to LinHES-system, changed the install script so that it updates mythtv's keys file and updated the base keys file in the fluxbox package with commit <a class="external" href="http://linhes.org/cgit/cgit.cgi/LinHES-PKGBUILD/commit/?id=10323c9e44904c46e8ec55bcac9e7bf6c4400f13">http://linhes.org/cgit/cgit.cgi/LinHES-PKGBUILD/commit/?id=10323c9e44904c46e8ec55bcac9e7bf6c4400f13</a></p> LinHES - Feature #692: Automatically select xterm font sizehttp://linhes.org/issues/692?journal_id=29782010-05-16T17:25:06+00:00cecil
<ul><li><strong>Status</strong> changed from <i>New</i> to <i>Closed</i></li><li><strong>Target version</strong> set to <i>6.03.00</i></li><li><strong>Category</strong> set to <i>Other</i></li><li><strong>% Done</strong> changed from <i>0</i> to <i>100</i></li></ul>