Hello,
Sir Tonyw,
I migrated my arabic [os4depot.net 30 May 2024] project from my SAM to my new A1222,
But I faced difficulties with output :
after the first line, of a multiline string(several \n), it appears that the last bunch of string are treated as character by character mode with _flush after each character_ ; is this possible ?
I checked my code and tried different solutions, but it appears to me that the console.device called to output lines by my arabicconsole.device is faulty.
Here are the console.device from which it runs well (both are AOS4.1 Final Edition :
SAM440EP AOS4.1FEu0
console.device 53.83 (01/10/2014)
To (after the first line, it seems to work on a character by character mode with flush after each one character) :
A1222+
console.device 53.120 (14/12/2023)
You can see it with the ed (Unix port adapted to AmigaOS) where the cursor is (buggy) misaligned after a multiline output with a ",p" command.
Try :
> a
abc
def
.
> ,p
abc
fed
|>| (buggy cursor)
Thank’s Tonyw,
DGILLES
How to change the version to 53.83 of the console.device under AOS4.1FEa1222 ?
Console.device A1222 [since FE update 2 - probably Exec or graphics - not console.. SOLVED]
Console.device A1222 [since FE update 2 - probably Exec or graphics - not console.. SOLVED]
Last edited by gdridi on Tue Jun 25, 2024 11:57 am, edited 1 time in total.
- tonyw
- AmigaOS Core Developer
- Posts: 1483
- Joined: Wed Mar 09, 2011 1:36 pm
- Location: Sydney, Australia
Re: Console.device A1222 [since FE update 2 - probably Exec or graphics - not console..]
The console does not have a "Flush" action. The console receives Write requests (usually from the con-handler unless you are issuing DoIO() requests to the console.device).
If the Write buffer contains N chars, they are processed as an N-char string. If it contains only a single char, then it is processed by itself.
See your PM.
If the Write buffer contains N chars, they are processed as an N-char string. If it contains only a single char, then it is processed by itself.
See your PM.
cheers
tony
tony
Re: Console.device A1222 [since FE update 2 - probably Exec or graphics - not console.. SOLVED]
Hello!
After talking with Tonyw
The misoperating was due to not taking into account multiline in FEu2 or FEa1222, like "abc\ndef" as one string received instead of two strings "abc\n" and "def", with previous venerable FEu0
Wow
DGILLES - os4depot.net @ 25 June 2024
After talking with Tonyw
The misoperating was due to not taking into account multiline in FEu2 or FEa1222, like "abc\ndef" as one string received instead of two strings "abc\n" and "def", with previous venerable FEu0
Wow
DGILLES - os4depot.net @ 25 June 2024