- Subject: SLang on cygwin, terminfo?
- From: "Warren Postma" <warren-postma@xxxxxxxxxx>
- Date: Sun, 24 Mar 2002 01:24:31 -0500
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
[2002 date index]
[2002 thread index]
[Thread Prev] [Thread Next]
[Date Prev] [Date Next]