From aa4550e5871ca3e21942f2f612666fd41f90eadb Mon Sep 17 00:00:00 2001 From: dam Date: Sat, 23 Sep 2023 11:03:40 +0100 Subject: Added TODO comments. --- TUI/windows.jai | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/TUI/windows.jai b/TUI/windows.jai index 24dbece..84dd271 100644 --- a/TUI/windows.jai +++ b/TUI/windows.jai @@ -169,7 +169,9 @@ OS_read_input :: (mode: Input_Mode) -> string { if ReadConsoleA(stdin, temp.data, xx temp.count, *bytes_read) { // TODO If the number of bytes_read is equal to the buffer size... we may have some more data to read?! - // ---> To fix this, we should check the last read byte and see if it's a newline! + // ---> To fix this, we should check the last read byte and see if it's a newline (at least for HUMAN mode)! + + // TODO Maybe pass the input result in the temporary memory (unless specified otherwise)?! result.data = alloc(bytes_read); result.count = bytes_read; -- cgit v1.2.3