bug-ncurses
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

ncurses for djgpp


From: Mark E.
Subject: ncurses for djgpp
Date: Mon, 6 Aug 2001 19:58:13 -0400

Hello,
I've been using an up-to-date djgpp libc.a with ncurses 5.2 with success. The 
latest 
djgpp in cvs support a large subset of ecma-48 commands. I currently have a 
capability 
description in termcap format which I plan to convert to terminfo format so it 
can be 
included in terminfo.src.

Anyway, I have a patch would help better help support djgpp. It's a patch to 
set the 
number of rows and columns and call tcgetattr in order to enable the termios 
emulation 
and its ecma support.

I wanted to generate it against an up-to-date ncurses, but the rollup patch 
from July 
14th wouldn't apply cleanly in places (certain patches to NEWS for example).

Also, the released 5.2 also doesn't use EXEEXT which causes 'make install' to 
fail when 
installing 'tic', etc.

I didn't find a ChangeLog, so I haven't included one.

*** lib_setup.c.orig    Sat Sep  2 14:13:12 2000
--- lib_setup.c Mon Aug  6 18:51:12 2001
*************** _nc_get_screensize(int *linep, int *colp
*** 136,141 ****
--- 136,158 ----
                    *linep, *colp));
        }
  #endif
+ #ifdef __DJGPP__
+         /* Dummy call to tcgetattr to force use of termios emulation. */
+         if (1) {
+           struct termios t;
+ 
+           tcgetattr(0, &t);
+         }
+         if (*linep <= 0) {
+           int ScreenRows(void);
+           *linep = ScreenRows();
+         }
+         if (*colp <= 0) {
+           int ScreenCols(void);
+           *colp = ScreenCols();
+         }
+       T(("screen size: environment LINES = %d COLUMNS = %d", *linep, *colp));
+ #endif
  #if HAVE_SIZECHANGE
        /* if that didn't work, maybe we can try asking the OS */
        if (*linep <= 0 || *colp <= 0) {

Mark




reply via email to

[Prev in Thread] Current Thread [Next in Thread]