Liste des Groupes | Revenir à l misc |
On Wed, 21 Aug 2024 17:27:04 +0200Agreed. It is bad design to mix terminal handling with UART handling.
David Brown <david.brown@hesbynett.no> boringly babbled:On 21/08/2024 12:26, Muttley@dastardlyhq.com wrote:Unfortunately terminals are complex beasts with many permutations though
Trying to understand the Linux documentation for UARTs is a nightmare.
They are horrendous - the APIs, structs, flag sets, etc., are a vast
jumble of crap for handling terminals that haven't been seen outside a
museum for 50 years, long before Linux was conceived. Trying to get the
all that should be a higher level that what you were doing with a UART.
Let's just say, opinions differ. Python /can/ be used for beginner programmers - but it is also an excellent language for many real tasks. Of course it has its weaknesses and disadvantages as well as its strengths, and aspects that will appeal to some programmers and not others.Even better, of course, is to ditch C and use Python - "pyserial" doesThe problem with pyserial is you have to use Python. Horrible language
it all, simply and cleanly. (And the same code works on Windows, if
though like BASIC, useful for teaching kids to code.
Les messages affichés proviennent d'usenet.