
#include "libraries.h"
#include "telnet.h"
#include "messages.h"

// pshuang: reformatted message and added the prefixing flags

char* Barton_Dropped_message =

"
*** BARTON has disconnected itself.  This happens when there is no typing
*** (an idle connection) for some minutes, and when the library has shut
*** down for the night.
";

char* Barton_Busy_message =

"
*** BARTON refused our connection.  This usually means that all its ports
*** are busy.  You might try again shortly.
";

char* Barton_Down_message =

"
*** BARTON has not responded in a while.  This happens when BARTON is
*** shut down for the night, and when it is otherwise down.
";

char* Barton_Banner_message =

"
*** If BARTON hasnt responded in 10 or 20 seconds, it is probably down.
";

/* pshuang: 6-19-91: modified help message to below
char* Barton_Help_message =
"Barton help message:

This is an interface to BARTON, the MIT Libraries' Online Catalogue.
It contains catalogued aquisitions since 1974 (and some before).

BARTON is available:
  Monday - Thursday         8:00 am  -  11:45 pm
  Friday                    8:00 am  -   7:45 pm
  Saturday                  9:00 am  -  11:45 pm
  Sunday                    noon     -  11:45 pm

Dialup: (617) 258-6700 (x8-6700 within MIT) comm parameters: 8/N/1, 1200 baud.
For additional assistance:  call any of the MIT Libaries.

Bugs?  Send e-mail to:  bug-cat@mit.edu

";
*/

char* Barton_Help_message =
#include "Help/helpscreen.barton"
;

Barton::Barton ()
{
  HumanName = "BARTON (MIT)";
  HostName  = "Barton.MIT.edu";
  HostNumber = "18.74.1.40";
  
  nl  = "OM";
  cr  = "";
  del = " ";
  
  supports_vt100     = 1;
  supports_hardcopy  = 0;

  supports_redraw    = 1;
  strRedraw  = "OP";
  
  strLogoff  = "\nEND\nEND\n";
  response_timeout  = 20;
  
  strDropped  = Barton_Dropped_message;
  strBusy     = Barton_Busy_message;
  strDown     = Barton_Down_message;
  
  strBanner   = Barton_Banner_message;

  Barton_Help_message=update_message("/mit/mitlibs/info/helpscreen.barton",Barton_Help_message);
  // pshuang: added so libraries can update the help screen themselves

  Help        = Barton_Help_message;

  number_of_logon_steps  = 2;

  LogonSequence[0].Trigger = "'^]'.\n";
  LogonSequence[0].Delay   = 0;
  LogonSequence[0].Action  = "OQ";
  LogonSequence[1].Trigger = ";28H";
  LogonSequence[1].Delay   = 0;
  LogonSequence[1].Action  = "OM";
}
