Tue Nov 26 17:51:34 2002 Michael Jennings (mej)
I need my Escreen sessions to be able to beep, so let's allow that. SVN revision: 6466
This commit is contained in:
parent
43a572f886
commit
28dcf32708
|
@ -4935,3 +4935,7 @@ Thu Nov 21 14:11:29 2002 Michael Jennings (mej)
|
|||
|
||||
Fixed a typo noted by Bill Allombert <allomber@math.u-bordeaux.fr>.
|
||||
----------------------------------------------------------------------
|
||||
Tue Nov 26 17:51:34 2002 Michael Jennings (mej)
|
||||
|
||||
I need my Escreen sessions to be able to beep, so let's allow that.
|
||||
----------------------------------------------------------------------
|
||||
|
|
|
@ -2518,7 +2518,7 @@ err_msg(void *xd, int err, char *msg)
|
|||
{
|
||||
#if DEBUG >= DEBUG_ESCREEN
|
||||
if (DEBUG_LEVEL >= DEBUG_ESCREEN) {
|
||||
char *sc[] = { "Copy mode", "Bell in", "Wuff, Wuff!!" };
|
||||
char *sc[] = { "Copy mode", "Bell in", "Wuff" };
|
||||
int n, nsc = sizeof(sc) / sizeof(char *);
|
||||
|
||||
/* there are certain things that would make sense if we were displaying
|
||||
|
@ -2527,6 +2527,10 @@ err_msg(void *xd, int err, char *msg)
|
|||
if (strlen(msg)) {
|
||||
for (n = 0; n < nsc; n++) {
|
||||
if (!strncmp(msg, sc[n], strlen(sc[n]))) {
|
||||
if (n == 2) {
|
||||
/* Beep */
|
||||
scr_bell();
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -49,7 +49,8 @@
|
|||
#define NS_SCREEN_UPDATE "\x01w"
|
||||
#define NS_SCREEN_VERSION "\x01v"
|
||||
#define NS_SCREEN_SESSION "\x01:sessionname\r"
|
||||
#define NS_SCREEN_INIT "\x01:msgminwait 0\r\x01:msgwait 0\r\x01:hardstatus on\r\x01:hardstatus alwayslastline \"%w\"\r\x01:defhstatus \"\\005w\"\r\x01:hstatus \"\\005w\"\r\x01:nethack off\r" NS_SCREEN_UPDATE "\r" NS_SCREEN_VERSION NS_SCREEN_SESSION "\x0c" NS_SCREEN_UPDATE "\r"
|
||||
#define NS_SCREEN_BELL "\x01:bell_msg Wuff\r\x01:vbell_msg Wuff\r"
|
||||
#define NS_SCREEN_INIT "\x01:msgminwait 0\r\x01:msgwait 0\r\x01:hardstatus on\r\x01:hardstatus alwayslastline \"%w\"\r\x01:defhstatus \"\\005w\"\r\x01:hstatus \"\\005w\"\r\x01:nethack off\r" NS_SCREEN_UPDATE "\r" NS_SCREEN_VERSION NS_SCREEN_SESSION "\x0c" NS_SCREEN_UPDATE "\r" NS_SCREEN_BELL
|
||||
#define NS_SCREEN_PRVS_REG "\x01:focus up\r"
|
||||
|
||||
#define NS_DFLT_SSH_PORT 22
|
||||
|
|
Loading…
Reference in New Issue