From 9fa7268341d8a1cfdef4ffb9228c9ce04903e963 Mon Sep 17 00:00:00 2001 From: Michael Jennings Date: Fri, 1 Oct 1999 15:49:18 +0000 Subject: [PATCH] Fri Oct 1 11:03:21 PDT 1999 Michael Jennings Set $COLORTERM_BCE for better SLang compatibility. SVN revision: 531 --- ChangeLog | 5 +++++ src/command.c | 11 +++-------- src/command.h | 3 +++ src/main.c | 11 +++++++---- 4 files changed, 18 insertions(+), 12 deletions(-) diff --git a/ChangeLog b/ChangeLog index a5f054f..8041293 100644 --- a/ChangeLog +++ b/ChangeLog @@ -2512,3 +2512,8 @@ Wed Sep 29 15:30:47 PDT 1999 Michael Jennings Sorry raster. :-) ------------------------------------------------------------------------------- +Fri Oct 1 11:03:21 PDT 1999 Michael Jennings + + Set $COLORTERM_BCE for better SLang compatibility. + +------------------------------------------------------------------------------- diff --git a/src/command.c b/src/command.c index c3923a7..4c4a996 100644 --- a/src/command.c +++ b/src/command.c @@ -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'; diff --git a/src/command.h b/src/command.h index c0887eb..286632a 100644 --- a/src/command.h +++ b/src/command.h @@ -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 diff --git a/src/main.c b/src/main.c index 500ab90..4e63032 100644 --- a/src/main.c +++ b/src/main.c @@ -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);