PDA

View Full Version : Avoid leaving an empty line after Console_Readline?



paravantis
27-08-2024, 22:24
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?

ErosOlmi
28-08-2024, 09:01
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

paravantis
28-08-2024, 10:03
Yup, problem solved!

Gratitude and appreciation!