| Server IP : 108.167.183.253 / Your IP : 216.73.216.180 Web Server : Apache System : Linux gator4209.hostgator.com 5.14.0-687.39.1.el9_8.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Aug 18 06:09:16 EDT 2026 x86_64 User : raghunath ( 2558) PHP Version : 8.3.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /opt/osquery/share/osquery/lenses/ |
Upload File : |
(*
Module: Termcap
Parses termcap capability database
Author: Matt Dainty <matt@bodgit-n-scarper.com>
About: Reference
- man 5 termcap
Each line represents a record consisting of a number of ':'-separated fields
the first of which is the name or identifier for the record. The name can
optionally be split by '|' and each subsequent value is considered an alias
of the first. Records can be split across multiple lines with '\'.
*)
module Termcap =
autoload xfm
(* All termcap capabilities are two characters, optionally preceded by *)
(* upto two periods and the only types are boolean, numeric or string *)
let cfield = /\.{0,2}([a-zA-Z0-9]{2}|[@#%&*!][a-zA-Z0-9]|k;)(#?@|#[0-9]+|=([^:\\\\^]|\\\\[0-7]{3}|\\\\[:bBcCeEfFnNrRstT0\\^]|\^.)*)?/
let lns = ( Util.empty | Getcap.comment | Getcap.record cfield )*
let filter = incl "/etc/termcap"
. incl "/usr/share/misc/termcap"
. Util.stdexcl
let xfm = transform lns filter
(* Local Variables: *)
(* mode: caml *)
(* End: *)