vi under solaris


 
Thread Tools Search this Thread
Operating Systems Solaris vi under solaris
# 1  
Old 06-11-2008
vi under solaris

any of you guys seen when opening vi, the screen outputs very strangely. i can't actually see the file itself because the output is so altered. anyone seen this? i've tried editing TERM, EDITOR, DISPLAY... but nothing seems to work.

also to note, i am coming in through the LOM connection to this server.
# 2  
Old 06-11-2008
Try:

TERM=vt100
export TERM

on the server and set your terminal emulation setting to vt100/vt102.
# 3  
Old 06-11-2008
... or if somehow you've resized the X window, try:
Code:
/usr/openwin/bin/resize

# 4  
Old 06-11-2008
Usually I prefer to use vt100 unless I'm at the console.

export TERM=vt100 (for ksh)
TERM=vt100;export TERM (bourne shell)

examples:

TERM=hp;export TERM
TERM=sun;export TERM
TERM=sun-cmd;export TERM

normally after setting TERM, I will do a 'clear' command to test my TERM settings, if the screen clears then I'm alright, if it doesn't clear screen then TERM is wrong then you better be careful when you edit or vi anything.

In vi mode if you suspect your TERM is wrong how do you know if you are typing on the right line or overwriting the correct word? If your TERM is wrong when you move the cursor using arrow keys it may sometimes garble up the screen, so how do you know if you are typing correctly?

by pressing ctrl-l it will refresh the screen.

But sometimes it is not so good to use arrow keys because it may give some special character esp if your TERM is incorrect.
then you must know how to use the various commands in vi to move the cursor ard.

Last edited by sparcguy; 06-12-2008 at 12:01 AM..
# 5  
Old 06-12-2008
tried vt100 and no luck.
moved to dtterm and that seemed to work... kinda. still running into some issues every so often but its bearable for the time being. it's a fresh install and i've never had such problems but... problems = learning right.
Login or Register to Ask a Question

Previous Thread | Next Thread

4 More Discussions You Might Find Interesting

1. Solaris

Patching Procedure in Solaris 10 with sun cluster having Solaris zone

Hi Gurus I am not able to find the patching procedure for solaris 10 ( sol10 u11) to latest patchset with sun cluster having failover zones so that same I should follow. Take an instance, there are sol1 and sol2 nodes and having two failover zones like sozone1-rg and sozone2-rg and currently... (1 Reply)
Discussion started by: nick101
1 Replies

2. Solaris

root disk mirroring in solaris volume manager for solaris 10

Need a procedure document to do "root disk mirroring in solaris volume manager for solaris 10". I hope some one will help me asap. I need to do it production environment. Let me know if you need any deatils on this. Thanks, Rama (1 Reply)
Discussion started by: ramareddi16
1 Replies

3. Solaris

Unable to login using ssh,telnet onto my solaris machine with solaris 10 installed

Hi, I am unable to login into my terminal hosting Solaris 10 and get the below error message "Server refused to allocate pty ld.so.1: sh: fatal: libc.so.1: open failed: No such file or directory " Is there anyways i can get into my machine and what kind of changes are required to be... (7 Replies)
Discussion started by: sankasu
7 Replies

4. Solaris

application compiled on solaris 10 throwing error when executed on solaris 9

I have compiled my application on Solaris 10 with following description SunOS ldg1 5.10 Generic_138888-03 sun4v sparc SUNW,Sun-Blade-T6320 The compiler is Sun C++ 5.9 SunOS_sparc Patch 124863-01 2007/07/25 But when installing the application on Solaris 9 SunOS odcarch02 5.9... (2 Replies)
Discussion started by: ash_bit2k2
2 Replies
Login or Register to Ask a Question