Table of Contents

FBDoorDK

FBDoorDK is a simple door development library written in FreeBasic. It supports Linux and Windows, and DORINFO1.DEF, DOOR.SYS and DOOR32.SYS drop file formats.

Functions

DoorKitInit(ByVal dropFile As String) As Integer

Call this function first, and pass it the full path and filename of the drop file, currently this must be a DOOR.SYS or DORINFO1.DEF for Linux or DOOR32.SYS for windows.

DoorKitGetUserAlias() As String

Returns the User's Handle or Alias

DoorKitGetFirstName() As String

Returns the User's First Name

DoorKitGetLastName() As String

Returns the User's Last Name

DoorKitSendFile(ByVal fileName As String) As Integer

Send an ANSI Graphics file. This function is SAUCE aware and will strip any SAUCE tags off.

DoorKitPrint(ByVal s as String) As Integer

Print a string, the following embedded macros are defined:

DoorKitPrintLn(ByVal s as String) as Integer

Same as DoorKitPrint but appends a newline sequence.

DoorKitClearScreen() as Integer

Clears the screen (and Homes the cursor)

DoorKitGetLine(ByVal length as Integer) as String

Retrieves a string up to a certain length from the user

DoorKitGetKey() as String

Retrieves a string with a single character in it, without echoing.

DoorKitGetLocation() As String

Returns the user's location

DoorKitGetSysopName() As String

Returns the Sysop's name

DoorKitGetNode() As Integer

Returns the node number

DoorKitGetSecLevel() As Integer

Returns the user's security level

DoorKitGetSecondsLeft() As Integer

Returns the number of seconds left the user had when entering the door.

DoorKitGotoXY(ByVal x as integer, ByVal y as Integer) as Integer

Positions the cursor at x & y coordinates

DoorKitExit() as Integer

Exits the door, does not return

Availability

Git Repository

To compile:

  fbc -lib doordk.bas