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

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 sortly.";

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.";

char* 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 (8-6700 within MIT) 8data 1stop NoParity 1200baud

For addtional assistance:  call any of the MIT Libaries.

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



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;
  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";
  
}
