xterm insist on 80x24 when run with -e
by RudyMartin from LinuxQuestions.org on (#6KMK9)
from another terminal, this works as is:
Code:#!/bin/bash
xterm -geometry auto -fullscreen -fa "Courier 10 Pitch" -fs 14COLUMNS shell variable is set to to 174
but I have a secondary script:
Code:#!/bin/bash
echo $SHELL
lines=$(tput lines)
columns=$(tput cols)
echo "Lines: " $lines
echo "Columns: " $columns
tail -f /var/log/httpd/resellers443.access_log
if I run it from the xterm maximized window it will show 174 columns, shell is bash and tail working as usual.
but if I put both togheter:
Code:xterm -geometry auto -fullscreen -fa "Courier 10 Pitch" -fs 14 -e ./acc2.shI get:
Quote:
how can I get xterm to work with full columns
running Slackware 15+
edit: in case someone wonders, end goal is to add an menu item to WindowMaker menu to open a xterm fullscreen with the log access of a local site
thanks a lot
Code:#!/bin/bash
xterm -geometry auto -fullscreen -fa "Courier 10 Pitch" -fs 14COLUMNS shell variable is set to to 174
but I have a secondary script:
Code:#!/bin/bash
echo $SHELL
lines=$(tput lines)
columns=$(tput cols)
echo "Lines: " $lines
echo "Columns: " $columns
tail -f /var/log/httpd/resellers443.access_log
if I run it from the xterm maximized window it will show 174 columns, shell is bash and tail working as usual.
but if I put both togheter:
Code:xterm -geometry auto -fullscreen -fa "Courier 10 Pitch" -fs 14 -e ./acc2.shI get:
Quote:
/bin/bash Lines: 24 Columns: 80 192.168.210.10 - - [26/Mar/2024:12:03:47 -0300] "GET /html/js/jquery-3.5.1.min.js HTTP/1.1" 200 89476 ... |
running Slackware 15+
edit: in case someone wonders, end goal is to add an menu item to WindowMaker menu to open a xterm fullscreen with the log access of a local site
thanks a lot