aboutsummaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorjames <>2008-02-14 10:39:14 +0000
committerjames <>2008-02-14 10:39:14 +0000
commit5a4c8aa348f78026a568ff684b42ea1a2733aa2a (patch)
tree40c7846441cc396994359c83dba5b88a7a186255 /apps
parent63abab3ba42f94c69677fced4f8b414e59ec4a37 (diff)
downloadsympathy-5a4c8aa348f78026a568ff684b42ea1a2733aa2a.tar.gz
sympathy-5a4c8aa348f78026a568ff684b42ea1a2733aa2a.tar.bz2
sympathy-5a4c8aa348f78026a568ff684b42ea1a2733aa2a.zip
*** empty log message ***
Diffstat (limited to 'apps')
-rw-r--r--apps/sympathyd.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/apps/sympathyd.c b/apps/sympathyd.c
index 352b6a9..41a39f2 100644
--- a/apps/sympathyd.c
+++ b/apps/sympathyd.c
@@ -11,6 +11,9 @@ static char rcsid[] =
/*
* $Log$
+ * Revision 1.10 2008/02/14 10:39:14 james
+ * *** empty log message ***
+ *
* Revision 1.9 2008/02/14 10:34:47 james
* *** empty log message ***
*
@@ -53,6 +56,7 @@ typedef struct
int baud;
int crtscts;
int cd_edge_sec;
+ int blocked;
int bootstrap;
} Status;
@@ -74,6 +78,7 @@ get_status (TTY * t, Clients * cs)
status.lines = tty_status.lines;
status.baud = tty_status.baud;
status.crtscts = (tty_status.termios.c_cflag & CRTSCTS) ? 1 : 0;
+ status.blocked=tty_status.blocked;
cd = (tty_status.lines & TIOCM_CD) ? 1 : 0;
@@ -224,6 +229,13 @@ check_status (Context * c, Clients * cs)
ptr = do_line (ptr, status.lines, TIOCM_DSR);
ptr = do_line (ptr, status.lines, TIOCM_RI);
+ if (status.blocked)
+ {
+ t = ", Locked";
+ while (*t)
+ *(ptr++) = *(t++);
+ }
+
if (status.crtscts)
{
t = ", Flow";