Results 1 to 3 of 3

Thread: Avoid leaving an empty line after Console_Readline?

  1. #1
    Junior Member
    Join Date
    Aug 2015
    Posts
    17
    Rep Power
    11

    Avoid leaving an empty line after Console_Readline?

    I use a code snippet like

    ' Get cursor position before input
    y1=Console_GetCursorY
    ' Unfortunately Console_Readline advances a line ...
    lineRead=Console_ReadLine()
    ' ... so set cursor position up a line, right below the input
    Console_CursorPos(1,y1+2)
    
    if I want to avoid leaving an empty line below the Console_ReadLine() command.

    Is there an easier way? Am I missing something?

  2. #2
    thinBasic author ErosOlmi's Avatar
    Join Date
    Sep 2004
    Location
    Milan - Italy
    Age
    57
    Posts
    8,818
    Rep Power
    10
    Ciao,

    for some reason, that I do not understand at the moment, Console_ReadLine function was forcing a new line after reading entered buffer.
    I will check deeply during week-end locking at module history when and why I added that code.

    Please find attached here a new version of thinBasic_Console.dll module.
    Please copy it into your \thinBasic\Lib\ replacing your current one.

    Let me know if it works.

    Ciao
    Eros
    Attached Files Attached Files
    www.thinbasic.com | www.thinbasic.com/community/ | help.thinbasic.com
    Windows 10 Pro for Workstations 64bit - 32 GB - Intel(R) Xeon(R) W-10855M CPU @ 2.80GHz - NVIDIA Quadro RTX 3000

  3. #3
    Junior Member
    Join Date
    Aug 2015
    Posts
    17
    Rep Power
    11
    Yup, problem solved!

    Gratitude and appreciation!

Similar Threads

  1. Can Parse or Split not count 'empty' tokens somehow?
    By EmbeddedMan in forum thinBasic General
    Replies: 7
    Last Post: 09-09-2016, 18:23
  2. Problem Leaving Callback Function
    By gungadout in forum thinBasic General
    Replies: 12
    Last Post: 07-03-2010, 22:57
  3. Command to define an empty bone?
    By Michael Hartlef in forum TBGL General
    Replies: 7
    Last Post: 12-02-2008, 08:39
  4. Little present before leaving: optimized thinCore.dll
    By ErosOlmi in forum Announcements
    Replies: 13
    Last Post: 21-08-2007, 12:44
  5. bug in console_readline?
    By sandyrepope in forum Console
    Replies: 3
    Last Post: 27-02-2007, 18:01

Members who have read this thread: 4

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •