Fri Oct 1 11:03:21 PDT 1999 Michael Jennings <mej@eterm.org>

Set $COLORTERM_BCE for better SLang compatibility.


SVN revision: 531
This commit is contained in:
Michael Jennings 1999-10-01 15:49:18 +00:00
parent 1879695199
commit 9fa7268341
4 changed files with 18 additions and 12 deletions

View File

@ -2512,3 +2512,8 @@ Wed Sep 29 15:30:47 PDT 1999 Michael Jennings <mej@eterm.org>
Sorry raster. :-) Sorry raster. :-)
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
Fri Oct 1 11:03:21 PDT 1999 Michael Jennings <mej@eterm.org>
Set $COLORTERM_BCE for better SLang compatibility.
-------------------------------------------------------------------------------

View File

@ -1537,6 +1537,9 @@ get_ttymode(ttymode_t * tio)
# endif # endif
# ifdef VLNEXT # ifdef VLNEXT
tio->c_cc[VLNEXT] = CLNEXT; tio->c_cc[VLNEXT] = CLNEXT;
# endif
# ifdef VSTATUS
tio->c_cc[VSTATUS] = CSTATUS;
# endif # endif
} }
tio->c_cc[VEOF] = CEOF; tio->c_cc[VEOF] = CEOF;
@ -1577,10 +1580,6 @@ get_ttymode(ttymode_t * tio)
# endif # endif
); );
/*
* guess an appropriate value for Backspace
*/
#if defined(FORCE_BACKSPACE) && 0 #if defined(FORCE_BACKSPACE) && 0
PrivMode(1, PrivMode_BackSpace); PrivMode(1, PrivMode_BackSpace);
tio->c_cc[VERASE] = '\b'; /* force ^H for stty setting... */ tio->c_cc[VERASE] = '\b'; /* force ^H for stty setting... */
@ -1631,10 +1630,6 @@ get_ttymode(ttymode_t * tio)
# endif /* NTTYDISC */ # endif /* NTTYDISC */
tio->local = (LCRTBS | LCRTERA | LCTLECH | LPASS8 | LCRTKIL); tio->local = (LCRTBS | LCRTERA | LCTLECH | LPASS8 | LCRTKIL);
/*
* guess an appropriate value for Backspace
*/
# ifdef FORCE_BACKSPACE # ifdef FORCE_BACKSPACE
PrivMode(1, PrivMode_BackSpace); PrivMode(1, PrivMode_BackSpace);
tio->sg.sg_erase = '\b'; tio->sg.sg_erase = '\b';

View File

@ -188,6 +188,9 @@ if (test) PrivateModes |= (bit); else PrivateModes &= ~(bit);} while (0)
#ifndef CLNEXT #ifndef CLNEXT
# define CLNEXT '\026' /* ^V */ # define CLNEXT '\026' /* ^V */
#endif #endif
#ifndef CSTATUS
# define CSTATUS '\024' /* ^T */
#endif
#ifndef VDISCRD #ifndef VDISCRD
# ifdef VDISCARD # ifdef VDISCARD
# define VDISCRD VDISCARD # define VDISCRD VDISCARD

View File

@ -269,15 +269,17 @@ main(int argc, char *argv[])
sprintf(windowid_string, "WINDOWID=%u", (unsigned int) TermWin.parent); sprintf(windowid_string, "WINDOWID=%u", (unsigned int) TermWin.parent);
/* add entries to the environment: /* add entries to the environment:
* DISPLAY: in case we started with -display * DISPLAY: X display name
* WINDOWID: X window id number of the window * WINDOWID: X windowid of the window
* COLORTERM: terminal sub-name and also indicates its color * COLORTERM: Terminal supports color
* TERM: terminal name * COLORTERM_BCE: Terminal supports BCE
* TERM: Terminal type for termcap/terminfo
*/ */
putenv(display_string); putenv(display_string);
putenv(windowid_string); putenv(windowid_string);
if (Xdepth <= 2) { if (Xdepth <= 2) {
putenv("COLORTERM=" COLORTERMENV "-mono"); putenv("COLORTERM=" COLORTERMENV "-mono");
putenv("COLORTERM_BCE=" COLORTERMENV "-mono");
putenv("TERM=" TERMENV); putenv("TERM=" TERMENV);
} else { } else {
if (rs_term_name != NULL) { if (rs_term_name != NULL) {
@ -297,6 +299,7 @@ main(int argc, char *argv[])
#endif #endif
} }
putenv("COLORTERM=" COLORTERMENV); putenv("COLORTERM=" COLORTERMENV);
putenv("COLORTERM_BCE=" COLORTERMENV);
} }
putenv("ETERM_VERSION=" VERSION); putenv("ETERM_VERSION=" VERSION);