Operating System - HP-UX
1834604 Members
3797 Online
110069 Solutions
New Discussion

Xwindows - vi - 132 column edit

 
eric stewart
Frequent Advisor

Xwindows - vi - 132 column edit

I have been playing with the Xwindows CDE environment for a few days and have this question.
The users want to be able to edit 132 columns with vi and be able to display 132 columns within a window.
I have a file with 132 charaters of data. If I do env from the terminal window of CDE, the COLUMNS variable is set 108. When I do cat 132file it raps at 108 characters.
Can you point me in the correct direction to solve this one?
TIA
Good help is easy to find within forums
16 REPLIES 16
Andreas Voss
Honored Contributor

Re: Xwindows - vi - 132 column edit

Hi,

what about the Options->Window Size->132x24 ?
Did this not work ?
Antoanetta Naghiu
Esteemed Contributor

Re: Xwindows - vi - 132 column edit

If you try export COLUMNS=132 and is working, to make it permanent add this line to $HOME/.profile for desired user.
If use csh, set COLUMNS=132; export COLUMNS.
Is it any better?
eric stewart
Frequent Advisor

Re: Xwindows - vi - 132 column edit

The .profile has export COLUMNS=132.
The shell is ksh.
The .Xdefaults has *geometry: 132x24-1-1
I tried to use a smaller font in .Xdefaults.
*fontList: -adobe-courier-medium-o-normal--10-100-75-75-m-50-hp-roman8
THis seemed to make the charaters smaller in the titles of the TERMINAL window display but not the window itself.
Good help is easy to find within forums
eric stewart
Frequent Advisor

Re: Xwindows - vi - 132 column edit

If I do not put the geometry statement in the .Xdefaults the OPTIONS, WINDOWSIZE will expand and contract and shows 80x24 as the default. If I try to expand the window size with the mouse the biggest it will go is 108x36. With the geometry statement. There is no default shown but the window size is the biggest.
thanks
Good help is easy to find within forums
Antoanetta Naghiu
Esteemed Contributor

Re: Xwindows - vi - 132 column edit

I guess, I got it working:
In the terminal window, under Option->Terminal->Screen Control it is a possibility to enable 132 columns. Just enable it. With the mouse enlarge the screen to... for ex. 135.
vi is writting 132, and more command is reading 132.
I used the following setting: env: TERM_EMULATOR=dtterm, TERM=vt200, COLUMNS=135, LINES=24. Under Option menu from the terminal window: Font Size=default, Window 80x24.
Rick Garland
Honored Contributor

Re: Xwindows - vi - 132 column edit

Have you looked at the -w switch to vi?
Set the value of the window editor option to 'size'

vi -w132
eric stewart
Frequent Advisor

Re: Xwindows - vi - 132 column edit

I have tried all of the suggestions.
I think the CDE environment is getting in the way. I am trying to see if from my PC, which uses EXCEED to interface with the UNIX host, I can disable the CDE from starting.
any more ideas? Thanks
Good help is easy to find within forums
Anthony deRito
Respected Contributor

Re: Xwindows - vi - 132 column edit

OK, your using exceed to start a terminal session and CDE is getting in the way. Why don't you just give the users a regular xterm session instead of a CDE interface. Using Xstart client on your PC (and as long as its version 6.0 or above) enter in the following command:

@(XTerm, method=stdappdb) -display @d&;


Use REXEC (TCP/IP) as the start method and X Window as the program type.

Save the xstart file and then run it by clicking on "Run!" on the top menu.
Your display will be resolved automatically.

If you have an old version of exceed, you'll have to play with the xterm command and the display will not resolve automatically.

Tony
Antoanetta Naghiu
Esteemed Contributor

Re: Xwindows - vi - 132 column edit

Hi Eric,
What I try was under exceed in a 17 inch monitor and it worked.
Anyway, if you are using exceed, you can try Exceed->xstart.
In the command line type something as:
/usr/bin/X11/xterm -ls -display @d -title whatever -sb -sl 256 -bg 'white' -fg 'black' &
For host give even the IP address or name of the Unix box, Program Type Xwindow, Rexec(TCP/IP) as Start Metod.
Still not luck?
eric stewart
Frequent Advisor

Re: Xwindows - vi - 132 column edit

Tony,
Did exactly what you stated. Had no problem. Still did not work. The CDE environment was still started. Suspect it may be something on the UNIX server that triggers it???
By the way the version of exceed was 5.1.3.0 for windows 95.
Eric
Good help is easy to find within forums
Antoanetta Naghiu
Esteemed Contributor

Re: Xwindows - vi - 132 column edit

OK,
Go in Win95, exceed, Xconfig->commnunication-choose XDMCP-broadcast. Start X-start session again. Will get asked about exiting/make active or pasive the session. Go with pasive.
Can you, please tell me what happened when you enlarge the session window with the mouse and under option you enable Terminal->Screen Control to 132 enable?
Thanks,
Antoanetta
eric stewart
Frequent Advisor

Re: Xwindows - vi - 132 column edit

antoanetta,
So far you are the closest.
The Xwindow opened but I was only able to get 128 characters to display. Also, it took a few seconds after I started entering commands in the Xwindow was taken over with CDE startup. After CDE started I was able to work in the Xwindow. Thanks. Any more ideas??
Good help is easy to find within forums
Antoanetta Naghiu
Esteemed Contributor

Re: Xwindows - vi - 132 column edit

My English may not be good enough, to nserstand, but, under Option-terminal-Screen COntrol, do you have the button with 132 Column Switching Disable/Enable? If yes, turn it to Enable, say OK, and get out. If not, post what is your option.
Next step: If you could not get more then 128 columns when you try to enlarge the window, Just go Option->font Size->11.0 or ...9.5
???
eric stewart
Frequent Advisor

Re: Xwindows - vi - 132 column edit

Antoanetta, You english is quite good. I have heard worse from some individuals hear.
When I did what you said there is a small scroll bar on the left side of my window. Also, I do not have the bar that I can use to select tools options window-size or fonts
Good help is easy to find within forums
eric stewart
Frequent Advisor

Re: Xwindows - vi - 132 column edit

SOrry it was no access to Option-terminal-Screen Control.
Good help is easy to find within forums
Antoanetta Naghiu
Esteemed Contributor

Re: Xwindows - vi - 132 column edit

In CDE, after you login, you can open many session windows, where you have the Unix prompt and you can type Unix commands.
Any of those session windows has a title and just below it a menu bar: Window Edit Options Help.
If you go under Option on this menu bar you have Terminal. Clik in Terminal and you'll get a Terminal-Ternimal-Option where Screen control is.
It is the same in a xterm.
If someone understood that I'm talking about, please help.