Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Telepathy Communications Library - <b>tp_setln()</b> - set parameters for tp_recvln() http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
   tp_setln() - set parameters for tp_recvln()

   tp_setln([nFlags], [cBacksp], [cCancel], [cWordCan], [cBreak],
       [nTabs])

   nFlags      Option flags.
   cBacksp     Backspace character.
   cCancel     Line-cancel character.
   cWordCan    Word-cancel character.
   cBreak      Abort character.
   nTabs       Tab spacing.

   Sets up parameters and special characters for the tp_recvln()
   function.  nFlags is an integer produced by adding together zero or
   more of the following values:

       Value       Name            Meaning
       ----------------------------------------------------------------
         1         TLE_ECHO        Echo characters on input.
         2         TLE_ECTRL       Echo control characters as a "^"
                                   followed by a letter (e.g., "^X" for
                                   <Ctrl-X>).
         4         TLE_DESTR       Destructive backspace (backspace
                                   erases characters as it backs up over
                                   them).
         8         TLE_ADDLF       Echo a line-feed after a carriage-
                                   return on input.

   [5.0] In Clipper 5.0, the constants in the "Name" column are defined
   in the telepath.ch header file.

   cBacksp is the character that the user will send to back up and
   delete one character.  cCancel is the character that will erase the
   entire line and start over.  cWordCan will erase the last word of
   input.  cBreak will abort tp_recvln() immediately.  The default
   settings are:

       cBacksp     <Backsp>, chr(8)
       cCancel     <Esc>, chr(27)
       cWordCan    <Ctrl-W>, chr(23)
       cBreak      <Ctrl-C>, chr(3)

   nTabs controls the display of <Tab> characters, chr(9), on input.  If
   it is non-zero, tab stops are set every nTabs spaces.  If it is zero,
   <Tab> is treated like any other control character (by default, this
   means that it will be displayed as "^I").  The default value for
   nTabs is 8.

   Example:

       tp_send(1, "Password: ")
       tp_setln(0)         // No echo.
       cPassword := tp_recvln(1)

See Also: tp_recvln()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson