vc hacks

Christer Bernerus bernerus at chalmers.UUCP
Tue Mar 12 06:32:47 AEST 1985


Some comments about the vc hacks recently posted:

1.	You have to modify your makefile to compile with the -lm flag.

2.	I have commented out the code that enforced the column format on
	strings, since I found the previous "bug" in sc very handy.

3.	Mark Weiser at seismo { ..seismo!mark} is  collecting suggested
	hacks and I hope he will redistribute a new version soon.

4.	If you don't want the hjkl cursor control keys, you might be able
	to remove te pieces of code that implement it. Look for the variable
	"instring" in sc.c. Somebody (Mark ?) might put in some #ifdef's
	to make it easier. If the hjkl keys isn't used, the functions could
	have been written in lower case at all times, for now the functions
	may be written in upper case too.

6.	There is a bug that doesn't give you any chance when you hit ^C even
	if it looks as if you have one. Diff to sc.c follows below.

7.	Suggested future hacks (I won't have time to do them myself):

	Make it possible to edit the expressions, not just backing up
	with BS, changing one character and then rewrite the rest of the line.
	
	Make it possible to write row and columns like expressions, e.g.
	let r11c4 = r(r10c7)c(r0c0+1) which would do some kind of table lookup.

	It should be possible to have some kind of symbolic names of the
	variables, e.g. let tax = income * localtax.

	Why not making vc three dimensional so that we could have a bunch
	of "pages" to switch between. The variables could then be called
	p??r??c?? instead.

If there is somebody out there who have experience from other vc look-alike's
it would be interesting to see more ideas.

Chris.

*** /tmp/,RCSt1026507	Mon Mar 11 16:06:41 1985
--- sc.c	Mon Mar 11 16:06:11 1985
***************
*** 558,564
  	refresh();
  	ch = nmgetch();
  	if (ch == 'y' || ch == 'Y') return 0;
! 	else if (ch == ctl (g)) return(1);
       }
      return(0);
  }

--- 558,564 -----
  	refresh();
  	ch = nmgetch();
  	if (ch == 'y' || ch == 'Y') return 0;
! 	else return(1);
       }
      return(0);
  }



More information about the Comp.unix.wizards mailing list