• ESC Key

    From Nugax@21:1/107 to All on Friday, January 05, 2018 11:00:42
    So it show #27 for ESC key. Yet, you can use CRT in mpl. What would i need to use to detect ESC key?



    -Nugax

    --- Mystic BBS v1.12 A38 2018/01/01 (Linux/64)
    * Origin: -=The ByteXchange BBS : bbs.thebytexchange.com=- (21:1/107)
  • From g00r00@21:1/108 to Nugax on Friday, January 05, 2018 15:59:21
    So it show #27 for ESC key. Yet, you can use CRT in mpl. What would i
    need to use to detect ESC key?

    #27 is the ASCII character for escape, its not related to Turbo Pascal CRT unit. In MPL you would also compare the input to #27.

    If ReadKey = #27 Then
    WriteLn ('You pressed escape!');

    The same is true for Python as well.

    if getkey() == chr(27):
    writeln("You pressed escape!");

    --- Mystic BBS v1.12 A39 2018/01/05 (Windows/32)
    * Origin: Sector 7 [Mystic BBS WHQ] (21:1/108)
  • From Nugax@21:1/107 to All on Friday, January 05, 2018 22:03:52
    Thanks!

    On 09:59 05/01 , g00r00 wrote:
    So it show #27 for ESC key. Yet, you can use CRT in mpl. What would i need to use to detect ESC key?

    #27 is the ASCII character for escape, its not related to Turbo Pascal CRT >unit. In MPL you would also compare the input to #27.

    If ReadKey = #27 Then
    WriteLn ('You pressed escape!');

    The same is true for Python as well.

    if getkey() == chr(27):
    writeln("You pressed escape!");

    --- Mystic BBS v1.12 A39 2018/01/05 (Windows/32)
    * Origin: Sector 7 [Mystic BBS WHQ] (21:1/108)


    --
    yrNews Usenet Reader for iOS
    http://appstore.com/yrNewsUsenetReader

    --- Mystic BBS/NNTP v1.12 A38 2018/01/01 (Linux/64)
    * Origin: -=The ByteXchange BBS : bbs.thebytexchange.com=- (21:1/107)
  • From Nugax@21:1/107 to All on Friday, January 05, 2018 22:04:06
    I was using input. Bet that's why

    On 09:59 05/01 , g00r00 wrote:
    So it show #27 for ESC key. Yet, you can use CRT in mpl. What would i need to use to detect ESC key?

    #27 is the ASCII character for escape, its not related to Turbo Pascal CRT >unit. In MPL you would also compare the input to #27.

    If ReadKey = #27 Then
    WriteLn ('You pressed escape!');

    The same is true for Python as well.

    if getkey() == chr(27):
    writeln("You pressed escape!");

    --- Mystic BBS v1.12 A39 2018/01/05 (Windows/32)
    * Origin: Sector 7 [Mystic BBS WHQ] (21:1/108)


    --
    yrNews Usenet Reader for iOS
    http://appstore.com/yrNewsUsenetReader

    --- Mystic BBS/NNTP v1.12 A38 2018/01/01 (Linux/64)
    * Origin: -=The ByteXchange BBS : bbs.thebytexchange.com=- (21:1/107)
  • From Nugax@21:1/107 to All on Tuesday, January 09, 2018 08:19:54
    I have created an Press ESC to logon to board on inital connect. It SHOULD
    fix some of these bot issues. If any data is given, it will disconnect immediately.

    Try it out on my BBS. You can run port 23 and probably cut down on bots
    hanging your nodespy.

    Now, just setting a timer for login time to 5 seconds!



    -Nugax

    --- Mystic BBS v1.12 A38 2018/01/01 (Linux/64)
    * Origin: -=The ByteXchange BBS : bbs.thebytexchange.com=- (21:1/107)
  • From dream master@21:1/163 to Nugax on Tuesday, January 09, 2018 12:19:35
    On 01/09/18, Nugax said the following...
    I have created an Press ESC to logon to board on inital connect. It
    SHOULD fix some of these bot issues. If any data is given, it will disconnect immediately.
    Try it out on my BBS. You can run port 23 and probably cut down on bots hanging your nodespy.
    Now, just setting a timer for login time to 5 seconds!

    or you can disable ascii logins and that fixes it.

    |08 .|05ú|13ù|15Dr|07e|08am Ma|07st|15er|13ù|05ú|08.
    |08 øù|05ú|13ùø |13øù|05ú|08ùø
    |11 DoRE|03!|11ACiDiC|03!|11Demonic |08[|15dreamland|09.|15darktech|09.|15org|08]

    --- Mystic BBS v1.12 A38 2018/01/01 (Windows/64)
    * Origin: |08--[|15!|07dreamland BBS dreamland.darktech.org (21:1/163)