;; status.tf - Simple dns-com-awns-status macro's for tf ;; Copyright (c)2000 Sander Klein Lebbink ;; Set to 0 if you don't want status-msg's from worlds which are not focused /set mcp_display_bg_status=1 ;; Text to start a status-display with. /set mcp_status_start_id=@{Cgreen}*@{n} ;; If you want to have the status-msg's displayed in the 'regular' field ;; as well as the titlebar, set this to 1. /set mcp_status_alldraw=1 ;; End of user configs... /require tools.tf /def mcp21_dns-com-awns-status = \ /set mcp_status_%{mcp21_fg_world}=%{mcp_tag_text} %; \ /if (mcp21_fg_world =~ fg_world()) \ /if (DISPLAY !~ "") \ /xtitle %{mcp_tag_text} %; \ /endif %; \ /if (mcp_status_alldraw) \ /echo -p %{mcp_status_start_id} %{mcp_tag_text} %; \ /endif %; \ /else \ /if (mcp_display_bg_status) \ /echo -p %{mcp_status_start_id} %{mcp_tag_text} %; \ /endif %; \ /endif /set mcp21_dns_com_awns_status_min_version=1.0 /set mcp21_dns_com_awns_status_max_version=1.0 /mcp21_add_package dns-com-awns-status