Hello, I'm new to using S-Lang on cygwin (windows). Will S-Lang terminal handling (full screen text mode applications) work on Cygwin? I downloaded and compiled the S-Lang libraries okay in cygwin, but the following simple test fails:
-- Source snippet: #include <slang/slang.h> #include <stdio.h> #include <sys/ioctl.h> #include <termios.h> int main(void) { struct winsize ws; if (ioctl(1,TIOCGWINSZ,&ws)) { perror("winsize failed"); return 1; } SLtt_get_terminfo(); SLtt_Screen_Rows = ws.ws_row; SLtt_Screen_Cols = ws.ws_col; SLsmg_init_smg(); /* main here */ SLsmg_gotorc(SLtt_Screen_Rows-1,0); SLsmg_refresh(); SLsmg_reset_smg(); SLang_reset_tty(); return 0; }; --- Program output: Unknown terminal: cygwin Check the TERM environment variable. Also make sure that the terminal is defined in the terminfo database. Alternatively, set the TERMCAP environment variable to the desired termcap entry. --- Help!? Warren Postma -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/