Welcome to iraf.net Friday, May 03 2024 @ 06:36 AM GMT


 Forum Index > Help Desk > General IRAF New Topic Post Reply
 overwritting screen
   
jhall
 03/21/2007 05:37PM (Read 7412 times)  
+----
Newbie

Status: offline


Registered: 02/16/2007
Posts: 11
When I use commands such as help and epar, they overwrite the screen so I cannot scroll back to look at previous entries. Is there a way to prevent this?

 
Profile Email
 Quote
fitz
 03/21/2007 05:37PM  
AAAAA
Admin

Status: offline


Registered: 09/30/2005
Posts: 4040
Check your unix TERM environment variable, and/or the terminal setting you're using in IRAF. Normally you would be running from an Xterm or an XGterm window and the TERM environment would be some variant of 'xterm'. The terminal type set in IRAF (the value you entered when you did a MKIRAF to create the login.cl) should be either 'xtermjh' or 'xgterm', the former value will keep text from overwriting the graphics window (is that what you mean, or is the terminal window not being cleared (usually because the TERM is wrong at the host level)).-Mike

 
Profile Email
 Quote
jhall
 03/21/2007 05:37PM  
+----
Newbie

Status: offline


Registered: 02/16/2007
Posts: 11
I am using xgterm, and the environment variable is set to xgterm. So, how do I get the text to not overwrite my graphics window. I use scrollbars with 1000 lines saved (in my .Xdefaults file). This works properly, except when using commands like help & epar which print out screens of information, overwritting everything in the scrollbar buffer.

 
Profile Email
 Quote
fitz
 03/21/2007 05:37PM  
AAAAA
Admin

Status: offline


Registered: 09/30/2005
Posts: 4040
'xgterm' is not a valid value for TERM at the host level (should be 'xterm' or 'xterm-color' or something), but is correct for the iraf environment. Try[code:1:2948740e65]
% setenv TERM xterm
% cl
[/code:1:2948740e65]Otherwise, what platform are you using? What does "echo $TERM" show outside of IRAF?-Mike

 
Profile Email
 Quote
jhall
 03/21/2007 05:37PM  
+----
Newbie

Status: offline


Registered: 02/16/2007
Posts: 11
Ok, now both inside and outside IRAF, TERM is set to 'xterm'. But it still overwrites the window.

 
Profile Email
 Quote
fitz
 03/21/2007 05:37PM  
AAAAA
Admin

Status: offline


Registered: 09/30/2005
Posts: 4040
Please post the output of the following commands:[code:1:62e0906566]
cl> !ps
cl> !uname -a
cl> show terminal
cl> =envget("TERM")
[/code:1:62e0906566]I suspect the 'clear' command also fails, but I need to know what platform you're using and what terminal window you're running.-Mike

 
Profile Email
 Quote
jhall
 03/21/2007 05:37PM  
+----
Newbie

Status: offline


Registered: 02/16/2007
Posts: 11
cl> !ps
PID TT STAT TIME COMMAND
337 p1 Ss+ 0:00.34 -tcsh
1959 p2 Ss 0:00.05 -csh
1960 p2 S+ 0:00.17 /iraf/iraf/bin.macosx/cl.e
1966 p2 S+ 0:00.02 /iraf/iraf/bin.macosx/x_system.e -c
1967 p2 S+ 0:00.03 -bin/tcsh -c ps
cl> !uname -a
Darwin iafujitsu.hq.seti.org 8.9.0 Darwin Kernel Version 8.9.0: Thu Feb 22 20:54:07 PST 2007; rootAngrynu-792.17.14~1/RELEASE_PPC Power Macintosh powerpc
cl> show terminal
xgterm
cl> =envget("TERM")
xterm
cl>

 
Profile Email
 Quote
fitz
 03/21/2007 05:37PM  
AAAAA
Admin

Status: offline


Registered: 09/30/2005
Posts: 4040
I still haven't been able to figure out how you're seeing what you're seeing, whether you're using an xterm, xgterm, or a terminal.app window. Are you in fact using one of these windows? Does a 'clear' command actually work?About the only thing that makes sense is if somehow you're invoking the clear-saved-lines() function of the window. For example, this is a default translation for XTerm in response to a Meta-Btn2Down event. So, if you did an epar, and had a mouse attached and tried to scroll you might be clearing the buffer at that point?? Is the buffer actually cleared (i.e. no more saved lines), or is it just that epar overwrites what's already on the screen as if the screen clear didn't work?-Mike

 
Profile Email
 Quote
   
Content generated in: 0.25 seconds
New Topic Post Reply

Normal Topic Normal Topic
Sticky Topic Sticky Topic
Locked Topic Locked Topic
New Post New Post
Sticky Topic W/ New Post Sticky Topic W/ New Post
Locked Topic W/ New Post Locked Topic W/ New Post
View Anonymous Posts 
Anonymous users can post 
Filtered HTML Allowed 
Censored Content 
dog allergies remedies cialis 20 mg chilblain remedies


Privacy Policy
Terms of Use

User Functions

Login