[comp.unix.questions] How do I get CR in tty output?

pld@hpfcso.HP.COM (Paul Dineen) (09/06/90)

 What do I need to set to cause the carriage returns in command output 
 (including the ksh prompt) to be being obeyed?  I haven't found anything
 under tset or stty that looks like it would do it.  
 Sample ll output:

                                  292 hpclnag:/users/ftcollin/pld > ll
                                                                      total 198
                                                                               d
rwxrwxr-x   2 ftcollin coll          64 Sep  2 17:20 bin
                                                        -rw-r--r--   1 ftcollin
coll       94956 Sep  3 05:46 core
                                  -rw-rw-r--   1 ftcollin coll          22 Sep
2 16:34 hello.f
               -rw-rw-r--   1 ftcollin coll         169 Sep  2 18:48 install.pie
ces
   -rw-rw-r--   1 ftcollin coll        2096 Sep  3 05:42 krishna.profil
                                                                       293 hpcln
ag:/users/ftcollin/pld >


 The wc and vi commands show that the cr's are in there, they're just not
 having the desired effect.

/ftcollin/pld > ll | wc
                             7     56    388

gt0178a@prism.gatech.EDU (BURNS,JIM) (09/07/90)

in article <7010006@hpfcso.HP.COM>, pld@hpfcso.HP.COM (Paul Dineen) says:
>  What do I need to set to cause the carriage returns in command output 
>  (including the ksh prompt) to be being obeyed?  I haven't found anything
>  under tset or stty that looks like it would do it.  

I find it hard to believe that you've been operating this way all along.
Don't you have an admin you can talk to? Under SysV compatible syntax, try
'stty onlcr'. For BSD flavors, try 'stty -nl', altho' on my system, it
tends to reset to -nl from nl all by itself.
-- 
BURNS,JIM
Georgia Institute of Technology, Box 30178, Atlanta Georgia, 30332
uucp:	  ...!{decvax,hplabs,ncar,purdue,rutgers}!gatech!prism!gt0178a
Internet: gt0178a@prism.gatech.edu

felps@convex.com (Robert Felps) (09/07/90)

pld@hpfcso.HP.COM (Paul Dineen) writes:


> What do I need to set to cause the carriage returns in command output 
> (including the ksh prompt) to be being obeyed?  I haven't found anything
> under tset or stty that looks like it would do it.  
> Sample ll output:

>                                  292 hpclnag:/users/ftcollin/pld > ll
... delete ll output
>/ftcollin/pld > ll | wc
>                             7     56    388

Try:
	stty onlcr

If it doesn't work maybe submit the stty output and system type(BSD or SV)
and vendor.

Hope it works.
Robert
--
Robert Felps                                Tech. Assistant Ctr
Convex Computer Corp                        OS System Specialist
3000 Waterview Parkway                      felps@convex.com
Richardson, Tx.  75083                      1(800) 952-0379

george@hls0.hls.oz (George Turczynski) (09/10/90)

In article <7010006@hpfcso.HP.COM>, pld@hpfcso.HP.COM (Paul Dineen) writes:
> 
>  What do I need to set to cause the carriage returns in command output 
>  (including the ksh prompt) to be being obeyed?  I haven't found anything
>  under tset or stty that looks like it would do it.  

Under SunOS 4.0.3 I use this:

	stty onlcr	(to fix your problem)
or
	stty -onlcr	(to create your problem :-})

-- 
| George P. J. Turczynski.          |---------------------------------------------------- 
| Computer Systems Engineer.        | ACSnet: george@highland.oz | I can't speak for the |
| Highland Logic Pty. Ltd.          | Phone: +61 48 683490       | company, I can barely |
| Suite 1, 348-354 Argyle St        | Fax:   +61 48 683474       | speak for myself...   |
| Moss Vale. NSW. Australia. 2577   |----------------------------------------------------