LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices


Reply
  Search this Thread
Old 03-26-2024, 11:24 AM   #1
RudyMartin
Member
 
Registered: Nov 2011
Location: Argentina
Distribution: Slackware, Debian
Posts: 38

Rep: Reputation: Disabled
xterm insist on 80x24 when run with -e


from another terminal, this works as is:

Code:
#!/bin/bash

xterm -geometry auto -fullscreen -fa "Courier 10 Pitch" -fs 14
COLUMNS 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.sh
I 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
...
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

Last edited by RudyMartin; 03-26-2024 at 11:26 AM.
 
Old 03-26-2024, 01:00 PM   #2
jayjwa
Member
 
Registered: Jul 2003
Location: NY
Distribution: Slackware, Termux
Posts: 774

Rep: Reputation: 243Reputation: 243Reputation: 243
Maybe you have something set with your Xresources because

Code:
 xterm -fullscreen -fa "Courier 10 Pitch" -fs 14 -e ./acc2.sh
works here. I only changed the tail line because my logs are in a different place (run from standard size xterm).

Quote:
/bin/fish
Lines: 48
Columns: 172
104.238.220.138 - - [26/Mar/2024:12:21:58 -0400] "GET /h5/static/img/banner-1.5329368.png HTTP/1.1" 404 196 "-" "Mozilla/5.0 (Windows NT 6.2; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.102 Safari/537.36"
107.170.246.29 - - [26/Mar/2024:12:58:52 -0400] "GET /actuator/health HTTP/1.1" 404 196
34.76.96.55 - - [26/Mar/2024:13:12:47 -0400] "GET / HTTP/1.1" 200 2089 "-" "python-requests/2.31.0"
87.121.69.52 - - [26/Mar/2024:13:16:53 -0400] "CONNECT google.com:443 HTTP/1.1" 405 224 "-" "Go-http-client/1.1"
185.224.128.43 - - [26/Mar/2024:13:19:27 -0400] "GET / HTTP/1.1" 200 2089 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.85 Safari/537.36 Edg/90.0.818.46"
146.19.24.28 - - [26/Mar/2024:13:20:30 -0400] "GET / HTTP/1.1" 200 2089 "-" "-"
80.94.92.60 - - [26/Mar/2024:13:32:38 -0400] "GET / HTTP/1.1" 200 2089 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.85 Safari/537.36 Edg/90.0.818.46"
185.191.126.213 - - [26/Mar/2024:13:34:18 -0400] "GET / HTTP/1.1" 200 2089 "-" "-"
66.175.223.194 - - [26/Mar/2024:13:45:10 -0400] "GET / HTTP/1.1" 200 2089
66.175.223.194 - - [26/Mar/2024:13:45:12 -0400] "GET /favicon.ico HTTP/1.1" 200 5694
 
1 members found this post helpful.
Old 03-26-2024, 01:09 PM   #3
RudyMartin
Member
 
Registered: Nov 2011
Location: Argentina
Distribution: Slackware, Debian
Posts: 38

Original Poster
Rep: Reputation: Disabled
after making the post I found that initially the text from tail shows as 80 columns but once more lines are added, it uses more columns as it should.

I don't know if it's important but you are using a different shell.

I thiknk you are referring to this:

Quote:
rudy@rudy:~$ cat .Xresources
xterm*background: black
xterm*foreground: lightgray
xterm*faceName: monospace:pixelsize=14
rudy@rudy:~$


but I am overriding those values with the parameters so I am not sure if it does affect. Going to test with the file renamed.

edit: after renaming the file the problem persists.

edit2: if I add a sleep 1 to the acc2.sh it works as intended.

Last edited by RudyMartin; 03-26-2024 at 01:14 PM.
 
  


Reply

Tags
bash, xterm



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] 80x24 text-console in Slackware 14.0? anon083 Slackware 2 07-30-2013 01:56 PM
Why does my 32 bit slackware insist that it's 64 bits? indubitableness Slackware 8 09-20-2009 01:42 PM
Why does computer insist on eth1 not eth0? lugoteehalt Linux - Networking 2 01-09-2009 05:57 AM
synaptic - how to insist on remote sources voly Ubuntu 1 01-25-2006 05:51 AM
Terminal window resolution better than 80x24? dmellem Linux - Hardware 5 06-06-2003 03:14 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop

All times are GMT -5. The time now is 01:47 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration