/* Copyright (c) 1979 Regents of the University of California */
* funny accepts a line from the user and prints it out in
* a mildly amusing manner.
int cvec
[2],size
,order
[WORDLEN
],i
,rubout();
char *word
,current
[WORDLEN
],myline
[WORDLEN
],*src
;
if (ct
> 1 && av
[1][0] == '-') {
printf("Input a line - ");
size
=read(0,myline
,WORDLEN
)-1;
printf("%s\nLINE TOO LONG.\n",src
);
for (i
=0;i
<size
;++i
) current
[i
]=040;
for (i
=0;i
<size
;++i
) prch(order
[i
],word
,current
);
for (i
=0;i
<s
;++i
) this[i
]=i
;
printf("\033=%c%c%c", ' '+23, ' '+who
, to
[who
]);
for (i
=0;i
<=who
;++i
) write(1,to
+i
,1);
for (i=0;i<=who;++i) write(1,"\b",1);
while (*cp
!= 012 && *cp
!= 'y' && *cp
!='n') ++cp
;