The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > OS Specific Forums > SUN Solaris
Google UNIX.COM


SUN Solaris The Solaris Operating System, usually known simply as Solaris, is a free Unix-based operating system introduced by Sun Microsystems .

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
run xclock from local solaris to remote solaris panchpan SUN Solaris 9 06-30-2008 07:05 AM
jumpstart Solaris 10 on Solaris 9 server salty SUN Solaris 5 01-22-2008 12:57 PM
Disk Mirror in Solaris 9 via Solaris Volume Manager deal732 SUN Solaris 3 05-02-2007 08:43 AM
Running Solaris Sparc Apps on X86 Solaris stocksj UNIX for Dummies Questions & Answers 1 12-12-2006 02:13 PM
trouble auto connecting ssh 3.6.1 (Solaris 8) to ssh 3.0.1 (Solaris 6) falklandtim SUN Solaris 6 03-01-2005 05:45 AM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 06-11-2008
pupp's Avatar
cap_10hdx 1
 

Join Date: Feb 2008
Location: Jersey Shore
Posts: 340
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.
Reply With Quote
Forum Sponsor
  #2  
Old 06-11-2008
Registered User
 

Join Date: Jun 2008
Posts: 8
Try:

TERM=vt100
export TERM

on the server and set your terminal emulation setting to vt100/vt102.
Reply With Quote
  #3  
Old 06-11-2008
vgersh99's Avatar
Moderator
 

Join Date: Feb 2005
Location: Boston, MA
Posts: 3,029
... or if somehow you've resized the X window, try:
Code:
/usr/openwin/bin/resize
Reply With Quote
  #4  
Old 06-11-2008
Registered User
 

Join Date: Nov 2006
Posts: 260
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-11-2008 at 08:01 PM.
Reply With Quote
  #5  
Old 06-11-2008
pupp's Avatar
cap_10hdx 1
 

Join Date: Feb 2008
Location: Jersey Shore
Posts: 340
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.
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 05:24 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0