From 71a1935eec0e651a74ddfc51d2e291d6376e04f0 Mon Sep 17 00:00:00 2001 From: Marcus Brinkmann Date: Mon, 24 Jun 2002 23:46:55 +0000 Subject: 2002-06-25 Marcus Brinkmann * Makefile (LCLHDRS): Add priv.h and mutations.h. (MIGSTUBS): Add tioctlServer.o * console.c: Include . (new_node): Bump up st_size for display node. (S_tioctl_tiocflush, S_tioctl_tiocgwinsz, S_tioctl_tiocstart, S_tioctl_tiocstop, S_tioctl_tiocoutq, S_tioctl_tiocspgrp, S_tioctl_tiocgpgrp): New functions. (S_tioctl_tiocmodg, S_tioctl_tiocmods, S_tioctl_tiocexcl, S_tioctl_tiocnxcl, S_tioctl_tiocgeta, S_tioctl_tiocseta, S_tioctl_tiocsetaw, S_tioctl_tiocsetaf, S_tioctl_tiocgetd, S_tioctl_tiocsetd, S_tioctl_tiocdrain, S_tioctl_tiocmget, S_tioctl_tiocmset, S_tioctl_tiocsig, S_tioctl_tiocext, S_tioctl_tiocswinsz, S_tioctl_tiocremote, S_tioctl_tiocmbic, S_tioctl_tiocmbis, S_tioctl_tiocpkt, S_tioctl_tiocsti, S_tioctl_tioccdtr, S_tioctl_tiocsdtr, S_tioctl_tioccbrk, S_tioctl_tiocsbrk): New stubs. (console_demuxer): New function. (main): Don't call netfs_server_loop, but call ports_manage_port_operations_multithread, so we can use our own demuxer. * mutations.h: Use intran and outtran for netfs. * priv.h: Likewise. * console.h (cons_change_t): Add bits for bell_audible and bell_visible. (struct cons_display): Add member BELL. * display.c (struct changes): Add new members bell_audible and bell_visible. Add bit flag macro names for those. (display_flush_filechange): Start with first index in buffer. Signal bell events. (display_record_filechange): Set DISPLAY_CHANGE_MATRIX bit in the disjoint case after flushing the update. (display_output_one): Recognize '\a' as audible bell and '\Eg' as visible bell. (display_output_some): Handle bell updates. --- console/console.h | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'console/console.h') diff --git a/console/console.h b/console/console.h index 81940f9e..a6728a26 100644 --- a/console/console.h +++ b/console/console.h @@ -62,8 +62,11 @@ typedef union uint32_t cursor_status : 1; uint32_t screen_cur_line : 1; uint32_t screen_scr_lines : 1; - uint32_t _unused : 27; + uint32_t bell_audible : 1; + uint32_t bell_visible : 1; + uint32_t _unused : 25; uint32_t not_matrix : 1; + /* Here are 32 more unused bits. */ } what; } cons_change_t; @@ -104,6 +107,12 @@ struct cons_display uint32_t status; /* Visibility status of cursor. */ } cursor; + struct + { + uint32_t audible; /* Audible bell. */ + uint32_t visible; /* Visible bell. */ + } bell; + struct { uint32_t buffer; /* Index (in uint32_t) of the beginning of the -- cgit v1.2.3