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

View File

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

View File

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