[comp.unix.sysv386] job control and vi in SCO 3.2.2

rvdp@cs.vu.nl (Ronald van der Pol) (01/16/91)

Is there a bug in SCO UNIX 3.2.2 job control? I'm using the Korn shell
and when I type ^Z in vi, the cursor isn't positioned at the bottom line.
Moreover, when I type 'fg', the screen doesn't get updated and vi doesn't
recognize my keystrokes anymore. Looks like vi doesn't support job
control, but I can hardly believe this (well, it IS SCO UNIX :-).
$ what vi
	printf.c:2.2 6/5/79
	SCO UNIX 3.2V2 OS 09 Jun 90


--
		Ronald van der Pol  <rvdp@cs.vu.nl>

fields-doug@cs.yale.edu (Doug Fields) (01/16/91)

Sounds to me like you might want to do a simple

clear

after doing the ^Z and a

^L

after doing the fg.

Doug

--
Doug Fields -POB 1789 Yale Station, New Haven, CT 06520- (FAX) +1 203 661-2996
Internet: fields-doug@cs.yale.edu <-- Best to reach me. Voice: +1 203 436-0184
uucp: {nosc | ucsd}!crash!telesys!admiral!doug, ...uunet!sir-alan!admiral!doug
BBS:  (T2500) +1 203 661-2873, (HST/v32) -1279, (2400) -0450, (v29/MNP6) -2967

sef@kithrup.COM (Sean Eric Fagan) (01/16/91)

In article <8757@star.cs.vu.nl> rvdp@cs.vu.nl (Ronald van der Pol) writes:
>Is there a bug in SCO UNIX 3.2.2 job control? 

Not that I'm aware of.

>I'm using the Korn shell
>and when I type ^Z in vi, the cursor isn't positioned at the bottom line.
>Moreover, when I type 'fg', the screen doesn't get updated and vi doesn't
>recognize my keystrokes anymore. Looks like vi doesn't support job
>control, but I can hardly believe this (well, it IS SCO UNIX :-).

Believe it.  Sorry...  things get confused, in some curses applications
(heck, even emacs had some problems with job control under sco [due to not
working with the posix termios structure]).  What I use, until it gets fixed
(next version, I assume), is:

	:!sleep 1
	^Z

When I'm done, I then type 'fg', press return, and everything works
properly.

-- 
Sean Eric Fagan  | "I made the universe, but please don't blame me for it;
sef@kithrup.COM  |  I had a bellyache at the time."
-----------------+           -- The Turtle (Stephen King, _It_)
Any opinions expressed are my own, and generally unpopular with others.

src@scuzzy.in-berlin.de (Heiko Blume) (01/18/91)

rvdp@cs.vu.nl (Ronald van der Pol) writes:
>Looks like vi doesn't support job
>control, but I can hardly believe this (well, it IS SCO UNIX :-).

looks like your vi doesn't catch SIGCONT, so it doesn't
know when it's fg'ed and therefore won't redraw the screen.
-- 
      Heiko Blume <-+-> src@scuzzy.in-berlin.de <-+-> (+49 30) 691 88 93
                    public source archive [HST V.42bis]:
        scuzzy Any ACU,f 38400 6919520 gin:--gin: nuucp sword: nuucp
                     uucp scuzzy!/src/README /your/home

rvdp@cs.vu.nl (Ronald van der Pol) (01/19/91)

src@scuzzy.in-berlin.de (Heiko Blume) writes:

>rvdp@cs.vu.nl (Ronald van der Pol) writes:
>>Looks like vi doesn't support job
>>control, but I can hardly believe this (well, it IS SCO UNIX :-).

>looks like your vi doesn't catch SIGCONT, so it doesn't
>know when it's fg'ed and therefore won't redraw the screen.
	Almost certainly true. However, just typing ^L doesn't help.
	^L<CR> restores the screen, but after that I'm stuck. 
	I received a few solutions, one of them is:
	^L, :map, <CR>
	It works, but.... (anyway, you know what I think of SCO UNIX :-(

--
		Ronald van der Pol  <rvdp@cs.vu.nl>

macleod@cmllab.rgb.sub.org (Connor MacLeod) (01/23/91)

In article <8790@star.cs.vu.nl>
rvdp@cs.vu.nl (Ronald van der Pol) wrote:

| >>Looks like vi doesn't support job
| >>control, but I can hardly believe this (well, it IS SCO UNIX :-).

Well, I cannot tell about this, but...

| 	Almost certainly true. However, just typing ^L doesn't help.

I'm running SCO UNIX 3.2v2 and the vi I have handles ^L ok.
Are you sure you're running 3.2v2, not 3.2.0?

Rgds

-- 
Connor MacLeod  <set _aka = 'Uwe Obst'>
 -->========-   <set _adr = '{connor|macleod}@cmllab.rgb.sub.org'>
                <set _rem = 'Don't loose your head !'>
                <set _btw = '"Trust me, I know what I'm doing"--Sledge Hammer'>