114691Sedward #ifndef lint 2*18740Sedward static char sccsid[] = "@(#)tttermcap.c 3.5 04/24/85"; 314691Sedward #endif 414691Sedward 5*18740Sedward /* 6*18740Sedward * Copyright (c) 1983 Regents of the University of California, 7*18740Sedward * All rights reserved. Redistribution permitted subject to 8*18740Sedward * the terms of the Berkeley Software License Agreement. 9*18740Sedward */ 10*18740Sedward 1114691Sedward #include "tt.h" 1214691Sedward 1314691Sedward char *tgetstr(); 1414691Sedward 1516123Sedward tttputc(c) 1614691Sedward { 1716123Sedward ttputc(c); 1814691Sedward } 1914691Sedward 2016123Sedward ttxputc(c) 2114691Sedward { 2214691Sedward *tt_strp++ = c; 2314691Sedward } 2414691Sedward 2514691Sedward char * 2616123Sedward ttxgetstr(str) 2714691Sedward char *str; 2814691Sedward { 2914691Sedward char buf[100]; 3014691Sedward char *bufp = buf; 3114691Sedward 3214691Sedward str = tgetstr(str, &bufp); 3314691Sedward if (str == 0) 3414691Sedward return 0; 3514691Sedward str = tt_strp; 3616123Sedward tputs(buf, 1, ttxputc); 3716123Sedward ttxputc(0); 3814691Sedward return str; 3914691Sedward } 40