Sponsored Content
Full Discussion: xterm problem?
Operating Systems Linux Slackware xterm problem? Post 302534417 by slak0 on Tuesday 28th of June 2011 12:59:01 AM
Old 06-28-2011
xterm problem?

The terminfo is at: /usr/share/terminfo/ and xterm at: /usr/share/terminfo/x/xterm.
Ran file at the latter and get: /usr/share/terminfo/x/xterm: Compiled terminfo entry
So the system should know where it is at. Since man tic and tset are totally or partially unable to find or utilize that info then like infocmp says maybe they can't open it either.
BTW the xwindow I use is defined using xterm but has no problem visible when it is started up.
Yes, xterm is what $TERM should echo. I had thought that there should be a TERMINFO in the environment to point to /usr/share/terminfo/ but there is none. Can't find that it should be either.
I am going to google TERMINFO momentarily to see if that helps but tried that b4 to no avail maybe my search terms will change.
I found a /etc/initrc but all it did for xterm was to define the beginning/end of line code.
Further prowling took me to /etc/X11/xdm where Xsession and Xresources are defined.
That lead to the discovery that regular users have .xsession files. Tho this is a difference it coes not explain the identical actions for both user types.
Just discovered that "clear" receives an 'xterm ': unknown terminal type. for both root and regular users.
All of these messages together suggest that the xterm is not defined in the system. Infocmp .cannot open terminfo and find cannot locate termcaps so how does the system know anything about xterm? Yet /etc/X11/xdm/Xsession invokes /usr/bin/xterm where I would presume the system would learn of it or belch. I do not understand so need help.

Last edited by slak0; 06-29-2011 at 04:46 AM.. Reason: added info
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

xterm trivia

Thanks Livin Free... Here's another one... Why is it that I always get the error message "Error: Can't open display:" in my mail whenever I execute or try to call an xterm command using cron to activate the command. What did I miss? Thanks in advance UNIX gurus... (3 Replies)
Discussion started by: jfsuminist
3 Replies

2. UNIX for Dummies Questions & Answers

Xterm

Guys: Anyone have ideas on where can I get information or references if I want to learn on how to program with UNIX GUIs? If you do have ideas please let me know. Its a big help. (2 Replies)
Discussion started by: jfsuminist
2 Replies

3. UNIX Desktop Questions & Answers

xterm colors

I'm a new user to unix and I want to be able to pick and choose different xterm colors via 3rd botton menu. I'm currently pico'd into my .fvwm2rc file and this is what I have under my bottons: Please advise ############ # Button 1 #... (2 Replies)
Discussion started by: blica777
2 Replies

4. UNIX for Dummies Questions & Answers

xterm

Would someone tell me how to save changes in xterm once I've made them using the program options? For example, I type: xterm -bg red and my console window changes color. But how can I now make this attribute save, so that it becomes the default when I relaunch xterm? Any help you can offer... (1 Reply)
Discussion started by: af6
1 Replies

5. UNIX for Dummies Questions & Answers

xterm?

Hello all, This is a lame question because I have been working with unix for some years now, but anyway here it is; What is an xterm? ivo (1 Reply)
Discussion started by: Ivo
1 Replies

6. Shell Programming and Scripting

xterm help?

I want to add a title to this xterm window but cannot figure out how. Can anybody assist with this? xterm +sb -geom 80x25 -ls -tn xterms -tm "intr ^q" -name unikix -e $UNIKIX/bin/unikixl (1 Reply)
Discussion started by: douknownam
1 Replies

7. UNIX for Dummies Questions & Answers

xterm

hi I'm trying to launch admintool via an export DISPLAY. that is i am doing a rlogin to serverB from serverA. i did the command export DISPLAY=serverA:0 but it prompted me the error DISPLAY=serverA:0: is not an identifier i have searched the forum but there is not much things on this error... (3 Replies)
Discussion started by: legato
3 Replies

8. Solaris

Xterm problem on Solaris 10

