|
|
|
@ -161,6 +161,11 @@ void |
|
|
|
slashUsage(unsigned short int pager) |
|
|
|
slashUsage(unsigned short int pager) |
|
|
|
{ |
|
|
|
{ |
|
|
|
FILE *output; |
|
|
|
FILE *output; |
|
|
|
|
|
|
|
char *currdb; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
currdb = PQdb(pset.db); |
|
|
|
|
|
|
|
if (currdb == NULL) |
|
|
|
|
|
|
|
currdb = _("none"); |
|
|
|
|
|
|
|
|
|
|
|
output = PageOutput(86, pager); |
|
|
|
output = PageOutput(86, pager); |
|
|
|
|
|
|
|
|
|
|
|
@ -244,7 +249,7 @@ slashUsage(unsigned short int pager) |
|
|
|
fprintf(output, _("Connection\n")); |
|
|
|
fprintf(output, _("Connection\n")); |
|
|
|
fprintf(output, _(" \\c[onnect] [DBNAME|- USER|- HOST|- PORT|-]\n" |
|
|
|
fprintf(output, _(" \\c[onnect] [DBNAME|- USER|- HOST|- PORT|-]\n" |
|
|
|
" connect to new database (currently \"%s\")\n"), |
|
|
|
" connect to new database (currently \"%s\")\n"), |
|
|
|
PQdb(pset.db)); |
|
|
|
currdb); |
|
|
|
fprintf(output, _(" \\encoding [ENCODING] show or set client encoding\n")); |
|
|
|
fprintf(output, _(" \\encoding [ENCODING] show or set client encoding\n")); |
|
|
|
fprintf(output, _(" \\password [USERNAME] securely change the password for a user\n")); |
|
|
|
fprintf(output, _(" \\password [USERNAME] securely change the password for a user\n")); |
|
|
|
fprintf(output, "\n"); |
|
|
|
fprintf(output, "\n"); |
|
|
|
|