Use stty columns 140 in .profile on ksh


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Use stty columns 140 in .profile on ksh
# 8  
Old 01-30-2014
All is not lost yet...
Assuming you have X11 installed, as an experiment try:-
Code:
xterm /bin/bash<CR>

From your existing terminal.
Now from this second terminal try:-
Code:
printf "\033[8;30;100t"<CR>

Also:-
Code:
xterm -geometry 140x25 /bin/bash<CR>

"<CR>" for all is the ENTER key...
Keep us informed...

Last edited by wisecracker; 01-30-2014 at 07:24 PM.. Reason: Added experimental last code block...
# 9  
Old 01-31-2014
Problem in using stty columns 140 in .profile on ksh

I tried using
Code:
xterm /bin/bash

and
Code:
xterm /bin/ksh

as I am on korn shell
Code:
echo $SHELL
/bin/ksh

but it doesn't open second terminal. So I guess I don't have X11.

Finally I am just going to give up this attempt and continue to do
Code:
stty columns 140

manually every time I log in.

Thank you for your persistent inputs, wisecracker. Smilie
Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

"ksh: XYZ: parameter not set" in .profile

Hi, A very basic query. I am working on two different UNIX servers and I see different behaviours for my user id. This has to be a setting in the .profile, but I can't seem to find where :confused: So, in one server if I type echo $XYZDD (a random variable), I get a blank line with no... (2 Replies)
Discussion started by: ALDonP
2 Replies

2. UNIX for Dummies Questions & Answers

STTY Columns Setting Environment Variable?

I am wondering about the following: stty columns 140 I have found that a number of times I need to set my display columns to a high number (such as 140) but I have to do this every time I login to use putty/ssh. Can we set this with an environmental variable so that it is permanent? Also... (4 Replies)
Discussion started by: newbie2010
4 Replies

3. Shell Programming and Scripting

Update ksh .profile to launch bash

Hi I don't have chsh option. I want to launch bash instead of ksh ( or launch bash from ksh .profile) how can I do this ? (1 Reply)
Discussion started by: Sivaswami
1 Replies

4. AIX

"ksh -" as login shell bypassing .profile

Hi all, I am currently trying to tell /bin/ksh to behave like a login shell. I am invoking it from an interactive shell. In the documentation is stated, that calling it with exec ksh - it should behave like a login shell, work 1st on /etc/profile, ~/.profile and so on. I tried that with... (0 Replies)
Discussion started by: zaxxon
0 Replies

5. UNIX for Dummies Questions & Answers

.profile on ksh

Hello, I've a problem with .profile on ksh. I use exceed to connect as a user to my server. When I'm connected, my PS1 variable is $, but on my .profile it is defined like PS1="`/usr/ucb/whoami`@$HOSTNAME# " ... export ENV PAGER HOSTNAME PAGER PATH PS1 MAIL Now... all my alias on... (1 Reply)
Discussion started by: gogol_bordello
1 Replies

6. Programming

How to set stty row and columns of the terminal through C program

Hi, I'm have a big problem with one of the C programs that I'm developping. actually, I'm trying to monitor the users' session in solaris. therefore, I have used the source code of the unix "script" command. but the problem is that, when i run that program, the stty settings are lost: speed... (4 Replies)
Discussion started by: saad26
4 Replies

7. Shell Programming and Scripting

KSH printf: columns and colors

Ih all, I need to make a ksh script with colors, it is possible with printf to combine column and colors ? i seem not working, I think i dont doing the good thing: printf -n "%-15s %-20s %-20s\n" "\033 the position is ok Name______Age________Site ----________---_________---- Bob... (2 Replies)
Discussion started by: wolfhurt
2 Replies

8. Shell Programming and Scripting

ksh and .profile

hi, I have the following in my .profile file: 21 set -u 22 trap "echo 'logout'" 0 23 24 25 EDITOR=vi 26 export EDITOR 27 28 export ENV=x.tm And x.tm just contains echo hello world I am in the c shell.... (9 Replies)
Discussion started by: JamesByars
9 Replies
Login or Register to Ask a Question