slashUsage (sample/psql.rb)

    # File sample/psql.rb, line 64
    def slashUsage(ps)
      printf(" \\?           -- help\n")
      printf(" \\a           -- toggle field-alignment (currenty %s)\n", on(ps.opt.align))
      printf(" \\C [<captn>] -- set html3 caption (currently '%s')\n", ps.opt.caption );
      printf(" \\connect <dbname>  -- connect to new database (currently '%s')\n", ps.db.db)
      printf(" \\copy {<table> to <file> | <file> from <table>}\n")
      printf(" \\d [<table>] -- list tables in database or columns in <table>, * for all\n")
      printf(" \\da          -- list aggregates\n")
      printf(" \\di          -- list only indices\n")
      printf(" \\ds          -- list only sequences\n")
      printf(" \\dS          -- list system tables and indexes\n")
      printf(" \\dt          -- list only tables\n")
      printf(" \\dT          -- list types\n")
      printf(" \\e [<fname>] -- edit the current query buffer or <fname>\n")
      printf(" \\E [<fname>] -- edit the current query buffer or <fname>, and execute\n")
      printf(" \\f [<sep>]   -- change field separater (currently '%s')\n", ps.opt.fieldSep)
      printf(" \\g [<fname>] [|<cmd>] -- send query to backend [and results in <fname> or pipe]\n")
      printf(" \\h [<cmd>]   -- help on syntax of sql commands, * for all commands\n")
      printf(" \\H           -- toggle html3 output (currently %s)\n", on(ps.opt.html3))
      printf(" \\i <fname>   -- read and execute queries from filename\n")
      printf(" \\l           -- list all databases\n")
      printf(" \\m           -- toggle monitor-like table display (currently %s)\n", on(ps.opt.standard))
      printf(" \\o [<fname>] [|<cmd>] -- send all query results to stdout, <fname>, or pipe\n")
      printf(" \\p           -- print the current query buffer\n")
      printf(" \\q           -- quit\n")
      printf(" \\r           -- reset(clear) the query buffer\n")
      printf(" \\s [<fname>] -- print history or save it in <fname>\n")
      printf(" \\t           -- toggle table headings and row count (currently %s)\n", on(ps.opt.header))
      printf(" \\T [<html>]  -- set html3.0 <table ...> options (currently '%s')\n", ps.opt.tableOpt)
      printf(" \\x           -- toggle expanded output (currently %s)\n", on(ps.opt.expanded))
      printf(" \\! [<cmd>]   -- shell escape or command\n")
    end