HPE GreenLake Administration
- Community Home
 - >
 - Servers and Operating Systems
 - >
 - Operating Systems
 - >
 - Operating System - HP-UX
 - >
 - dtterm and LINES setting
 
Operating System - HP-UX
        1840126
        Members
    
    
        4733
        Online
    
    
        110161
        Solutions
    
Forums
        Categories
Company
Local Language
                
                  
                  back
                
        
                
        
                
        
                
        
        
        
                
        
                
        
        
        
                
        
              
              Forums
Discussions
Forums
- Data Protection and Retention
 - Entry Storage Systems
 - Legacy
 - Midrange and Enterprise Storage
 - Storage Networking
 - HPE Nimble Storage
 
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
                
                  
                  back
                
            
                
            
                
            
                
            
                
            
                
            
                
            
                
            
                
            
                
            
                
            
                
            
                
            
                
            
                
            
                
            
                
            
            
                
            
                
            
                
            
                
            
            
                
            
                
            
            
                
            
                
              
            Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
 - Appliance Servers
 - Alpha Servers
 - BackOffice Products
 - Internet Products
 - HPE 9000 and HPE e3000 Servers
 - Networking
 - Netservers
 - Secure OS Software for Linux
 - Server Management (Insight Manager 7)
 - Windows Server 2003
 - Operating System - Tru64 Unix
 - ProLiant Deployment and Provisioning
 - Linux-Based Community / Regional
 - Microsoft System Center Integration
 
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
        Information
        Community
Resources
Community Language
        Language
        Forums
Blogs
	
		
			
            
                
            Go to solution
        
            
		
		
			
            	
	
		
        
		
	
	
		Topic Options
			
				
					
	
			
		
	- Subscribe to RSS Feed
 - Mark Topic as New
 - Mark Topic as Read
 - Float this Topic for Current User
 - Bookmark
 - Subscribe
 - Printer Friendly Page
 
- Mark as New
 - Bookmark
 - Subscribe
 - Mute
 - Subscribe to RSS Feed
 - Permalink
 - Report Inappropriate Content
 
12-30-2004 02:55 AM
12-30-2004 02:55 AM
			
				
					
					
						When I start a dtterm using the geometry option against the local machine, LINES is set correctly, i.e. if I run:
dtterm -display $DISPLAY -geometry 96x12+98+98
LINES is set to 12 in the new dtterm.
If I run the same command under remsh, then the LINES setting sometimes gets messed up, e.g. if I run
remsh remotehost dtterm -display $DISPLAY -geometry 96x12+98+98
LINES might come out at 13.
Why is that?
					
				
			
			
				
			
			
				
	
			
				
		
			
			
			
			
			
			
		
		
		
	
	
	
dtterm -display $DISPLAY -geometry 96x12+98+98
LINES is set to 12 in the new dtterm.
If I run the same command under remsh, then the LINES setting sometimes gets messed up, e.g. if I run
remsh remotehost dtterm -display $DISPLAY -geometry 96x12+98+98
LINES might come out at 13.
Why is that?
Solved! Go to Solution.
		1 REPLY 1
	
	            
            
		
		
			
            
                - Mark as New
 - Bookmark
 - Subscribe
 - Mute
 - Subscribe to RSS Feed
 - Permalink
 - Report Inappropriate Content
 
12-30-2004 02:56 PM
12-30-2004 02:56 PM
Solution
			
				
					
					
						remsh is a very different network protocol. It is not telnet without a password. Indeed, remsh is really awful with interactive processes. When you start dtterm with a specific geometry, it sets the terminal's emulation size. Then a telnet connection will negotiate about window size (NAWS in telnet terminolgy, see http://www.faqs.org/rfcs/rfc1073.html).
 
Changing the dtterm window size generates a SIGWINCH sondition (Window Size change) and the remote telnet destination will be notified of the new values and set LINES and COLUMNS automatically.
 
remsh does not do any of this type of protocol, thus the problem. You can avoid this problem by running resize or ttytype. Either program will query the terminal (dtterm) as to the current settings and generate the shell commands to change the settings. Use either one like this:
 
eval $(resize)
or
eval $(ttytype -a)
 
To see what they actually do, just type resize or ttytype -a. For a remsh connection, you'll have to do this every time you change the window size.
	
Bill Hassell, sysadmin
			
			
				
			
			
			
			
			
			
		
		
		
	
	
	
Changing the dtterm window size generates a SIGWINCH sondition (Window Size change) and the remote telnet destination will be notified of the new values and set LINES and COLUMNS automatically.
remsh does not do any of this type of protocol, thus the problem. You can avoid this problem by running resize or ttytype. Either program will query the terminal (dtterm) as to the current settings and generate the shell commands to change the settings. Use either one like this:
eval $(resize)
or
eval $(ttytype -a)
To see what they actually do, just type resize or ttytype -a. For a remsh connection, you'll have to do this every time you change the window size.
Bill Hassell, sysadmin
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
		
	
	
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP