flat assembler
Message board for the users of flat assembler.
Index
> Linux > Text input without the need to press ENTER: |
Author |
|
redsock 15 Nov 2024, 00:09
Why use libc functions in the first place? You can do what you describe with two system calls (read/write).
|
|||
15 Nov 2024, 00:09 |
|
naburgondux 15 Nov 2024, 00:22
uhm,ive tried using the read and write calls indeed,but it still waits for me to press enter to register it.
|
|||
15 Nov 2024, 00:22 |
|
redsock 15 Nov 2024, 00:37
Ahh yes, you need the ioctl syscall also for TCSETSF (which is what disables linemode among others). ICANON and friends ...
If you look in https://2ton.com.au/library_as_html/tui_terminal.inc.html and search for ICANON you can see where I did the same for the TUI side of my library. |
|||
15 Nov 2024, 00:37 |
|
naburgondux 15 Nov 2024, 00:44
cool,can you elaborate on this syscall a little further?
|
|||
15 Nov 2024, 00:44 |
|
redsock 15 Nov 2024, 00:51
Code: $> man 3 tcsetattr $> man 2 ioctl |
|||
15 Nov 2024, 00:51 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.