LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   i want to set display settings in telnet . (https://www.linuxquestions.org/questions/linux-newbie-8/i-want-to-set-display-settings-in-telnet-936615/)

tushii012 03-27-2012 02:22 AM

i want to set display settings in telnet .
 
Actually when i telnet to a machine
and opens any file then its output is garbelled on screen.
how to set these settings.
by opening a file means in vi editor .

wpeckham 03-27-2012 12:26 PM

telnet to ... what now?
 
Quote:

Actually when i telnet to a machine
and opens any file then its output is garbelled on screen.
how to set these settings.
1. Why in the world are you using telnet? That is terribly 1980s, unsecure and primative. Try ssh or putty. (Putty adds some real terminal emulation features, and works much the same on both *nix and Windows hosts.)

2. What do you mean by "opens any file"? Are you viewing in view or less, did you cat the file, open it in vi or another editor?

I suspect it is something like your terminal type is incompatible with telnet or not being set properly. It is difficult to tell from the way you posted your question what you are really asking. Please explain a bit and we will try to help.

[ And I recommend avoiding telnet if you can. It is a useful tool for testing ports, but I never use it for sessions. ]

wpeckham 04-08-2012 02:49 PM

telnet to ... what now?
 
@tushii012: dude! Are you still alive?
If you have a solution, please mark this thread solved. If not, please provide some information so we can help you!

tushii012 04-17-2012 12:07 AM

by using ssh the same behaviour takes place
i am opening a file in vi editor and it says terminal too wide if it is full screen window of vi.
and shortening the width does not properly show the content of a file.

wpeckham 04-18-2012 12:39 PM

Check your terminal type.
 
1. What OS are you connecting from, and what is your terminal type there?
2. What is the command line or software you are using the build the session/connection?
3. Once you have a session, what is your terminal type on the other end?
4. I may have missed that you specified this already, but what is the OS of the target server?

I use putty (from both windows and Linux) as well as OpenSSH to connect to many different versions and distributions of Linux on physical and virtual machines and have never seen that message. I see no reason why we should not be able to trak down and kill this problem.

tushii012 04-19-2012 12:35 AM

i use bash shell from my desktop terminal utility in linux 10.10.

ssh communication is used .

the target machine is solaris 5.9 generic of sparc ,where file exists

ther i use bash shell.

i am using vi editor in it .

pan64 04-19-2012 12:38 AM

there was a trick, execute it after resizing the window:
eval `resize`
maybe it helps

tushii012 04-20-2012 03:45 AM

where is to execute i have tried at both solaris does not have resize command
and at linux shell executing above command
same results as before (terminal too wide)

pan64 04-20-2012 04:21 AM

terminal too wide cannot be solved this way, in this case you need to narrow your window or use another editor. Maybe vim will work.
I have /usr/openwin/bin/resize on solaris.


All times are GMT -5. The time now is 11:18 PM.