33 *
44 * Copyright 2000 by PostgreSQL Global Development Group
55 *
6- * $Header: /cvsroot/pgsql/src/bin/psql/help.c,v 1.23 2000/03/01 21:09:58 petere Exp $
6+ * $Header: /cvsroot/pgsql/src/bin/psql/help.c,v 1.24 2000/03/05 13:30:19 petere Exp $
77 */
88#include "postgres.h"
99#include "help.h"
@@ -183,7 +183,7 @@ slashUsage(void)
183183if (pset .notty == 0 &&
184184(pagerenv = getenv ("PAGER" ))&&
185185(pagerenv [0 ]!= '\0' )&&
186- screen_size .ws_row <=36 &&
186+ screen_size .ws_row <=39 &&
187187(fout = popen (pagerenv ,"w" )))
188188{
189189usePipe = true;
@@ -195,6 +195,7 @@ slashUsage(void)
195195fout = stdout ;
196196
197197/* if you add/remove a line here, change the row test above */
198+ fprintf (fout ," \\a toggle between unaligned and aligned mode\n" );
198199fprintf (fout ," \\c[onnect] [dbname|- [user]]\n"
199200" connect to new database (currently '%s')\n" ,PQdb (pset .db ));
200201fprintf (fout ," \\copy ... perform SQL COPY with data stream to the client machine\n" );
@@ -209,8 +210,11 @@ slashUsage(void)
209210fprintf (fout ," \\e [fname] edit the current query buffer or <fname> with external editor\n" );
210211fprintf (fout ," \\echo <text> write text to stdout\n" );
211212fprintf (fout ," \\encoding <encoding> set client encoding\n" );
213+ fprintf (fout ," \\f <sep> change field separator\n" );
212214fprintf (fout ," \\g [fname] send query to backend (and results in <fname> or |pipe)\n" );
213215fprintf (fout ," \\h [cmd] help on syntax of sql commands, * for all commands\n" );
216+ fprintf (fout ," \\H toggle HTML mode (currently %s)\n" ,
217+ ON (pset .popt .topt .format == PRINT_HTML ));
214218fprintf (fout ," \\i <fname> read and execute queries from filename\n" );
215219fprintf (fout ," \\l list all databases\n" );
216220fprintf (fout ," \\lo_export, \\lo_import, \\lo_list, \\lo_unlink\n"
@@ -226,8 +230,8 @@ slashUsage(void)
226230fprintf (fout ," \\set <var> <value> set internal variable\n" );
227231fprintf (fout ," \\t don't show table headers or footers (currently %s)\n" ,ON (pset .popt .topt .tuples_only ));
228232fprintf (fout ," \\unset <var> unset (delete) internal variable\n" );
229- fprintf (fout ," \\x toggle expanded output (currently %s)\n" ,ON (pset .popt .topt .expanded ));
230233fprintf (fout ," \\w <fname> write current query buffer to a file\n" );
234+ fprintf (fout ," \\x toggle expanded output (currently %s)\n" ,ON (pset .popt .topt .expanded ));
231235fprintf (fout ," \\z list table access permissions\n" );
232236fprintf (fout ," \\! [cmd] shell escape or command\n" );
233237