delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/03/24/01:54:11

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Message-ID: <005f01c1d300$a5145b40$312a2a0a@CR551617A>
From: "Warren Postma" <warren-postma AT rogers DOT com>
To: <cygwin AT cygwin DOT com>
References: <1016952777 DOT 26844 DOT ezmlm AT cygwin DOT com>
Subject: S-Lang on cygwin: terminfo missing?
Date: Sun, 24 Mar 2002 01:53:46 -0500
MIME-Version: 1.0
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 6.00.2600.0000
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000
X-Authentication-Info: Submitted using SMTP AUTH LOGIN at fep04-mail.bloor.is.net.cable.rogers.com from [24.103.120.193] using ID <warren-postma AT rogers DOT com> at Sun, 24 Mar 2002 01:53:44 -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





--
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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019