| Revision: | 1.1 |
| Committed: | Sat Feb 22 02:07:26 2003 UTC (22 years, 10 months ago) by greg |
| Content type: | text/plain |
| Branch: | MAIN |
| CVS Tags: | rad3R5 |
| Log Message: | Changes and check-in for 3.5 release Includes new source files and modifications not recorded for many years See ray/doc/notes/ReleaseNotes for notes between 3.1 and 3.5 release |
| # | Content |
|---|---|
| 1 | #ifndef lint |
| 2 | static const char RCSid[] = "$Id$"; |
| 3 | #endif |
| 4 | #ifndef lint |
| 5 | static char sccsid[] = "@(#)linemod.c 4.1 (Berkeley) 6/27/83"; |
| 6 | #endif |
| 7 | |
| 8 | linemod(s) |
| 9 | char *s; |
| 10 | { |
| 11 | char c; |
| 12 | putch(033); |
| 13 | switch(s[0]){ |
| 14 | case 'l': |
| 15 | c = 'd'; |
| 16 | break; |
| 17 | case 'd': |
| 18 | if(s[3] != 'd')c='a'; |
| 19 | else c='b'; |
| 20 | break; |
| 21 | case 's': |
| 22 | if(s[5] != '\0')c='c'; |
| 23 | else c='`'; |
| 24 | } |
| 25 | putch(c); |
| 26 | } |