I apologize but didn't find an answer in the Discussions. I use an Exceed xterm just fine with Solaris 8 but it fails to connect to Solaris 10 server: Xterm command line: DISPLAY=@d;export DISPLAY;/usr/openwin/bin/xterm Failure message: "Unable to connect to host using specified start... (2 Replies)
Discussion started by: fusejj
2 Replies

9. UNIX for Dummies Questions & Answers

Problem with xterm & tcsh & sourcing a script in a single command

Hi friends, I have a script that sets the env variable path based on different conditions. Now the new path variable setting should not done in the same terminal or same shell. Only a new terminal or new shell should have the new path env variable set. I am able to do this only as follows: >cd... (1 Reply)
Discussion started by: sowmya005
1 Replies

10. UNIX for Dummies Questions & Answers

Problem with xterm scrollbar

I have a xterm window opening from my Java code. This xterm is opened from the code in this manner: // to run shell command in a xterm window public synchronized void rshd(String title, String commd) { String xt = "xterm -sb -T "; String xtm = xt + title + " -e " + commd; Runtime run =... (1 Reply)
Discussion started by: vanz
1 Replies
clear(1)						      General Commands Manual							  clear(1)

NAME
clear - clear the terminal screen SYNOPSIS
clear [-Ttype] [-V] [-x] DESCRIPTION
clear clears your screen if this is possible, including its scrollback buffer (if the extended "E3" capability is defined). clear looks in the environment for the terminal type given by the environment variable TERM, and then in the terminfo database to determine how to clear the screen. clear writes to the standard output. You can redirect the standard output to a file (which prevents clear from actually clearing the screen), and later cat the file to the screen, clearing it at that point. OPTIONS
-T type indicates the type of terminal. Normally this option is unnecessary, because the default is taken from the environment variable TERM. If -T is specified, then the shell variables LINES and COLUMNS will also be ignored. -V reports the version of ncurses which was used in this program, and exits. The options are as follows: -x do not attempt to clear the terminal's scrollback buffer using the extended "E3" capability. HISTORY
A clear command appeared in 2.79BSD dated February 24, 1979. Later that was provided in Unix 8th edition (1985). AT&T adapted a different BSD program (tset) to make a new command (tput), and used this to replace the clear command with a shell script which calls tput clear, e.g., /usr/bin/tput ${1:+-T$1} clear 2> /dev/null exit In 1989, when Keith Bostic revised the BSD tput command to make it similar to the AT&T tput, he added a shell script for the clear command: exec tput clear The remainder of the script in each case is a copyright notice. The ncurses clear command began in 1995 by adapting the original BSD clear command (with terminfo, of course). The E3 extension came later: o In June 1999, xterm provided an extension to the standard control sequence for clearing the screen. Rather than clearing just the vis- ible part of the screen using printf '33[2J' one could clear the scrollback using printf '33[3J' This is documented in XTerm Control Sequences as a feature originating with xterm. o A few other terminal developers adopted the feature, e.g., PuTTY in 2006. o In April 2011, a Red Hat developer submitted a patch to the Linux kernel, modifying its console driver to do the same thing. The Linux change, part of the 3.0 release, did not mention xterm, although it was cited in the Red Hat bug report (#683733) which led to the change. o Again, a few other terminal developers adopted the feature. But the next relevant step was a change to the clear program in 2013 to incorporate this extension. o In 2013, the E3 extension was overlooked in tput with the "clear" parameter. That was addressed in 2016 by reorganizing tput to share its logic with clear and tset. PORTABILITY
Neither IEEE Std 1003.1/The Open Group Base Specifications Issue 7 (POSIX.1-2008) nor X/Open Curses Issue 7 documents tset or reset. The latter documents tput, which could be used to replace this utility either via a shell script or by an alias (such as a symbolic link) to run tput as clear. SEE ALSO
tput(1), terminfo(5) This describes ncurses version 6.1 (patch 20180127). clear(1)
All times are GMT -4. The time now is 10:17 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy