github.com/lmorg/murex@v0.0.0-20240217211045-e081c89cd4ef/integrations/mxtty_posix.mx (about)

     1  !if { $MXTTY } then {
     2      return
     3  }
     4  
     5  function ps {
     6      config set proc strict-arrays false
     7  
     8      if { $SELF.TTY } then {
     9          tout str '{ESC}_begin;table{ESC}\'
    10          exec ps @PARAMS
    11          tout str '{ESC}_end;table{ESC}\'
    12      } else {
    13          exec ps @PARAMS
    14      }
    15  }
    16  
    17  function last {
    18      config set proc strict-arrays false
    19  
    20      if { $SELF.TTY } then {
    21          tout str '{ESC}_begin;table;{ "HeadMissing": true }{ESC}\'
    22          exec last @PARAMS
    23          tout str '{ESC}_end;table{ESC}\'
    24      } else {
    25          exec last @PARAMS
    26      }
    27  }